Netgear M5300-28G-POE+ (GSM7228PSv1h2) - 12-Port Managed Gigabit Switch Ratgeber Für Administratoren

Seite von 721
BGP 
182
Managed Switches 
Configure BGP on Switch C
1. 
Create VLANs 200 and 400 and assign IP addresses. 
(Netgear Switch) #vlan database
(Netgear Switch) (Vlan) #vlan 200,400
(Netgear Switch) (Vlan) #vlan routing 200
(Netgear Switch) (Vlan) #vlan routing 300
(Netgear Switch) (Vlan) #exit
(Netgear Switch)#configure
(Netgear Switch)(config) # interface 1/0/1
(Netgear Switch) (Interface 1/0/1) #vlan pvid 200
(Netgear Switch) (Interface 1/0/1) #vlan participation include 200
(Netgear Switch) (Interface 1/0/1) #interface 1/0/2
(Netgear Switch) (Interface 1/0/2) #vlan pvid 400
(Netgear Switch) (Interface 1/0/2) #vlan participation include 400
(Netgear Switch) (Interface 1/0/2) #interface vlan 200
(Netgear Switch) (Interface vlan 200) # ip address 192.168.1.2 /24
(Netgear Switch) (Interface vlan 200) # interface vlan 400
(Netgear Switch) (Interface vlan 400) # ip address 192.168.2.1 /24
2. 
Configure the local BGP AS as 100 and the BGP peer as 100.
An iBGP session is created.
(Netgear Switch) #configure
(Netgear Switch) (Config) #ip routing
(Netgear Switch) (Config) #router bgp 100
(Netgear Switch) (Config-router) # bgp router-id 192.168.1.2
(Netgear Switch) (Config-router) # network 192.168.1.0 mask 255.255.255.0
(Netgear Switch) (Config-router) # network 192.168.2.0 mask 255.255.255.0
(Netgear Switch) (Config-router) # neighbor 192.168.1.1 remote-as 100
(Netgear Switch) (Config-router) # neighbor 192.168.2.2 remote-as 100
(Netgear Switch) (Config-router)#exit
Check the BGP Neighbor Status
Check the BGP neighbor on Switch A to see if the BGP neighbor is established. Use the 
same command to check it on Switches B and C.