Vro and vswitch commands
Basic commands for routers and switches
En enters privileged Mode
Conf t global Mode
Int interface number enters interface mode
Exit returns the previous mode.
End return privileged Mode
Hostname host name configuration Host Name
Sh ver view version information
Showmac-address-table view Mac address table
Duplex mode configuration Duplex mode (full Duplex full, semi-dual half, auto negotiation)
Speed Value configuration interface rate (auto match)
Ifconfig
Ping IP address to test connectivity
Exec-timeout 0 0 always online, no timeout lock
No ip domain-lookup disable DNS lookup
Logg syn Information Synchronization
IP add IP address subnet mask configuration IP address (in global mode)
Ip default-gatewaty gateway address configuration switch default Gateway
Password configure console port Password
No sh open interface
Show arp view ARP cache table
Clear arp-cache Clear ARP cache table
Arp IP address Mac address arpa ARP binding
Ping-t + IP address unlimited test (connectivity)
Ping-a + IP address to display the host name corresponding to the IP address
Ping IP address-l byte Size Test connectivity
Ip route ip cidr Block subnet mask next interface Ip Address Configuration static route
No Ip route ip cidr Block subnet mask next interface Ip address Delete static route
The Tracert IP address shows the route of the router.
Wr or copy running-config starup-config to save the current configuration
Erase nvram or erase starup-config deletes saved configurations.
Sh ip route)
Sh mac-address-table view Mac address table (vswitch dedicated)
Sh run to view the current configuration
Sh star: View saved configurations
Line con 0 enters the console Port
Password configure console port Password
Login save information
Line vty 0 4 access the vty0-4 to these 5 virtual consoles for remote connection
Enable password configure privileged mode password (plaintext)
Enable secret password configuration ciphertext Password
Ip default-gatewaty gateway address configuration switch default Gateway
Copy flash tftp backup IOS system
Copy tftp flash upgrade IOS system
Vlan database enters VLAN configuration mode
Vlan Value configuration VLAN
No vlan value Delete configuration VLAN
Show vlan br view VLAN configuration
Switchport access vlan ID is allocated to the interface
Switchport mode access/trunk/dynamic Configure port mode
Sw trunk allowed vlan remove/add serial number delete on trunk, add touch VLAN
Channel-group No. mode on Configure Ethernet Channel
Encapsulation type vlanID number to configure the VLAN label Encapsulation structure
Ip dhcp pool address pool name definition address pool
Network Segment subnet mask Dynamic Allocation of IP segments
Default-router gateway address set gateway address
Dns-server address configuration dns address
Lease period sets the address Lease period
Create Vtp domain Name
Vtp mode server/client/transparent vtp mode
Show vtp password View vtp configuration password
Show vtp status to view other vtp configuration information