Home > Networking Solutions > Enterprise/Data Center Networking Solutions > SmartFabric OS10 Networking Solutions > Guides > Multitenancy using VRF with Dell SmartFabric OS10 Implementation Guide > Rack-2 leaf VRF and OSPF configuration
Enter the configuration commands as shown for the Rack-2 leaf switch. It has a 100 GbE port that is connected to the Data Center Cloud. See the notes to the right of the commands.
The Tab key can be used for autocomplete when entering configuration commands.
Configure the following VRF and OSPF settings.
Rack 2 switch | Notes |
ip vrf sales ! ip vrf marketing | Configure the VRFs. The default VRF is configured by default in OS10. |
router ospf 1 log-adjacency-changes router-id 192.168.2.1 ! router ospf 2 vrf sales log-adjacency-changes router-id 172.16.2.1 ! router ospf 3 vrf marketing log-adjacency-changes router-id 172.17.2.1 | Configure OSPF for each VRF. The router-id is the loopback interface IP address for each VRF to ease identification. |
Give the interfaces IP addresses and assign them to VRFs and OSPF processes.
Rack 2 switch | Notes |
interface vlan10 mode L3 no shutdown ip address 10.1.1.2/24 ip ospf 1 area 0.0.0.0 ! interface vlan20 mode L3 no shutdown ip vrf forwarding sales ip address 10.1.2.2/24 ip ospf 2 area 0.0.0.0 ! interface vlan30 mode L3 no shutdown ip vrf forwarding marketing ip address 10.1.3.2/24 ip ospf 3 area 0.0.0.0 ! interface vlan100 mode L3 no shutdown ip address 100.1.1.2/24 ip ospf 1 area 0.0.0.0 ! interface vlan200 mode L3 no shutdown ip vrf forwarding sales ip address 100.1.1.2/24 ip ospf 2 area 0.0.0.0 ! interface vlan300 mode L3 no shutdown ip vrf forwarding marketing ip address 100.1.1.2/24 ip ospf 3 area 0.0.0.0 | Although there are overlapping subnets with the VLAN interfaces, the interfaces are slightly different that in the Rack-1 switch.
The VRF for the VLAN 10 and 100 interfaces is not specified as they remain in the default VRF. |
Configure the IP address, VRF, and OSPF of each loopback interface.
Rack-2 switch | Notes |
interface loopback0 no shutdown ip address 192.168.2.1/24 ip ospf 1 area 0.0.0.0 ! interface loopback1 no shutdown ip vrf forwarding sales ip address 172.16.2.1/24 ip ospf 2 area 0.0.0.0 ! interface loopback2 no shutdown ip vrf forwarding marketing ip address 172.17.2.1/24 ip ospf 3 area 0.0.0.0 | No VRF is specified for the loopback 0 interface as it remains in the default VRF. |
interface ethernet1/1/49 no shutdown switchport mode trunk switchport access vlan 1 switchport trunk allowed vlan 10,20,30,100,200,300 mtu 1532 flowcontrol receive off | Configure the Ethernet interface and specify the allowed VLANs. |
write memory | Save the running configuration. |