#configure terminal | Enter Configure mode. |
OcNOS(config)#interface lo | Enter Interface mode for loopback. |
OcNOS(config-if)#ip address 1.1.1.1/32 secondary | Assign secondary IP address. |
OcNOS(config-if)#exit | Exit Interface mode and return to Configure mode. |
OcNOS(config)#nvo vxlan enable | Enable VXLAN |
OcNOS(config)#nvo vxlan irb | Enable VXLAN IRB |
OcNOS(config)#ip vrf vrf1 | Create routing/forwarding instance with VRF1 name and enter into VRF mode |
OcNOS(config-vrf)#rd 200:1 | Assign RD value |
OcNOS(config-vrf)#route-target both 200:1 | Assign route target value |
OcNOS(config-vrf)#ip dhcp relay address 40.40.40.1 | The relay address configured should be server interface address connected to DUT machine |
OcNOS(config-vrf)#ip dhcp relay uplink evpn | Configure the uplink interface as L3 VNI interface for specific VRF |
OcNOS(config-vrf)#l3vni 45001 | Configure L3VNI as 45001 for VRF1 |
OcNOS(config-vrf)#exit | Exit IP VRF mode |
OcNOS(config)#mac vrf vrfred | Create MAC VRF instance with vrfred name and enter into VRF mode |
OcNOS(config-vrf)#rd 1.1.1.1:1 | Assign RD value |
OcNOS(config-vrf)#route-target both 1.1.1.1:1 | Assign route target value |
OcNOS(config-vrf)#exit | Exit MAC VRF mode |
OcNOS(config)#interface irb 1 | Configure IRB interface |
OcNOS(config-irb-if)#ip vrf forwarding vrf1 | Configure IP VRF forwarding |
OcNOS(config-irb-if)#ip address 11.1.1.1/24 | Assign IP address on IRB interface. |
OcNOS(config-irb-if)#ip dhcp relay | Relay should be configured on the interface connecting to the relay |
OcNOS(config-irb-if)#exit | Exit IRB interface mode |
OcNOS(config)#interface irb 2 | Configure irb interface |
OcNOS(config-irb-if)#ip vrf forwarding vrf1 | Configure IP VRF forwarding |
OcNOS(config-irb-if)#ip address 70.70.70.1/24 | Assign IP address on IRB interface. |
OcNOS(config-irb-if)#exit | Exit IRB interface mode |
OcNOS(config)#interface ce49 | Enter Interface mode for ce49. |
OcNOS(config-if)#ip address 10.1.1.2/24 | Assign IP address on ce49 interface. |
OcNOS(config-if)#exit | Exit Interface mode and return to Configure mode. |
OcNOS(config)#interface xe5 | Enter Interface mode for xe5. |
OcNOS(config-if)#switchport | Configure interface as L2 interface |
OcNOS(config-if)#exit | Exit Interface mode and return to Configure mode. |
OcNOS(config)#router ospf | Enter the Router OSPF mode |
OcNOS(config-router)#network 1.1.1.1/32 area 0.0.0.0 | Advertise loopback address in OSPF |
OcNOS(config-router)#network 10.1.1.0/24 area 0.0.0.0 | Advertise network address in OSPF |
OcNOS(config-router)#exit | Exit from Router OSPF mode and enter into config mode |
OcNOS(config)#router bgp 1 | Enter into BGP router mode |
OcNOS(config-router)#neighbor 2.2.2.2 remote-as 1 | Specify a VTEP2 loopback IP address and remote-as defined |
OcNOS(config-router)#neighbor 2.2.2.2 update-source 1.1.1.1 | Configure update as loopback for VTEP2 |
OcNOS(config-router)#address-family l2vpn evpn | Enter into L2VPN EVPN address family mode |
OcNOS(config-router-af)#neighbor 2.2.2.2 activate | Activate neighbor in L2VPN mode |
OcNOS(config-router-af)#exit-address-family | Exit from Address family mode |
OcNOS(config-router)#address-family ipv4 vrf vrf1 | Enter into address-family mode for VRF1 |
OcNOS(config-router-af)#redistribute connected | Configure Redistribute connected |
OcNOS(config-router-af)#exit-address-family | Exit from Address family mode |
OcNOS(config-router)#exit | Exit from router BGP mode and enter into config mode |
OcNOS(config)#nvo vxlan vtep-ip-global 1.1.1.1 | Configure Source VTEP-IP-global configuration. Use loopback IP address |
OcNOS(config)#nvo vxlan id 10 ingress-replication inner-vid-disabled | Configure VXLAN Network identifier with/without inner-vid-disabled configure and enter into VXLAN tenant mode |
OcNOS(config-nvo)#vxlan host-reachability-protocol evpn-bgp vrfred | Assign VRF for EVPN-BGP to carry EVPN route |
OcNOS(config-nvo)#evpn irb1 | Configure IRB1 under VXLAN ID 10 |
OcNOS(config-nvo)#exit | Exit from VXLAN tenant mode and enter into configuration mode. |
OcNOS(config)#nvo vxlan id 30 ingress-replication inner-vid-disabled | Configure VXLAN Network identifier with/without inner-vid-disabled configure and enter into VXLAN tenant mode |
OcNOS(config-nvo)#vxlan host-reachability-protocol evpn-bgp vrfred | Assign VRF for EVPN-BGP to carry EVPN route |
OcNOS(config-nvo)#evpn irb2 | Configure IRB2 under VXLAN ID 30 |
OcNOS(config-nvo)#exit | Exit from VXLAN tenant mode and enter into configuration mode. |
OcNOS(config)#nvo vxlan access-if port-vlan xe5 2 | Enable port-VLAN mapping i.e. access port to outer-VLAN (SVLAN) - Multihomed access port |
OcNOS(config-nvo-acc-if)#map vnid 10 | Map VXLAN Identified to access-port for VXLAN |
OcNOS(config-nvo-acc-if)#exit | Exit from VXLAN access-interface mode and enter into configuration mode |
OcNOS(config)#commit | Commit the candidate configuration to the running configuration |
OcNOS(config)#exit | Exit from configuration mode |
OcNOS#configure terminal | Enter Configure mode. |
OcNOS(config)#interface ce0 | Enter Interface mode for ce0. |
OcNOS(config-if)#ip address 10.1.1.1/24 | Assign IP address on ce0 interface. |
OcNOS(config-if)#exit | Exit Interface mode and return to Configure mode. |
OcNOS(config)#interface xe13 | Enter Interface mode for xe13. |
OcNOS(config-if)#ip address 30.1.1.1/24 | Assign IP address on xe13 interface. |
OcNOS(config-if)#exit | Exit Interface mode and return to Configure mode. |
OcNOS(config)#router ospf | Enter the Router OSPF mode |
OcNOS(config-router)#network 10.1.1.0/24 area 0.0.0.0 | Advertise network address in OSPF |
OcNOS(config-router)#network 30.1.1.10/24 area 0.0.0.0 | Advertise network address in OSPF |
OcNOS(config-router)#exit | Exit from Router OSPF mode and enter into config mode |
OcNOS(config)#commit | commit the candidate configuration to the running configuration |
OcNOS(config)#exit | Exit from configuration mode |
OcNOS#configure terminal | Enter Configure mode. |
OcNOS(config)#interface lo | Enter Interface mode for loopback. |
OcNOS(config-if)#ip address 2.2.2.2/32 secondary | Assign secondary IP address. |
OcNOS(config-if)#exit | Exit Interface mode and return to Configure mode. |
OcNOS(config)#nvo vxlan enable | Enable VXLAN |
OcNOS(config)#nvo vxlan irb | Enable VXLAN IRB |
OcNOS(config)#ip vrf vrf1 | Create routing/forwarding instance with VRF1 name and enter into VRF mode |
OcNOS(config-vrf)#rd 300:1 | Assign RD value |
OcNOS(config-vrf)#route-target both 200:1 | Assign route target value |
OcNOS(config-vrf)#ip dhcp relay uplink evpn | Configure the uplink interface as L3 VNI interface for specific VRF |
OcNOS(config-vrf)#l3vni 45001 | Configure L3VNI as 45001 for VRF1 |
OcNOS(config-vrf)#exit | Exit IP VRF mode |
OcNOS(config)#mac vrf vrfred | Create MAC VRF instance with vrfred name and enter into VRF mode |
OcNOS(config-vrf)#rd 2.2.2.1:1 | Assign RD value |
OcNOS(config-vrf)#route-target both 1.1.1.1:1 | Assign route target value |
OcNOS(config-vrf)#exit | Exit MAC VRF mode |
OcNOS(config)#interface irb 2 | Configure IRB interface |
OcNOS(config-irb-if)#ip vrf forwarding vrf1 | Configure IP VRF forwarding |
OcNOS(config-irb-if)#ip address 40.40.40.2/24 | Assign IP address on IRB interface. |
OcNOS(config-irb-if)#exit | Exit IRB interface mode |
OcNOS(config)#interface xe13 | Enter Interface mode for xe13. |
OcNOS(config-if)#ip address 30.1.1.2/24 | Assign IP address on xe13 interface. |
OcNOS(config-if)#exit | Exit Interface mode and return to Configure mode. |
OcNOS(config)#interface xe19 | Enter Interface mode for xe19. |
OcNOS(config-if)#switchport | Configure interface as L2 interface |
OcNOS(config-if)#exit | Exit Interface mode and return to Configure mode. |
OcNOS(config)#router ospf | Enter the Router OSPF mode |
OcNOS(config-router)#network 2.2.2.2/32 area 0.0.0.0 | Advertise loopback address in OSPF |
OcNOS(config-router)#network 30.1.1.0/24 area 0.0.0.0 | Advertise network address in OSPF |
OcNOS(config-router)#network 40.1.1.0/24 area 0.0.0.0 | Advertise network address in OSPF |
OcNOS(config-router)#exit | Exit from Router OSPF mode and enter into config mode |
OcNOS(config)#router bgp 1 | Enter into BGP router mode |
OcNOS(config-router)#neighbor 1.1.1.1 remote-as 1 | Specify a VTEP1 loopback IP address and remote-as defined |
OcNOS(config-router)#neighbor 1.1.1.1 update-source 2.2.2.2 | Configure update as loopback for VTEP1 |
OcNOS(config-router)#address-family l2vpn evpn | Enter into L2VPN EVPN address family mode |
OcNOS(config-router-af)#neighbor 1.1.1.1 activate | Activate neighbor in L2VPN mode |
OcNOS(config-router-af)#exit-address-family | Exit from Address family mode |
OcNOS(config-router)#address-family ipv4 vrf vrf1 | Enter into address-family mode for VRF1 |
OcNOS(config-router-af)#redistribute connected | Configure Redistribute connected |
OcNOS(config-router-af)#exit-address-family | Exit from Address family mode |
OcNOS(config-router)#exit | Exit from router BGP mode and enter into config mode |
OcNOS(config)#nvo vxlan vtep-ip-global 2.2.2.2 | Configure Source VTEP-IP-global configuration. Use loopback IP address |
OcNOS(config)#nvo vxlan id 10 ingress-replication inner-vid-disabled | Configure VXLAN Network identifier with/without inner-vid-disabled configure and enter into VXLAN tenant mode |
OcNOS(config-nvo)#vxlan host-reachability-protocol evpn-bgp vrfred | Assign VRF for EVPN-BGP to carry EVPN route |
OcNOS(config-nvo)#exit | Exit from VXLAN tenant mode and enter into configuration mode. |
OcNOS(config)#nvo vxlan id 20 ingress-replication inner-vid-disabled | Configure VXLAN Network identifier with/without inner-vid-disabled configure and enter into VXLAN tenant mode |
OcNOS(config-nvo)#vxlan host-reachability-protocol evpn-bgp vrfred | Assign VRF for EVPN-BGP to carry EVPN route |
OcNOS(config-nvo)#evpn irb2 | Configure IRB2 under VXLAN ID 20 |
OcNOS(config-nvo)#exit | Exit from VXLAN tenant mode and enter into configuration mode. |
OcNOS(config)#nvo vxlan access-if port xe19 | Enable port mapping i.e. access port |
OcNOS(config-nvo-acc-if)#map vnid 20 | Map VXLAN Identified to access-port for VXLAN |
OcNOS(config-nvo-acc-if)#exit | Exit from VXLAN access-interface mode and enter into configuration mode |
OcNOS(config)#commit | Commit the candidate configuration to the running configuration |
OcNOS(config)#exit | Exit from configuration mode |