Appendix A: Scenario-based Cisco command line reference 211
Scenario 2-4 – Cisco IOS command line configuration
(VLAN Tagging (802.1Q) with Multiple Shared Uplink
Sets (SUS) and vNets)
Connect to the Cisco switch servicing the VC-Enet uplink ports and enter the following IOS commands.
NOTE: If tw o sw itches are being u sed, issu e the sam e com m ands on the second sw itch.
#show vlan brief
#sh vl br
Display all VLANs
#show interface gigabitethernet0/1
status
#sh int gi1/0/1 status
Display the status of Port 1
#copy running-config startup-config
(For permanent changes only)
#cop ru st
Save the running configuration to
NVRAM. Otherwise, the changes
will be lost on the next reboot.
Table 9
Scenario 2-3 & 2-3 Cisco IOS command line configuration (802.1Q, 802.3ad)
Command
Shortcut
Description
>enable
>en
Privilege mode
#configure terminal
#config t
Configure via terminal
#interface gigabitethernet0/1
#int gi1/0/1
Focus on Port 1
#switchport trunk allowed vlan 101-
103
#sw tr al vl 101-103
Configure port for VLANs 101
through 103
#switchport mode trunk
#sw mo tr
Enable trunking on Port 1
#spanning-tree portfast trunk
#sp portf tr
Enable portfast on Port 1
#exit
#ex
Remove focus from Port 1
#interface gigabitethernet0/2
#int gi1/0/2
Focus on Port 2
#switchport trunk allowed vlan
2000-3000
#sw tr ac vl 2000-3000
Configure port for VLANs 2000
through 3000
#switchport mode trunk
#sw mo tr
Enable trunking on Port 2
#spanning-tree portfast trunk
#sp portf tr
Enable portfast on Port 2
#exit
#ex
Remove focus from Port 2
#exit
#ex
Exit config mode