#configure terminal | Enter configure mode |
(config)#interface lo | Enter loopback interface mode |
(config-if)#ip address 1.1.1.1/32 secondary | Configure the secondary loopback address |
(config-if)#exit | Exit interface mode |
(config)#interface eth2 | Enter interface mode |
(config-if)#ip address 10.1.1.1/24 | Configure the IP address of the interface |
(config-if)#exit | Exit interface mode |
(config)#interface eth1 | Enter interface mode |
(config-if)#ip address 101.1.0.1/24 | Configure the IP address of the interface |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the candidate configuration to the running configuration. |
(config)#router bgp 100 | Configure BGP with the AS number 100 |
(config-router)#neighbor 10.1.1.2 remote-as 200 | Define the BGP neighbor, and establish a TCP session. 10.1.1.2 is the IP address of one of the neighbors (R2), and 200 is the neighbor's AS number. |
(config-router)#neighbor 100.1.0.2 remote-as 300 | Define the BGP neighbor, and establish a TCP session. 100.1.0.2 is the IP address of one of the neighbors on interface eth1, and 300 is the neighbor's AS number. |
(config-router)# address-family ipv4 unicast | Enter address-family ipv4 unicast mode |
(config-router-af)#redistribute connected | Enable redistribute connected |
(config-router-af)#neighbor 10.1.1.2 activate | Activate the neighbor |
(config-router-af)#neighbor 100.1.0.2 activate | Activate the neighbor |
(config-router-af)#exit-address-family | Exit address-family mode |
(config-router)#commit | Commit the candidate configuration to the running configuration. |
#configure terminal | Enter configure mode |
(config)#interface lo | Enter loopback interface mode |
(config-if)# ip address 2.2.2.2/32 secondary | Configure the secondary loopback address |
(config-if)#exit | Exit interface mode |
(config)#interface eth1 | Enter interface mode |
(config-if)#ip address 10.1.1.2/24 | Configure the IP address of the interface |
(config-if)#exit | Exit interface mode |
(config)#interface eth2 | Enter interface mode |
(config-if)#ip address 101.1.0.1/24 | Configure the IP address of the interface |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the candidate configuration to the running configuration. |
(config)#router bgp 200 | Configure BGP with the AS number 100 |
(config-router)#neighbor 10.1.1.1 remote-as 100 | Define the BGP neighbor, and establish a TCP session. 10.1.1.1 is the IP address of one of the neighbors (R1), and 100 is the neighbor's AS number. |
(config-router)#neighbor 101.1.0.2 remote-as 400 | Define the BGP neighbor, and establish a TCP session.101.1.0.2 is the IP address of one of the neighbors on eth2 interface, and 400 is the neighbor's AS number. |
(config-router)#neighbor 100.1.0.2 remote-as 300 | Define the BGP neighbor, and establish a TCP session. 100.1.0.2 is the IP address of one of the neighbors of router R1 on eth1 interface, and 300 is the neighbor's AS number. |
(config-router)#neighbor 100.1.0.2 ebgp-multihop 2 | Increase BGP neighbors with ebgp-multihop value |
(config-router)# address-family ipv4 unicast | Enter address-family ipv4 unicast mode |
(config-router-af)#neighbor 10.1.1.1 activate | Activate BGP neighbor |
(config-router-af)#neighbor 101.1.0.2 activate | Activate BGP neighbor |
(config-router-af)#redistribute connected | Enable redistribute connected |
(config-router-af)#bgp dampening | Enable BGP dampening with default values: • Reachability half-life is 15 minutes • Reuse limit is 750: • Suppress limit is 2000 • Max-suppress value is 60 minutes • Un-reachability half-life is 15 minutes |
(config-router-af)#exit-address-family | Exit address-family mode |
(config-router)#commit | Commit the candidate configuration to the running configuration. |
#configure terminal | Enter configure mode |
(config)#interface eth1 | Enter interface mode |
(config-if)#ipv6 address 2000:0:0:1::1/64 | Configure the IPv6 address of the interface |
(config-if)#exit | Exit interface mode |
(config)#interface eth2 | Enter interface mode |
(config-if)#ip address 2000:0:2:1::1/64 | Configure the IPv6 address of the interface |
(config-if)#exit | Exit interface mode |
(config)#router bgp 100 | Configure BGP with the AS number 100 |
(config-router)#neighbor 2000:0:0:1::2 remote-as 300 | Define the BGP neighbor, and establish a TCP session. 2000:0:0:1::2 is the IP address of one of the neighbors on interface eth1, and 300 is the neighbor's AS number. |
(config-router)#neighbor 2000:0:2:1::2 remote-as 200 | Define the BGP neighbor, and establish a TCP session. 2000:0:2:1::2 is the IP address of one of the neighbors (R2), and 200 is the neighbor's AS number. |
(config-router)#address-family ipv6 unicast | Enter IPv6 address family |
(config-router)#redistribute connected | Enable redistribute connected |
(config-router-af)neighbor 2000:0:0:1::2 activate | Activate BGP neighbor |
(config-router-af)neighbor 2000:0:2:1::2 activate | Activate BGP neighbor |
(config-router-af)#exit-address-family | Exit address-family mode |
(config-router)#commit | Commit the candidate configuration to the running configuration. |
#configure terminal | Enter configure mode |
(config)#interface eth1 | Enter interface mode |
(config-if)#ip address 2000:0:2:1::2/64 | Configure the IPv6 address of the interface |
(config-if)#exit | Exit interface mode |
(config)#interface eth2 | Enter interface mode |
(config-if)#ip address 2000:0:1:1::1/64 | Configure the IPv6 address of the interface |
(config-if)#exit | Exit interface mode |
(config)#router bgp 200 | Configure BGP with the AS number 200 |
(config-router)#address-family ipv6 unicast | Enter IPv6 address family |
(config-router-af)#redistribute connected | Enable redistribute connected |
(config-router-af)#exit-address-family | Exit address-family mode. |
(config-router)#neighbor 2000:0:1:1::2 remote-as 400 | Define the BGP neighbor, and establish a TCP session. 2000:0:1:1::2 is the IP address of one of the neighbors on interface eth2, and 400 is the neighbor's AS number. |
(config-router)#neighbor 2000:0:2:1::1 remote-as 100 | Define the BGP neighbor, and establish a TCP session. 2000:0:2:1::1 is the IP address of one of the neighbors (R1), and 100 is the neighbor's AS number. |
(config-router)#address-family ipv6 unicast | Enter IPv6 address-family |
(config-router-af)#bgp dampening | Enable BGP dampening with default values: • Reachability half-life is 15 minutes • Reuse limit is 750 • Suppress limit is 2000 • Max-suppress value is 60 minutes • Un-reachability half-life is 15 minutes |
(config-router-af)#neighbor 2000:0:1:1::2 activate | Activate BGP neighbor |
(config-router-af)#neighbor 2000:0:2:1::1 activate | Activate BGP neighbor |
(config-router-af)#exit-address-family | Exit address-family mode |
(config-router)#commit | Commit the candidate configuration to the running configuration. |