Configuration procedure
Procedure
1.
Configure IP addresses for interfaces (omitted.)
2.
Configure OSPF on Switch B, C, and D.
3.
# Configure Switch B.
switch(config)# router ospf
switch(ospf)# area 0
switch(ospf)# network 192.1.1.0/ 0.0.0.255
switch(ospf)# network 194.1.1.0/ 0.0.0.255
switch(ospf)# exit
4.
# Configure Switch C.
switch(config)# router ospf
switch(ospf)# enable
switch(ospf)# area 0
switch(ospf)# network 193.1.1.0/ 0.0.0.255
switch(ospf)# network 195.1.1.0/ 0.0.0.255
switch(ospf)# exit
5.
# Configure Switch D.
switch(config)# router ospf
switch(ospf)# enable
switch(ospf)# area 0
switch(ospf)# network 194.1.1.0/ 0.0.0.255
switch(ospf)# network 195.1.1.0/ 0.0.0.255
switch(ospf)# exit
6.
Configure BGP connections.
7.
# Configure Switch A.
switch(config)# router bgp 100
switch(bgp)# neighbor 192.1.1.2 remote-as 200
switch(bgp)# neighbor 193.1.1.2 remote-as 200
8.
# Add network 1.0.0.0/8 to the BGP routing table on Switch A.
switch(bgp)# network 1.0.0.0/8
switch(bgp)# exit
9.
# Configure Switch B.
switch(config)# router bgp 200
switch(bgp)# neighbor 192.1.1.1 remote-as 100
switch(bgp)# neighbor 194.1.1.1 remote-as 200
switch(bgp)# exit
Chapter 17 Border Gateway Protocol (BGP)
397