This exercise has been completed on Nexus 7K titanium emulator. I am running two N7K titanium machines inside vmware workstation and have connected 7 network adapters to emulate the physical interfaces in N7K, i am using titanium emulator version 5.2.1, if you are curious to know about the N7K titanium emulator and how to install inside vmware workstation, i will be writing more stuffs on it, soon.
I have connected my network adapters as follows on both machines, we can check which physical Ethernet interface on N7K machine is connected to network interface card on vmware workstation by simply disconnecting and watching ” show interface brief” on N7K console which interface is going down.
Right now my Ethernet2/1 on both N7K is connected to Vmnet4 on both vmware machines.We need to confirm and recheck else our virtual machines will not talk to each other, they should be on the same Vmnet. Lets start with our configuration.
Step 1:- Lets change the hostname of the device and assign N7K-1 to one machine and assign N7K-2 to other machine, by our old IOS familiar command “hostname N7K-1″.
N7K# conf t
Enter configuration commands, one per line. End with CNTL/Z.
N7K(config)# hostname N7K-1 –>Same for other machine as N7K-2.
Step-2:- Assign ip address of N7K-1 Ethernet2/1 as 184.108.40.206/24 and unshut the interface, also assign ip address of N7K-2 Ethernet2/1 as 220.127.116.11/24 and unshut the interface.Verify connectivity by pinging across the interfaces.
N7K-1(config)# ping 18.104.22.168
PING 22.214.171.124 (126.96.36.199): 56 data bytes
64 bytes from 188.8.131.52: icmp_seq=0 ttl=254 time=1.747 ms
64 bytes from 184.108.40.206: icmp_seq=1 ttl=254 time=1.262 ms
64 bytes from 220.127.116.11: icmp_seq=2 ttl=254 time=1.423 ms
64 bytes from 18.104.22.168: icmp_seq=3 ttl=254 time=1.396 ms
64 bytes from 22.214.171.124: icmp_seq=4 ttl=254 time=1.58 ms
— 126.96.36.199 ping statistics —
5 packets transmitted, 5 packets received, 0.00% packet loss
round-trip min/avg/max = 1.262/1.481/1.747 ms
Step-3 Check VRF membership of all interfaces inside N7K by ” show vrf interface”, by default there should be one “management” vrf for interface “mgmt0″and all other interfaces assigned to “default” vrf. Create a Loopback0 interface on N7K-1 and N7K-2 as 10.10.10.10/32 and 188.8.131.52/32. Also Create a VRF instance OSPF-VRF and assign it to interface Eth2/1 and Loopback0. Verify vrf assignment by “sh vrf interface”
We can also verify with “sh run vrf OSPF-VRF” to check the interface vrf assignment.
Step 4 Configure the same on N7K-2 with the loopback0 address of 184.108.40.206/32 and vrf as OSPF-VRF and assign it to interface eth2/1 and loopback0.
Step 5 Next we start our OSPF configuration , this Lab is completed under vrf just to show the vrf functionality along with OSPF, we can also run OSPF without vrf instance in NXOS like we do in IOS. First we enable the “feature ospf” and configure some basic OSPF commands and assign Area 0 to interface Eth2/1 on both N7K and assign Area 1 and Area 2 to both Loopback0. And in the end we will verify our OSPF neighborship and routes received.
Step 6 :- We will verify our configuration with various show commands. And play around with OSPF.
We can also clear ospf process by “clear ip ospf neighbor 220.127.116.11 vrf OSPF-VRF” and by command”restart ospf 1″ . And watch hellos send and received and other ospf traffic related parameters by “sh ip ospf traffic vrf OSPF-VRF”.
We can also configure OSPF authentication in NXOS same as IOS.
- What is the Definition of a Computer Network: Components, Uses, and Types - January 19, 2022
- VLAN Tagged vs Untagged – What is the difference? - January 6, 2022
- What are VLANs and Private VLANs and How VLANs work - January 4, 2022