C H A P T E R 14 Border Gateway Protocol (BGP)
259
Using the confederation, AS 200 is split into two sub-ASs:
SubAS65001 and SubAS65002. Each sub-AS is fully meshed, and
IBGP (Internal BGP) is running among its members.
EBGP (External BGP) is used between Sub65001 and
SubAS65002. Router B and Router D are EBGP peers. EBGP is
also used between the confederation and outside ASs.
To configure Router A, use these commands:
create vlan ab
configure vlan default delete port 1
configure vlan ab add port 1
configure vlan ab ipaddress 192.1.1.6/30
enable ipforwarding vlan ab
configure ospf add vlan ab area 0.0.0.0
create vlan ac
configure vlan ac add port 2
configure vlan ac ipaddress 192.1.1.17/30
enable ipforwarding vlan ac
configure ospf add vlan ac area 0.0.0.0
disable bgp
configure bgp as-number 65001
configure bgp routerid 192.1.1.17
configure bgp confederation-id 200
enable bgp
create bgp neighbor 192.1.1.5 as-number remote-AS-
number 65001
create bgp neighbor 192.1.1.18 as-number remote-AS-
number 65001
enable bgp neighbor all
To configure Router B, use these commands:
create vlan ba
configure vlan ba add port 1
configure vlan ba ipaddress 192.1.1.5/30
enable ipforwarding vlan ba
configure ospf add vlan ba area 0.0.0.0
create vlan bc
configure vlan bc add port 2
configure vlan bc ipaddress 192.1.1.22/30
enable ipforwarding vlan bc
configure ospf add vlan bc area 0.0.0.0