Home > Networking Solutions > Enterprise/Data Center Networking Solutions > SmartFabric OS10 Networking Solutions > Guides > Dell Networking Layer 3 Leaf-Spine Deployment and Best Practices with OS10 release 10.5.3.0.44 > Show the OSPF/BGP neighbor establishment
Show ip ospf neighbor
The following command shows the state of all connected OSPF neighbors. In this configuration, each spine has four neighbors (the four leaf switches) and each leaf switch has two neighbors (the two spine switches).
Z9264F-Spine1#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface Area
--------------------------------------------------------------------------
10.0.2.1 1 FULL/DR 00:00:30 192.168.1.1 ethernet1/1/1 0.0.0.0
10.0.2.2 1 FULL/DR 00:00:33 192.168.1.3 ethernet1/1/2 0.0.0.0
10.0.2.3 1 FULL/DR 00:00:36 192.168.1.5 ethernet1/1/3 0.0.0.0
10.0.2.4 1 FULL/DR 00:00:39 192.168.1.7 ethernet1/1/4 0.0.0.0
S5248F-Leaf1#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface Area
--------------------------------------------------------------------------
10.0.1.1 1 FULL/BDR 00:00:30 192.168.1.0 ethernet1/1/53 0.0.0.0
10.0.1.2 1 FULL/BDR 00:00:33 192.168.2.0 ethernet1/1/54 0.0.0.0
Show IP route ospf
This command verifies the OSPF entries in the Routing Information Base (RIB). Entries with multiple paths shown are used with ECMP. The two server networks in this example, 10.60.1.0 and 172.16.1.0, each have two paths from Z9264F-Spine1, one through each leaf switch.
The first set of routes with a subnet mask of /32 are the IPs configured for router IDs.
Z9264F-Spine1#show ip route ospf
Codes: C - connected
S - static
B - BGP, IN - internal BGP, EX - external BGP
O - OSPF, IA - OSPF inter area, N1 - OSPF NSSA external type 1,
N2 - OSPF NSSA external type 2, E1 - OSPF external type 1,
E2 - OSPF external type 2, * - candidate default,
+ - summary route, > - non-active route
Gateway of last resort is not set
Destination Gateway Dist/Metric Last Change
-----------------------------------------------------------------------------
O E2 10.0.1.2/32 via 192.168.1.1 ethernet1/1/1 110/20 00:15:27
via 192.168.1.3 ethernet1/1/2
via 192.168.1.5 ethernet1/1/3
via 192.168.1.7 ethernet1/1/4
O E2 10.0.2.1/32 via 192.168.1.1 ethernet1/1/1 110/20 00:15:32
O E2 10.0.2.2/32 via 192.168.1.3 ethernet1/1/2 110/20 00:15:32
O E2 10.0.2.3/32 via 192.168.1.5 ethernet1/1/3 110/20 00:15:32
O E2 10.0.2.4/32 via 192.168.1.7 ethernet1/1/4 110/20 00:15:32
O E2 10.60.1.0/24 via 192.168.1.5 ethernet1/1/3 110/20 00:15:32
via 192.168.1.7 ethernet1/1/4
O E2 172.16.1.0/24 via 192.168.1.1 ethernet1/1/1 10/20 00:15:32
via 192.168.1.3 ethernet1/1/2
O 192.168.2.0/31 via 192.168.1.1 ethernet1/1/1 110/2 00:15:32
O 192.168.2.2/31 via 192.168.1.3 ethernet1/1/2 110/2 00:15:32
O 192.168.2.4/31 via 192.168.1.5 ethernet1/1/3 110/2 00:15:32
O 192.168.2.6/31 via 192.168.1.7 ethernet1/1/4 110/2 00:15:32
S5248F-Leaf1 has two paths to all other leaf switches and two paths to Server 2’s network, 10.60.1.0. There is one path through each spine switch.
S5248F-Leaf1#show ip route ospf
Codes: C - connected
S - static
B - BGP, IN - internal BGP, EX - external BGP
O - OSPF, IA - OSPF inter area, N1 - OSPF NSSA external type 1,
N2 - OSPF NSSA external type 2, E1 - OSPF external type 1,
E2 - OSPF external type 2, * - candidate default,
+ - summary route, > - non-active route
Gateway of last resort is not set
Destination Gateway Dist/Metric Last change
-----------------------------------------------------------------------------
O E2 10.0.1.1/32 via 192.168.1.0 ethernet1/1/53 110/20 00:15:34
O E2 10.0.1.2/32 via 192.168.2.0 ethernet1/1/54 110/20 00:15:27
O E2 10.0.2.2/32 via 192.168.1.0 ethernet1/1/53 110/20 00:15:27
via 192.168.2.0 ethernet1/1/54
O E2 10.0.2.3/32 via 192.168.1.0 ethernet1/1/53 110/20 00:15:27
via 192.168.2.0 ethernet1/1/54
O E2 10.0.2.4/32 via 192.168.1.0 ethernet1/1/53 110/20 00:15:27
via 192.168.2.0 ethernet1/1/54
O E2 10.60.1.0/24 via 192.168.1.0 ethernet1/1/53 110/20 00:15:27
via 192.168.2.0 ethernet1/1/54
O 192.168.1.2/31 via 192.168.1.0 ethernet1/1/53 110/2 00:15:34
O 192.168.1.4/31 via 192.168.1.0 ethernet1/1/53 110/2 00:15:34
O 192.168.1.6/31 via 192.168.1.0 ethernet1/1/53 110/2 00:15:34
O 192.168.2.2/31 via 192.168.2.0 ethernet1/1/54 110/2 00:15:27
O 192.168.2.4/31 via 192.168.2.0 ethernet1/1/54 110/2 00:15:27
O 192.168.2.6/31 via 192.168.2.0 ethernet1/1/54 110/2 00:15:27
Show ip bgp summary
The following command shows the status of all BGP connections. Each spine has four neighbors (four leaf switches) and each leaf switch has two neighbors (the two spines switches). The leaf switches each use different ASNs, as the environment uses eBGP.
Z9264F-Spine1#show ip bgp summary
BGP router identifier 10.0.1.1 local AS number 64601
Neighbor AS MsgRcvd MsgSent Up/Down State/Pfx
192.168.1.1 64701 43 45 00:01:38 8
192.168.1.3 64702 43 46 00:01:38 8
192.168.1.5 64703 42 46 00:01:38 8
192.168.1.7 64704 43 45 00:01:37 8
S5248F-Leaf1#show ip bgp summary
BGP router identifier 10.0.2.1 local AS number 64701
Neighbor AS MsgRcvd MsgSent Up/Down State/Pfx
192.168.1.0 64601 110 106 00:04:22 12
192.168.2.0 64602 108 110 00:04:19 12
Show IP route bgp
The following command is used to verify the BGP entries in the Routing Information Base (RIB). Entries with multiple paths shown are used with ECMP. The two server networks in this example, 10.60.1.0 and 172.16.1.0, each have two best paths from Z9264F-Spine1, one through each leaf switch.
Note: The first set of routes with a subnet mask of /32 are the Ips configured for router IDs.
Z9264F-Spine1#show ip route bgp
Codes: C - connected
S - static
B - BGP, IN - internal BGP, EX - external BGP
O - OSPF, IA - OSPF inter area, N1 - OSPF NSSA external type 1,
N2 - OSPF NSSA external type 2, E1 - OSPF external type 1,
E2 - OSPF external type 2, * - candidate default,
+ - summary route, > - non-active route
Gateway of last resort is not set
Destination Gateway Dist/Metric Last Change
----------------------------------------------------------------------------
B EX 10.0.1.2/32 via 192.168.1.1 20/0 00:09:01
via 192.168.1.3
B EX 10.0.2.1/32 via 192.168.1.1 20/0 00:09:04
B EX 10.0.2.2/32 via 192.168.1.3 20/0 00:09:04
B EX 10.0.2.3/32 via 192.168.1.5 20/0 00:09:04
B EX 10.0.2.4/32 via 192.168.1.7 20/0 00:09:03
B EX 10.60.1.0/24 via 192.168.1.5 20/0 00:09:03
via 192.168.1.7
B EX 172.16.1.0/24 via 192.168.1.1 20/0 00:09:04
via 192.168.1.3
B EX 192.168.2.0/31 via 192.168.1.1 20/0 00:09:04
B EX 192.168.2.2/31 via 192.168.1.3 20/0 00:09:04
B EX 192.168.2.4/31 via 192.168.1.5 20/0 00:09:04
B EX 192.168.2.6/31 via 192.168.1.7 20/0 00:09:03
S5248F-Leaf1 has two paths to all other leaf switches and two paths to Server 2’s network, 10.60.1.0. There is one path through each spine switch.
S5248F-Leaf1#show ip route bgp
Codes: C - connected
S - static
B - BGP, IN - internal BGP, EX - external BGP
O - OSPF, IA - OSPF inter area, N1 - OSPF NSSA external type 1,
N2 - OSPF NSSA external type 2, E1 - OSPF external type 1,
E2 - OSPF external type 2, * - candidate default,
+ - summary route, > - non-active route
Gateway of last resort is not set
Destination Gateway Dist/Metric Last Change
-----------------------------------------------------------------------------
B EX 10.0.1.1/32 via 192.168.1.0 20/0 00:09:04
B EX 10.0.1.2/32 via 192.168.2.0 20/0 00:09:01
B EX 10.0.2.2/32 via 192.168.1.0 20/0 00:09:01
via 192.168.2.0
B EX 10.0.2.3/32 via 192.168.1.0 20/0 00:09:01
via 192.168.2.0
B EX 10.0.2.4/32 via 192.168.1.0 20/0 00:09:00
via 192.168.2.0
B EX 10.60.1.0/24 via 192.168.1.0 20/0 00:09:01
via 192.168.2.0
B EX 192.168.1.2/31 via 192.168.1.0 20/0 00:09:04
B EX 192.168.1.4/31 via 192.168.1.0 20/0 00:09:04
B EX 192.168.1.6/31 via 192.168.1.0 20/0 00:09:04
B EX 192.168.2.2/31 via 192.168.2.0 20/0 00:09:01
B EX 192.168.2.4/31 via 192.168.2.0 20/0 00:09:01
B EX 192.168.2.6/31 via 192.168.2.0 20/0 00:09:0
Show ping connectivity and traceroute output result CLI command in BGP
Figure 18. Icmp traffic communication between racks in layer 3 leaf-spine
Ping and traceroute from PC1 source IP 172.16.1.50 rack 1 toward destination 10.60.1.50 rack 2.
PC1> ping 10.60.1.50 -t
84 bytes from 10.60.1.50 icmp_seq=1 ttl=61 time=54.883 ms
84 bytes from 10.60.1.50 icmp_seq=2 ttl=61 time=14.660 ms
84 bytes from 10.60.1.50 icmp_seq=3 ttl=61 time=42.601 ms
84 bytes from 10.60.1.50 icmp_seq=4 ttl=61 time=37.960 ms
PC1> trace 10.60.1.50
trace to 10.60.1.50, 8 hops max, press Ctrl+C to stop
1 172.16.1.1 9.503 ms 0.584 ms 6.112 ms
2 172.16.1.2 4.271 ms 1.999 ms 1.902 ms
3 192.168.2.2 21.441 ms 11.555 ms 17.691 ms
4 192.168.1.0 1.069 ms 8.923 ms 4294965.181 ms
5 192.168.1.0 2.115 ms 29.079 ms 1.985 ms
6 192.168.2.7 17.127 ms
Ping and traceroute from PC2 source IP 10.60.1.50 rack 2 toward destination 172.16.1.50 rack 1.
PC2> ping 172.16.1.50
84 bytes from 172.16.1.50 icmp_seq=1 ttl=61 time=95.345 ms
84 bytes from 172.16.1.50 icmp_seq=2 ttl=61 time=43.097 ms
84 bytes from 172.16.1.50 icmp_seq=3 ttl=61 time=39.927 ms
84 bytes from 172.16.1.50 icmp_seq=4 ttl=61 time=22.283 ms
PC2> trace 172.16.1.50
trace to 172.16.1.50, 8 hops max, press Ctrl+C to stop
1 10.60.1.1 43.338 ms 18.577 ms 28.382 ms
2 10.60.1.2 82.646 ms 11.359 ms 23.079 ms
3 192.168.1.4 8.201 ms 8.723 ms 104.254 ms
4 192.168.2.6 23.476 ms 5.723 ms 14.829 ms
5 192.168.1.1 7.962 ms 14.818 ms 1.314 ms
6 192.168.2.3 17.460 ms 74.661 ms