vlan 100
int vlan 100
ip ad 192.168.1.2/24
ex
telnet/ssh enable
username xxx password xxx
打开ssh或者telnet服务然后登进去就行,除了该ip其他登不进
那就在每个交换机上面都创建一下,并给ip地址
for example : int vlan 100 = 192.168.1.1 255.255.255.0
Switch#configure terminal
Switch(config)#vlan 100
Switch(config-vlan)#exit
Switch(config)#int vlan 100
%LINK-5-CHANGED: Interface Vlan100, changed state to up
Switch(config-if)#no shut
Switch(config-if)#ip add 192.168.1.1 255.255.255.0
Switch(config-if)#end
%SYS-5-CONFIG_I: Configured from console by console
Switch#
vlan 10
int vlan 10
ip add xxx.xxx.xxx.xxx
no shut
int range f0/1 - f0/24
switchport mode access
switchport access vlan 10