#configure terminal | Enter configure mode. |
(config)# interface lo | Enter interface mode for Loopback |
(config-if)#ip address 1.1.1.1/32 secondary | Configure ip address for Loopback interface |
(config-if)#exit | Exit interface mode |
(config)# interface xe15 | Enter interface mode for xe15 |
(config-if)#ip address 10.1.1.2/24 | Configure ip address |
(config-if)#exit | Exit interface mode |
(config)# interface ce0 | Enter interface mode for ce0 |
(config-if)#ip address 20.1.1.2 | Configure ip address |
(config-if)#exit | Exit interface mode |
(config)#router ospf 100 | Configure the OSPF process (100) |
(config-router)# ospf router-id 1.1.1.1 | Configure OSPF router-id |
(config-router)#network 1.1.1.1/32 area 0 | Advertise the network in Area 0 |
(config-router)#network 10.1.1.0/24 area 0 | Advertise the network in Area 0 |
(config-router)#network 20.1.1.0/24 area 0 | Advertise the network in Area 0 |
(config-router)#exit | Exit Router mode and return to Configure mode |
(config)#router bgp 100 | Define the routing process. The number 100 specifies the AS number of R1. |
(config-router)# bgp router-id 1.1.1.1 | Configure BGP router-id |
(config-router)#neighbor PG peer-group | Create a peer group named PG |
(config-router)#neighbor PG remote-as 100 | Assign options to the peer group named PG |
(config-router)#neighbor PG update-source lo | Assign options to the peer group named PG |
(config-router)#neighbor 2.2.2.2 peer-group PG | Define neighbor 2.2.2.2 (R2) as a peer group |
(config-router)#neighbor 3.3.3.3 peer-group PG | Define neighbor 3.3.3.3 (R3) as a peer group member. |
(config-router)#address-family l2vpn evpn | Enter address-family l2vpn evpn mode |
(config-router-af)#neighbor PG activate | Activate the peer-group ABC for address-family l2vpn evpn |
(config-router-af)# exit-address-family | Exit address-family ipv4 unicast mode |
(config-router)#exit | Exit router bgp mode |
(config)#commit | Commit the candidate configuration to the running configuration. |
#configure terminal | Enter configure mode. |
(config)# interface lo | Enter interface mode for Loopback |
(config-if)#ip address 2.2.2.2/32 secondary | Configure ip address for Loopback interface |
(config-if)#exit | Exit interface mode |
(config)# interface xe15 | Enter interface mode for xe15 |
(config-if)#ip address 10.1.1.2/24 | Configure ip address |
(config-if)#exit | Exit interface mode |
(config)# interface xe10 | Enter interface mode for xe10 |
(config-if)#ip address 10.1.1.1/24 | Configure ip address |
(config-if)#exit | Exit interface mode |
(config)#router ospf 100 | Configure the OSPF process (100) |
(config-router)# ospf router-id 2.2.2.2 | Configure OSPF router-id |
(config-router)#network 2.2.2.2/32 area 0 | Advertise the network in Area 0 |
(config-router)#network 10.1.1.0/24 area 0 | Advertise the network in Area 0 |
(config-router)#exit | Exit Router mode and return to Configure mode |
(config)#router bgp 100 | Define the routing process. The number 100 specifies the AS number of R1. |
(config-router)# bgp router-id 2.2.2.2 | Configure BGP router-id |
(config-router)#neighbor PG peer-group | Create a peer group named PG |
(config-router)#neighbor PG remote-as 100 | Assign options to the peer group named PG |
(config-router)#neighbor PG update-source lo | Assign options to the peer group named PG |
(config-router)#neighbor 1.1.1.1 peer-group PG | Define neighbor 1.1.1.1 (R1) as a peer group member. |
(config-router)#address-family l2vpn evpn | Enter address-family l2vpn evpn mode |
(config-router-af)#neighbor PG activate | Activate the peer-group ABC for address-family l2vpn evpn |
(config-router-af)# exit-address-family | Exit address-family ipv4 unicast mode |
(config-router)#exit | Exit router bgp mode |
(config)#commit | Commit the candidate configuration to the running configuration. |
#configure terminal | Enter configure mode. |
(config)# interface lo | Enter interface mode for Loopback |
(config-if)#ip address 3.3.3.3/32 secondary | Configure ip address for Loopback interface |
(config-if)#exit | Exit interface mode |
(config)# interface ce15 | Enter interface mode for ce15 |
(config-if)#ip address 20.1.1.1/24 | Configure ip address |
(config-if)#exit | Exit interface mode |
(config)# interface xe10 | Enter interface mode for xe10 |
(config-if)#ip address 10.1.1.1/24 | Configure ip address |
(config-if)#exit | Exit interface mode |
(config)#router ospf 100 | Configure the OSPF process (100) |
(config-router)# ospf router-id 3.3.3.3 | Configure OSPF router-id |
(config-router)#network 20.1.1.0/24 area 0 | Advertise the network in Area 0 |
(config-router)#exit | Exit Router mode and return to Configure mode |
(config)#router bgp 100 | Define the routing process. The number 100 specifies the AS number of R1. |
(config-router)# bgp router-id 3.3.3.3 | Configure BGP router-id |
(config-router)#neighbor PG peer-group | Create a peer group named PG |
(config-router)#neighbor PG remote-as 100 | Assign options to the peer group named PG |
(config-router)#neighbor PG update-source lo | Assign options to the peer group named PG |
(config-router)#neighbor 1.1.1.1 peer-group PG | Define neighbor 1.1.1.1 (R1) as a peer group member. |
(config-router)#address-family l2vpn evpn | Enter address-family l2vpn evpn mode |
(config-router-af)#neighbor PG activate | Activate the peer-group ABC for address-family l2vpn evpn |
(config-router-af)# exit-address-family | Exit address-family ipv4 unicast mode |
(config-router)#exit | Exit router bgp mode |
(config)#commit | Commit the candidate configuration to the running configuration. |