HP Virtual Connect 1Gb Ethernet Cookbook

Appendix A: Scenario-based Cisco command line reference 83
Appendix A: Scenario-based Cisco
command line reference
All of the following commands in this appendix assume an unaltered factory default
configuration before execution of the switch commands.
Scenario 1 & 2 – Cisco IOS command line configuration (Simple
vNet with Active/Standby Uplinks)
Connect to the Cisco switch servicing the VC-Enet uplink ports and enter the following IOS
commands.
NOTE: If two switches are being used, issue the same commands on the second switch.
Table 1a Scenario 1 and 2 (Part 1) - Cisco IOS command line configuration.
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 mode
access
#sw mo ac Set port 1 for Single
VLAN mode
#switchport access
vlan 1
#sw ac vl 1 Allow Port 1 access to
VLAN 1
#spanning-tree
portfast trunk
#sp portf tr Enable portfast on Port
1
#exit #exit Remove focus from
Port 1
#exit #exit Remove focus from
Port 1
#show vlan brief #sh vl br Display all VLANs
#show interface
gigabitethernet0/1
status
#sh int gi0/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.