Home > Networking Solutions > Enterprise/Data Center Networking Solutions > SmartFabric OS10 Networking Solutions > Guides > Achieve network virtualization in small scale data centers with ease, using Static VXLAN > Leaf switch configuration
Configure a loopback Interface on all four-leaf switches and use that interface as the VXLAN source tunnel interface.
Leaf 1 | Leaf 2 |
interface loopback0 no shutdown ip address 10.222.222.1/32 ip ospf 1 area 0.0.0.0 exit | interface loopback0 no shutdown ip address 10.222.222.1/32 ip ospf 1 area 0.0.0.0 exit
|
Leaf 3 | Leaf 4 |
interface loopback0 no shutdown ip address 10.222.222.2/32 ip ospf 1 area 0.0.0.0 exit
| interface loopback0 no shutdown ip address 10.222.222.2/32 ip ospf 1 area 0.0.0.0 exit |
Create a Network Virtualization Edge (NVE) instance. Parameters configured at this level are common to all overlay encapsulation types and all virtual-networks unless overridden at a more specific level. Configure the NVE source interface – the IP address at this interface is used as a source IP address in all VXLAN packet headers emitted from this device.
Leaf 1 | Leaf 2 |
nve source-interface loopback0 exit | nve source-interface loopback0 exit |
Leaf 3 | Leaf 4 |
nve source-interface loopback0 exit
| nve source-interface loopback0 exit
|
The local NVE Source IP should be advertised into the underlay IP network to all peer NVEs. Each NVE should have route installed to reach each of the other peer NVE IPs in the network. In the following example, OSPF in the underlay to advertise and learn route reachability to the peer NVEs. Configure the underlay OSPF protocol as follows:
Leaf 2 | |
hostname Leaf1 router ospf 1 router-id 10.2.2.1 exit | hostname Leaf2 router ospf 1 router-id 10.2.2.2 exit |
Leaf 4 | |
hostname Leaf3 router ospf 1 router-id 10.2.2.3 exit | hostname Leaf4 router ospf 1 router-id 10.2.2.4 exit |
Configure VXLAN Virtual Networks with a static VTEP. The remote VTEP IP address configured here is the NVE source IP address that is configured on each of the remote VTEP NVEs that participates in the same tenant segment in the overlay network.
Note: Only IPv4 network addresses are supported.
BUM traffic in this virtual-network replicated to each remote VTEP configured under the VXLAN tunnel end-point. Each replicated packet carries the VNI assigned to the tunnel end-point in the VXLAN header. SmartFabric OS10 supports replication up to 1024 peer NVE IP addresses.
Leaf 1 | Leaf 2 |
virtual-network 1614 vxlan-vni 1614 remote-vtep 10.222.222.2 exit exit exit
virtual-network 1615 vxlan-vni 1615 remote-vtep 10.222.222.2 exit exit exit
| virtual-network 1614 vxlan-vni 1614 remote-vtep 10.222.222.2 exit exit exit
virtual-network 1615 vxlan-vni 1615 remote-vtep 10.222.222.2 exit exit exit |
Leaf 3 | Leaf 4 |
virtual-network 1614 vxlan-vni 1614 remote-vtep 10.222.222.1 exit exit exit
virtual-network 1615 vxlan-vni 1615 remote-vtep 10.222.222.1 exit exit exit | virtual-network 1614 vxlan-vni 1614 remote-vtep 10.222.222.1 exit exit exit
virtual-network 1615 vxlan-vni 1615 remote-vtep 10.222.222.1 exit exit exit |
Using the following commands, create a virtual network bridge domain and attach a VXLAN tunnel end-point to the bridge domain using a specific VNI.
Note: Only one tunnel end-point of a given NVO type can be attached to each virtual network.
Leaf 1 | Leaf 2 |
interface vlan1614 virtual-network 1614 no shutdown exit
interface vlan1615 virtual-network 1615 no shutdown exit | interface vlan1614 virtual-network 1614 no shutdown exit
interface vlan1615 virtual-network 1615 no shutdown exit |
Leaf 3 | Leaf 4 |
interface vlan1614 virtual-network 1614 no shutdown exit
interface vlan1615 virtual-network 1615 no shutdown exit | interface vlan1614 virtual-network 1614 no shutdown exit
interface vlan1615 virtual-network 1615 no shutdown exit |
The commands in the following example configure access ports as VLAN members for switch-scoped VLAN-to-VNI mapping. Packets received for these VLANs on any of these trunk or access ports are assigned to the virtual networking for bridging. If the packet is bridged over a VXLAN tunnel, then the packet VLAN tag is stripped and encapsulated (with VXLAN VNI) before transmitting out on the egress interface for the tunnel. At the remote receiving end, the packet is assigned to a virtual network for bridging based on VXLAN VNI and the VXLAN header is stripped off. After the bridging on the egress interface is identified, the VLAN tag is regenerated based on the VLAN ID associated with the egress interface for this virtual network.
Leaf 1 | Leaf 2 |
Interface port-channel100 No shutdown Switchport trunk allowed vlan 1614-1615 exit
interface ethernet 1/1/11 no shutdown channel-group 100 mode active no switchport exit | Interface port-channel100 No shutdown Switchport trunk allowed vlan 1614-1615 exit
interface ethernet 1/1/11 no shutdown channel-group 100 mode active no switchport exit
|
Leaf 3 | Leaf 4 |
Interface port-channel100 No shutdown Switchport trunk allowed vlan 1614-1615 exit
interface ethernet 1/1/11 no shutdown channel-group 100 mode active no switchport exit
| Interface port-channel100 No shutdown Switchport trunk allowed vlan 1614-1615 exit
interface ethernet 1/1/11 no shutdown channel-group 100 mode active no switchport exit
|
Enter the commands below to configure the upstream network-facing ports. The following configurations show the NVE source IP address is advertised using OSPF.
Leaf 1 | Leaf 2 |
interface ethernet1/1/53 no shutdown no switchport ip address 192.168.1.1/31 ip ospf 1 area 0.0.0.0 exit
interface ethernet1/1/56 no shutdown no switchport ip address 192.168.2.1/31 ip ospf 1 area 0.0.0.0 exit | interface ethernet1/1/53 no shutdown no switchport ip address 192.168.1.3/31 ip ospf 1 area 0.0.0.0 exit
interface ethernet1/1/56 no shutdown no switchport ip address 192.168.2.3/31 ip ospf 1 area 0.0.0.0 exit |
Leaf 3 | Leaf 4 |
interface ethernet1/1/53 no shutdown no switchport ip address 192.168.1.5/31 ip ospf 1 area 0.0.0.0 exit
interface ethernet1/1/56 no shutdown no switchport ip address 192.168.2.5/31 ip ospf 1 area 0.0.0.0 exit | interface ethernet1/1/53 no shutdown no switchport ip address 192.168.1.7/31 ip ospf 1 area 0.0.0.0 exit
interface ethernet1/1/56 no shutdown no switchport ip address 192.168.2.7/31 ip ospf 1 area 0.0.0.0 exit |
Configure the VLT port-channel and VLTi member links using the following commands:
Leaf 1 | Leaf 2 |
interface port-channel100 vlt port-channel 100 exit
interface ethernet1/1/51 no shutdown no switchport exit
interface ethernet1/1/49 no shutdown no switchport exit | interface port-channel100 vlt port-channel 100 exit
interface ethernet1/1/51 no shutdown no switchport exit
interface ethernet1/1/49 no shutdown no switchport exit |
Leaf 3 | Leaf 4 |
interface port-channel100 vlt port-channel 100 exit
interface ethernet1/1/51 no shutdown no switchport exit
interface ethernet1/1/49 no shutdown no switchport exit | interface port-channel100 vlt port-channel 100 exit
interface ethernet1/1/51 no shutdown no switchport exit
interface ethernet1/1/49 no shutdown no switchport exit |
Enter the following commands to configure the VLTi. The IP address used in the backup destination command is the management IP address of the other switch in VLT pair.
Leaf 1 | Leaf 2 |
vlt-domain 127 | vlt-domain 127 |
Leaf 3 | Leaf 4 |
vlt-domain 128 | vlt-domain 128 |
Using the following commands, configure a tenant VRF, anycast Layer 3 gateway, MAC address, and anycast gateway IP address for each virtual network.
Leaf 1 | Leaf 2 |
ip vrf tenant1 exit
ip virtual-router mac-address 00:01:01:01:01:01
interface virtual-network 1614 ip vrf forwarding tenant1 ip address 172.16.14.241/24 ip virtual-router address 172.16.14.253 no shutdown exit
interface virtual-network 1615 ip vrf forwarding tenant1 ip address 172.16.15.241/24 ip virtual-router address 172.16.15.253 no shutdown exit | ip vrf tenant1 exit
ip virtual-router mac-address 00:01:01:01:01:01
interface virtual-network 1614 ip vrf forwarding tenant1 ip address 172.16.14.241/24 ip virtual-router address 172.16.14.253 no shutdown exit
interface virtual-network 1615 ip vrf forwarding tenant1 ip address 172.16.15.241/24 ip virtual-router address 172.16.15.253 no shutdown exit |
Leaf 3 | Leaf 4 |
ip vrf tenant1 exit
ip virtual-router mac-address 00:01:01:01:01:01
interface virtual-network 1614 ip vrf forwarding tenant1 ip address 172.16.14.241/24 ip virtual-router address 172.16.14.253 no shutdown exit
interface virtual-network 1615 ip vrf forwarding tenant1 ip address 172.16.15.241/24 ip virtual-router address 172.16.15.253 no shutdown exit | ip vrf tenant1 exit
ip virtual-router mac-address 00:01:01:01:01:01
interface virtual-network 1614 ip vrf forwarding tenant1 ip address 172.16.14.241/24 ip virtual-router address 172.16.14.253 no shutdown exit
interface virtual-network 1615 ip vrf forwarding tenant1 ip address 172.16.15.241/24 ip virtual-router address 172.16.15.253 no shutdown exit |