Switch configurationIt plays an important role in the network topology. It not only connects to the same type of network, but also acts as an interconnection between different types of networks. Therefore, vswitch configuration is a very important link, but basicCommandThe statement is the basis for implementing the switch configuration. The following describes the Cisco switch commands Based on vswitch 1924:
Sw1924_ B # delete nvram
Clear all configurations of the vswitch
Sw1924_ B # reload
Restart the vswitch. The initial prompt is>)
Sw1924_ B # hostname sw1924
Set the vswitch Host Name
Sw1924_ B # enable secret cisco
Set encryption Password
Sw1924_ B # enable password level 1 cisco1
Set Level Password 1 to the lowest)
Sw1924_ B # enable password level 15 cisco15
Set the top 15 password levels)
Sw1924_ B # ip address 192.168.14.1 255.255.0
Set the management IP address of a vswitch
Sw1924_ B # ip default-gateway 192.168.198.2
Set the gateway address of the vswitch
Sw1924_ B # ip domain-name pctc.com.cn
Set the Domain Name of the domain connected to the vswitch
Sw1924_ B # ip name-server 218.87.18.230
Set the IP address of the Domain Name Server in the domain connected to the vswitch
Sw1924_ B # show ip
View the preceding Environment
Sw1924_ B # show version
View vswitch version and other information
Sw1924_ B # show running-config
View All information such as the current running configuration of the vswitch.
Sw1924_ B # show int e0/1
View the 1st ports of a vswitch
2912 vswitch Configuration
Sw2912_a # erase nvram
Clear all configurations of the vswitch
Sw2912_a # reload
Restart the switch. The initial prompt is switch>)
Sw2912_a # int vlan 1
Enter vlan 1 special interface configuration mode
Sw2912_a # ip address 192.168.15.1 255.255.255.0
Set the management IP address of a vswitch
Sw2912_a # ip default-gateway 192.168.198.2
Set the gateway address of the vswitch
Sw2912_a # ip domain-name pctc.com.cn
Set the Domain Name of the domain connected to the vswitch
Sw2912_a # ip name-server 218.87.18.230
Set the IP address of the Domain Name Server in the domain connected to the vswitch
Sw2912_a # show int vlan 1
View VLAN 1 special interface configuration information of a vswitch
Sw2912_a # show run
View All information such as the current running configuration of the vswitch.