本文技术实现来自
----------------------------------------昏割线---------------------------------------------------------------
条件:必须处于同一网段或为ip地址设置子网掩码;设置远程登录密码(步骤2为非必须)
1.配置交换机的管理ip地址并开启端口
Switch(config)#interface vlan 1
Switch(config-if)#ip address 192.168.1.1 255.255.255.0
Switch(config-if)#no shutdown
%LINK-5-CHANGED: Interface Vlan1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
Switch(config-if)#end
Switch#
2.配置进入特权模式密码
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#enable password 123456
3.