#configure terminal | Enter Configure mode. |
---|---|
(config)Interface eth1 | Specify the interface (eth1) to configure |
(config)Ipv6 address 3ffe:10::10/64 | Specify the IPv6 global address |
(config)Exit | Enter Configure mode |
(config)#ipv6 prefix-list myPrefixList | Create an entry in the prefix-list. myPrefixList is the name of the map that is created |
(config-ipv6-prefix-list)#seq 5 deny 3ffe:12::/32 ge 48 le 64 | Here 5 and 10 specify the sequence number or position of this specific route map. deny specifies the packets are to be rejected. permit specifies the packets are to be allowed. 48 and 64 are the minimum and maximum prefix lengths, respectively, to be matched. |
(config-ipv6-prefix-list)#seq 10 permit any | Create another entry in the myPrefixList map. 10 specifies the sequence number or position of this specific route map. permit any specifies accept all packets of any length. |
(config-ipv6-prefix-list)#exit | Exit the prefix-list mode |
(config)#route-map myPrefixList permit 1 | Enter Route-map mode. |
(config-route-map)#match ipv6 address prefix-list myPrefixList | Set the match criteria. In this case, if the route-map name matches myPrefixList, the packets from the first sequence will be denied. |
(config-route-map)#exit | Exit Route-map mode, and return to Configure mode. |
(config)#commit | Commit the candidate configuration to the running configuration |
(config)#router bgp 10 | Define the routing process. The number 10 specifies the AS number of R1. |
(config-router)#bgp router-id 192.168.10.10 | Configure a fixed Router ID (192.168.10.10) for the BGP4+ routing process. |
(config-router)#neighbor 3ffe:10:11 remote-as 11 | Define the BGP neighbor (R2), and establish a TCP session by specifying the IPv6 address (3ffe:10::11)and the AS number(11)of neighbor R2. |
(config-router-af)#exit | Exit from router BGP mode. |
(config)#commit | Commit the candidate configuration to the running configuration. |
(config-router)#address-family ipv6 | Enter Address Family mode for configuring routing sessions that use IPv6 address prefixes. |
(config-router-af)#neighbor 3ffe:10::11 activate | Activate the neighbor R2(3ffe:10::11), and enable exchange of IPv6 address prefix types with this neighbor. |
(config-router-af)#neighbor 3ffe:10::11 route-map myPrefixList in | Apply the route-map myPrefixList to all incoming routes. |
(config-router-af)#exit-address-family | Exit Address Family mode, and return to Router mode. |
(config-router-af)#exit | Exit Router mode, and return to Configure mode. |
(config)#commit | Commit the candidate configuration to the running configuration. |
#configure terminal | Enter Configure mode. |
(config)Interface eth1 | Specify the interface (eth1) to configure |
(config)Ipv6 address 3ffe:10::11/64 | Specify the IPv6 global address |
(config)Exit | Enter Configure mode |
(config)#router bgp 11 | Define the routing process. The number 11 specifies the AS number of R2. |
(config-router)#bgp router-id 192.168.10.11 | Configure a fixed Router ID (192.168.10.11) for the BGP4+ routing process. |
(config-router)#neighbor 3ffe:10::10 remote-as 10 | Define the BGP neighbor (R1), and establish a TCP session by specifying the IPv6 address (3ffe:10::10)and the AS number(10)of neighbor R1. |
(config-router)#address-family ipv6 | Enter Address Family mode for configuring routing sessions that use IPv6 address prefixes. |
(config-router-af)#network 3ffe:11::/48 | Announce the IPv6 network prefix (3ffe:11::/48). |
(config-router-af)#network 3ffe:12::/48 | Announce the IPv6 network prefix (3ffe:12::/48). |
(config-router-af)#neighbor 3ffe:10::10 activate | Activate the neighbor R1(3ffe:10::10), and enable exchange of IPv6 address prefix types with this neighbor. |
(config-router-af)#exit-address-family | Exit Address Family mode, and return to Router mode. |
(config)#commit | Commit the candidate configuration to the running configuration. |