Professional Documents
Culture Documents
Switching
Task
Configure N7K1, N7K2, N5K1, and N5K2 as follows so that IP connectivity is established
between Server 1 and Server 2:
Create VLAN 10 on N7K1, N7K2, N5K1, and N5K2.
Assign VLAN 10 as the access VLAN for N5K1's connection to Server 1; Server 1
should use the IP address 10.0.0.1/24.
Assign VLAN 10 as the access VLAN for N5K2's connection to Server 2; Server 2
should use the IP address 10.0.0.2/24.
Statically set these links to 1Gbps on N5K1 and N5K2, respectively.
Configure 802.1Q Trunking between the switches as follows:
N5K1's links to N7K1 should all be trunks.
N5K2's links to N7K2 should all be trunks.
N7K1's links to N7K2 should all be trunks.
Edit the trunking allowed list so that only VLANs 1 and 10 will forward over these links.
Disable all other interconnections between the switches.
When complete, Server 1 and Server 2 should have IP connectivity to each other.
Configuration
N5K1:
vlan 1,10
!
interface Ethernet1/1
switchport access vlan 10
speed 1000
no shutdown
!
interface Ethernet1/2 - 5
shutdown
!
interface Ethernet1/6 FEEDBACK
switchport mode trunk
switchport trunk allowed vlan 1,10
no shutdown
!
interface Ethernet1/7
switchport mode trunk
switchport trunk allowed vlan 1,10
no shutdown
!
interface Ethernet1/8 - 9
shutdown
N5K2:
vlan 1,10
!
interface Ethernet1/1
shutdown
!
interface Ethernet1/2
switchport access vlan 10
speed 1000
no shutdown
!
interface Ethernet1/3 - 5
shutdown
!
interface Ethernet1/6
switchport mode trunk
switchport trunk allowed vlan 1,10
no shutdown
!
interface Ethernet1/7
switchport mode trunk
switchport trunk allowed vlan 1,10
no shutdown
!
interface Ethernet1/8 - 9
shutdown
N7K1:
vlan 1,10
!
interface Ethernet1/1 - 2, Ethernet2/1 - 4
switchport
switchport mode trunk
switchport trunk allowed vlan 1,10
no shutdown
N7K2:
vlan 1,10
!
interface Ethernet1/1 - 2, Ethernet2/1 - 4
switchport
switchport mode trunk
switchport trunk allowed vlan 1,10
no shutdown
Verification
Server 1 is able to reach Server 2 on the local LAN segment:
Only the required interfaces are connected. Links to the end servers run at 1Gbps, whereas the
trunks between the switches run at 10Gbps:
N5K1# show interface status
--------------------------------------------------------------------------
------
Port Name Status Vlan Duplex Speed Type
--------------------------------------------------------------------------
------
Eth1/1 -- connected 10 full 1000 SFP-
1000BAS
Eth1/2 -- disabled 1 full 10G SFP-1
000BAS
Eth1/3 -- disabled 1 full 10G SFP-H
10GB-C
Eth1/4 -- disabled 1 full 10G SFP-H
10GB-C
Eth1/5 -- disabled 1 full 10G SFP-H
10GB-C
Eth1/6 -- connected trunk full 10G SFP-
H10GB-C
Eth1/7 -- connected trunk full 10G SFP-
H10GB-C
Eth1/8 -- disabled 1 full 10G SFP-H
10GB-C
Eth1/9 -- disabled 1 full 10G SFP-H
10GB-C
--------------------------------------------------------------------------
------
Port Native Status Port
Vlan Channel
--------------------------------------------------------------------------
------
Eth1/1 1 trunking --
Eth1/2 1 trunking --
Eth2/1 1 trunking --
Eth2/2 1 trunking --
Eth2/3 1 trunking --
Eth2/4 1 trunking --
--------------------------------------------------------------------------
------
Port Vlans Allowed on Trunk
--------------------------------------------------------------------------
------
Eth1/1 1,10
Eth1/2 1,10
Eth2/1 1,10
Eth2/2 1,10
Eth2/3 1,10
Eth2/4 1,10
--------------------------------------------------------------------------
------
Port Vlans Err-disabled on Trunk
--------------------------------------------------------------------------
------
Eth1/1 none
Eth1/2 none
Eth2/1 none
Eth2/2 none
Eth2/3 none
Eth2/4 none
--------------------------------------------------------------------------
------
Port STP Forwarding
--------------------------------------------------------------------------
------
Eth1/1 1,10
Eth1/2 none
Eth2/1 none
Eth2/2 none
Eth2/3 1,10
Eth2/4 1,10
--------------------------------------------------------------------------
------
Port Vlans in spanning tree forwarding state and not pruned
--------------------------------------------------------------------------
------
Eth1/1 1,10
Eth1/2 none
Eth2/1 none
Eth2/2 none
Eth2/3 1,10
Eth2/4 1,10
<snip>
All four switches agree on who the root of the Spanning-Tree is for VLAN 10, and alternate paths
to the root bridge are blocked:
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 32778
Address 0026.980c.2141
Cost 4
Port 134 (Ethernet1/6)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 32778
Address 0026.980c.2141
Cost 2
Port 134 (Ethernet1/6)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 32778
Address 0026.980c.2141
Cost 2
Port 129 (Ethernet1/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 32778
Address 0026.980c.2141
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Server 1 and Server 2's MAC addresses are learned in the VLAN 10 CAM table:
^ back to top