R1#configure terminal | Enter configure mode |
R1(config)#interface xe1 | Enter interface mode for xe1 |
R1(config-if)#ip address 2.2.2.2/24 | Assign an IP address to the interface |
R1(config-if)#commit | Commit the candidate configuration to the running configuration |
R1(config-if)#exit | Exit interface mode. |
R1(config)#interface xe2 | Enter interface mode for xe1 |
R1(config-if)#ip address 1.1.1.2/24 | Assign an IP address to the interface |
R1(config-if)#commit | Commit the candidate configuration to the running configuration |
R1(config-if)#exit | Exit interface mode |
R1(config)#router bgp 2 | Enter BGP router mode |
R1(config-router)#neighbor 2.2.2.3 remote-as 3 | Create static BGP neighbor 2.2.2.3 with remote autonomous system value 3 |
R1(config-router)#address-family ipv4 | Enter address-family mode |
R1(config-router-af)#neighbor 2.2.2.3 activate | Activate neighbor 2.2.2.3 |
R1(config-router-af)#redistribute connected | Advertise the connected network into BGP |
R1(config-if)#commit | Commit the candidate configuration to the running configuration |
R1(config-router-af)#end | Exit BGP router mode |
R2#configure terminal | Enter configure mode |
R2(config)#ip prefix-list p1 | Configure IP prefix list p1 |
R2(config-ip-prefix-list)#permit any | Configure permit any |
R2(config)#route-map r1 | Enter route-map mode |
R2(config-route-map)#match ip address prefix-list p1 | Configure match ip prefix list p1 |
R2(config-route-map)#set interface null0 | Set the interface to null0 |
R2(config-if)#commit | Commit the candidate configuration to the running configuration |
R2(config-route-map)#exit | Exit route-map mode. |
R2(config)#interface xe1 | Enter interface mode for xe1 |
R2(config-if)#ip address 2.2.2.3/24 | Assign an IP address to the interface |
R2(config-if)#commit | Commit the candidate configuration to the running configuration |
R2(config-if)#exit | Exit interface mode. |
R2(config)#interface xe2 | Enter interface mode for xe2 |
R2(config-if)#ip address 3.3.3.2/24 | Assign an IP address to the interface |
R2(config-if)#commit | Commit the candidate configuration to the running configuration |
R2(config-if)#exit | Exit interface mode |
R2(config)#router bgp 3 | Enter into BGP router mode |
R2(config-router)#neighbor 2.2.2.2 remote-as 2 | Create static BGP neighbor 2.2.2.2 with remote autonomous system value 2 |
R2(config-router)#neighbor 3.3.3.3 remote-as 4 | Create static BGP neighbor 3.3.3.3 with remote autonomous system value 4 |
R2(config-router)#address-family ipv4 | Enter address-family mode |
R2(config-router-af)#neighbor 2.2.2.2 activate | Activate neighbor 2.2.2.2 |
R2(config-router-af)#neighbor 3.3.3.3 activate | Activate neighbor 3.3.3.3 |
R2(config-router-af)#redistribute connected | Advertise the connected network into BGP |
R2(config-router-af)#neighbor 2.2.2.2 route-map r1 in | Attach the route-map with route discard configured for the neighbor 2.2.2.2 in IN direction |
R2(config-if)#commit | Commit the candidate configuration to the running configuration |
R2(config-router-af)#end | Exit BGP router mode |
R3#configure terminal | Enter configure mode. |
R3(config)#interface xe2 | Enter interface mode for xe2 |
R3(config-if)#ip address 3.3.3.3/24 | Assign an IP address to the interface |
R3(config-if)#commit | Commit the candidate configuration to the running configuration |
R3(config-if)#exit | Exit interface mode |
R3(config)#interface xe1 | Enter interface mode for xe1 |
R3(config-if)#ip address 4.4.4.2/24 | Assign an IP address to the interface |
R3(config-if)#commit | Commit the candidate configuration to the running configuration |
R3(config-if)#exit | Exit interface mode. |
R3(config)#router bgp 4 | Enter into BGP router mode |
R3(config-router)#neighbor 3.3.3.2 remote-as 3 | Create static BGP neighbor 3.3.3.2 with remote autonomous system value 3 |
R2(config-router)#address-family ipv4 | Enter address-family mode |
R2(config-router-af)#neighbor 3.3.3.2 activate | Activate neighbor 3.3.3.2 |
R3(config-router-af)#redistribute connected | Advertise the connected network into BGP |
R3(config-if)#commit | Commit the candidate configuration to the running configuration |
R3(config-router-af)#end | Exit BGP router. |
R1#configure terminal | Enter configure mode. |
R1(config)#interface lo | Enter interface mode for loopback |
R1(config-if)#ip address 1.1.1.2/24 secondary | Assign an IPv4 address to the interface |
R1(config-if)#commit | Commit the candidate configuration to the running configuration |
R1(config-if)#exit | Exit interface mode |
R1(config)#interface xe1 | Enter interface mode for xe1 |
R1(config-if)#ipv6 address 2001::2/64 | Assign an IPv6 address to the interface |
R1(config-if)#commit | Commit the candidate configuration to the running configuration |
R1(config-if)#exit | Exit interface mode |
R1(config)#interface xe2 | Enter interface mode for xe2 |
R1(config-if)#ipv6 address 1001::2/64 | Assign an IPv6 address to the interface |
R1(config-if)#commit | Commit the candidate configuration to the running configuration |
R1(config-if)#exit | Exit interface mode |
R1(config)#router bgp 2 | Enter BGP router mode |
R1(config-router)#bgp router-id 1.1.1.1 | Specify router ID |
R1(config-router)#neighbor 2001::3 remote-as 3 | Create static BGP neighbor 2001::3 with remote autonomous system value 3 |
R1(config-router)#address-family ipv6 unicast | Enter address family IPv6 unicast mode |
R1(config-router-af)#neighbor 2001::3 activate | Activate neighbor in IPv6 address family |
R1(config-router-af)#redistribute connected | Advertise the connected network into BGP |
R1(config-if)#commit | Commit the candidate configuration to the running configuration |
R1(config-router)#end | Exit BGP router mode |
R2#configure terminal | Enter configure mode |
R2(config)#interface lo | Enter interface mode for loopback |
R2(config-if)#ip address 2.2.2.2/24 secondary | Assign an IPV4 address |
R2(config-router-if)#commit | Commit the candidate configuration to the running configuration |
R2(config-if)#exit | Exit interface mode |
R2(config)#ipv6 prefix-list p1 permit any | Configure IPv6 prefix list. |
R2(config)#route-map r1 | Enter route-map mode. |
R2(config-route-map)#match ipv6 address prefix-list p1 | Configure match IPv6 prefix list p1 |
R2(config-route-map)#set interface null0 | Set the interface to null0 |
R2(config-router-map)#commit | Commit the candidate configuration to the running configuration |
R2(config-route-map)#exit | Exit route-map mode |
R2(config)#interface xe1 | Enter interface mode for xe1 |
R2(config-if)#ipv6 address 2001::3/64 | Assign ipv6 address to the interface |
R2(config-if)#commit | Commit the candidate configuration to the running configuration |
R2(config-if)#exit | Exit interface mode |
R2(config)#interface xe2 | Enter interface mode for xe2 |
R2(config-if)#ipv6 address 3001::2/64 | Assign an IPv6 address to the interface |
R2(config-if)#commit | Commit the candidate configuration to the running configuration |
R2(config-if)#exit | Exit interface mode |
R2(config)#router bgp 3 | Enter BGP router mode |
R2(config-router)#bgp router-id 2.2.2.2 | Specify router ID |
R2(config-router)#neighbor 2001::2 remote-as 2 | Create static BGP neighbor 2001::2 with remote autonomous system value 2 |
R2(config-router)#neighbor 3001::3 remote-as 4 | Create static BGP neighbor 3001::3 with remote autonomous system value 4 |
R2(config-router)#address-family ipv6 unicast | Enter address family IPv6 unicast mode |
R2(config-router-af)#redistribute connected | Advertise the connected network into BGP |
R2(config-router-af)#neighbor 2001::2 activate | Activate the neighbor in IPv6 address family |
R2(config-router-af)#neighbor 3001::3 activate | Activate the neighbor in IPv6 address family |
R2(config-router-af)#neighbor 2001::2 route-map r1 in | Attach the route-map with route discard configured for the neighbor 2001::2 in IN direction |
R2(config-router-af)#commit | Commit the candidate configuration to the running configuration |
R2(config-router)#end | Exit BGP router mode |
R3#configure terminal | Enter configure mode |
R3(config)#interface lo | Enter interface mode for loopback |
R3(config-if)#ip address 3.3.3.2/24 secondary | Assign an IPV4 address to the interface |
R3(config-if)#commit | Commit the candidate configuration to the running configuration |
R3(config-if)#exit | Exit interface mode |
R3(config)#interface xe1 | Enter interface mode for xe1 |
R3(config-if)#ipv6 address 4001::2/64 | Assign an IPv6 address to the interface |
R3(config-if)#commit | Commit the candidate configuration to the running configuration |
R3(config-if)#exit | Exit interface mode |
R3(config)#interface xe2 | Enter interface mode for xe2 |
R3(config-if)#ipv6 address 3001::3/64 | Assign an IPv6 address to the interface |
R3(config-if)#commit | Commit the candidate configuration to the running configuration |
R3(config-if)#exit | Exit interface mode |
R3(config)#router bgp 4 | Enter into BGP router mode |
R3(config-router)#bgp router-id 3.3.3.3 | Specify router ID |
R3(config-router)#neighbor 3001::2 remote-as 3 | Create static BGP neighbor 3001::2 with remote autonomous system value 3 |
R3(config-router)#address-family ipv6 unicast | Enter address family IPv6 unicast mode |
R3(config-router-af)#neighbor 3001::2 activate | Activate neighbor in IPv6 address family |
R3(config-router-af)#redistribute connected | Advertise the connected network into BGP |
R3(config-router-af)#commit | Commit the candidate configuration to the running configuration |
R3(config-router)#end | Exit BGP router mode. |