Example model & SONiC version:
Asymmetric IRB feature list
Mac/route table usage
Scenarios for using Asymmetric IRB:
Limitations:
Pre-configuration:
Procedure :
Aurora nba610-1:
admin@nba610-1:~$ sudo config vxlan add vtep 10.10.10.1 --> config vxlan add <vtepname> <src_ipv4>
admin@nba610-1:~$ sudo config vxlan evpn_nvo add nvo vtep --> config vxlan evpn_nvo add <nvoname> <vtepname>
admin@nba610-1:~$ sudo config vxlan map add vtep 100 100 --> config vxlan map add <vtepname> <vlanid> <vnid>
admin@nba610-1:~$ sudo config vxlan map add vtep 200 200
Aurora nba610-2:
admin@nba610-2:~$ sudo config vxlan add vtep 10.10.10.101
admin@nba610-2:~$ sudo config vxlan evpn_nvo add nvo vtep
admin@nba610-2:~$ sudo config vxlan map add vtep 100 100
admin@nba610-2:~$ sudo config vxlan map add vtep 200 200
Aurora nba610-1:
admin@nba610-1:~$ vtysh
Hello, this is FRRouting (version 7.5.1-sonic).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
nba610-1# configure terminal
nba610-1(config)# router bgp 65100
nba610-1(config-router)# neighbor 10.0.1.0 remote-as 65100
nba610-1(config-router)# neighbor 10.0.1.0 description nba610-2
nba610-1(config-router)# address-family ipv4 unicast
nba610-1(config-router-af)# network 10.10.10.1/32
nba610-1(config-router-af)# exit
nba610-1(config-router)# address-family l2vpn evpn
nba610-1(config-router-af)# neighbor 10.0.1.0 activate
nba610-1(config-router-af)# advertise-all-vni
nba610-1(config-router-af)# end
nba610-1# write
nba610-1# exit
Aurora nba610-2:
admin@nba610-2:~$ vtysh
Hello, this is FRRouting (version 7.5.1-sonic).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
nba610-2# configure terminal
nba610-2(config)# router bgp 65100
nba610-2(config-router)# neighbor 10.0.1.1 remote-as 65100
nba610-2(config-router)# neighbor 10.0.1.1 description nba610-1
nba610-2(config-router)# address-family ipv4 unicast
nba610-2(config-router-af)# network 10.10.10.101/32
nba610-2(config-router-af)# exit
nba610-2(config-router)# address-family l2vpn evpn
nba610-2(config-router-af)# neighbor 10.0.1.1 activate
nba610-2(config-router-af)# advertise-all-vni
nba610-2(config-router-af)# end
nba610-2# write
nba610-2# exit
Check EVPN-VNI status.
Aurora nba610-1:
nba610-1# show evpn vni
VNI Type VxLAN IF # MACs # ARPs # Remote VTEPs Tenant VRF
100 L2 vtep-100 1 2 1 default
200 L2 vtep-200 1 2 1 default
nba610-1# show evpn vni detail
VNI: 100
Type: L2
Tenant VRF: default
VxLAN interface: vtep-100
VxLAN ifIndex: 68
Local VTEP IP: 10.10.10.1
Mcast group: 0.0.0.0
Remote VTEPs for this VNI:
10.10.10.101 flood: HER
Number of MACs (local and remote) known for this VNI: 1
Number of ARPs (IPv4 and IPv6, local and remote) known for this VNI: 2
Advertise-gw-macip: No
VNI: 200
Type: L2
Tenant VRF: default
VxLAN interface: vtep-200
VxLAN ifIndex: 69
Local VTEP IP: 10.10.10.1
Mcast group: 0.0.0.0
Remote VTEPs for this VNI:
10.10.10.101 flood: HER
Number of MACs (local and remote) known for this VNI: 1
Number of ARPs (IPv4 and IPv6, local and remote) known for this VNI: 2
Advertise-gw-macip: No
Aurora nba610-2:
nba610-2# show evpn vni
VNI Type VxLAN IF # MACs # ARPs # Remote VTEPs Tenant VRF
200 L2 vtep-200 0 0 1 default
100 L2 vtep-100 0 0 1 default
nba610-2# show evpn vni detail
VNI: 200
Type: L2
Tenant VRF: default
VxLAN interface: vtep-200
VxLAN ifIndex: 72
Local VTEP IP: 10.10.10.101
Mcast group: 0.0.0.0
Remote VTEPs for this VNI:
10.10.10.1 flood: HER
Number of MACs (local and remote) known for this VNI: 0
Number of ARPs (IPv4 and IPv6, local and remote) known for this VNI: 0
Advertise-gw-macip: No
Advertise-svi-macip: No
VNI: 100
Type: L2
Tenant VRF: default
VxLAN interface: vtep-100
VxLAN ifIndex: 71
Local VTEP IP: 10.10.10.101
Mcast group: 0.0.0.0
Remote VTEPs for this VNI:
10.10.10.1 flood: HER
Number of MACs (local and remote) known for this VNI: 0
Number of ARPs (IPv4 and IPv6, local and remote) known for this VNI: 0
Advertise-gw-macip: No
Advertise-svi-macip: No
Check BGP EVPN status.
Aurora nba610-1:
admin@nba610-1:~$ show vxlan vlanvnimap
+---------+-------+
| VLAN | VNI |
+=========+=======+
| Vlan100 | 1000 |
+---------+-------+
Total count : 1
Aurora nba610-2:
admin@nba610-2:~$ show vxlan vlanvnimap
+---------+-------+
| VLAN | VNI |
+=========+=======+
| Vlan100 | 1000 |
+---------+-------+
Total count : 1