switch settings

Switch Password Settings

switch>enable Enter privileged mode

switch#config terminal Enter global configuration mode

switch(config)#hostname Set the hostname of the switch

switch(config)#enable secret xxx Set the privileged encryption password

switch(config)#enable password xxa Set privileged non-password password

switch(config)#line console 0 Enter the console port

switch(config-line)#line vty 0 4  Enter the virtual terminal

switch(config-line)#login Allow login

switch(config-line)#passw

ord xx set login password xx

switch#exit Return command

 

Switch VLAN Settings

switch#vlan database Enter VLAN settings

switch(vlan)#vlan 2 建VLAN 2

switch(vlan)#no vlan 2 删vlan 2

switch(config)#int f0/1  Enter port 1

switch(config-if)#switchport access vlan 2 The current port is added to vlan 2

switch(config-if)#switchport mode trunk  set to trunk

switch(config-if)#switchport trunk allowed vlan 1 2  Set allowed vlan

switch(config-if)#switchport trunk encap dot1q Set up vlan trunk

switch(config)#vtp domain Set the sending vtp domain name

switch(config)#vtp password Set the sending vtp password

switch(config)#vtp mode server Set the vtp mode

 

Switch setting IP address

switch(config)#interface vlan 1 进入vlan 1

switch(config-if)#ip address Set IP address

switch(config)#ip default-gateway  set the default gateway

switch#dir flash: View flash

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326734469&siteId=291194637