sw2上配置爲domain server,sw1上配置爲domain client,sw2上增長vlan並命名和添加描述dom
conf tserver
vtp domain corpblog
vtp mode serverip
vtp password xxxci
SW-2(config)#vlan 10 get
SW-2(config-vlan)#? it
VLAN configuration commands: io
exit Apply changes, bump revision number, and exit modecli
name Ascii name of the VLAN配置
no Negate a command or set its defaults
SW-2(config-vlan)#name HR
SW-2(config-vlan)#interface vlan 10
SW-2(config-if)#?
Interface configuration commands:
arp Set arp type (arpa, probe, snap) or timeout
description Interface specific description
exit Exit from interface configuration mode
ip Interface Internet Protocol config commands
ipv6 IPv6 interface subcommands
no Negate a command or set its defaults
shutdown Shutdown the selected interface
standby HSRP interface configuration commands
查看:
int f0/24
switchport mode trunk
conf t
int f0/1
switchport access vlan 10
查看vlan下的端口
show vlan id xx