1.在基于IOS的交换机上设置主机名/系统名:
switch(config)#hostnamehostname
在基于CLI的交换机上设置主机名/系统名:
switch(enable)setsystemname name-string
2.在基于IOS的交换机上设置登录口令:
switch(config)#enablepasswordlevel 1 password
在基于CLI的交换机上设置登录口令:
switch(enable)setpassword
switch(enable)setenalbepass
3.在基于IOS的交换机上设置远程访问:
switch(config)#interfacevlan1
switch(config-if)#ipaddressip-address netmask
switch(config-if)#ipdefault-gatewayip-address
在基于CLI的交换机上设置远程访问:
switch(enable)setinterfacesc0 ip-address netmask broadcast-address
switch(enable)setinterfacesc0 vlan
switch(enable)setiproute default gateway
4.在基于IOS的交换机上启用和浏览CDP信息:
switch(config-if)#cdpenable
switch(config-if)#nocdpenable
为了查看Cisco邻接设备的CDP通告信息:
switch#showcdpinterface [type modle/port]
switch#showcdpneighbors [type module/port] [detail]
在基于CLI的交换机上启用和浏览CDP信息:
switch(enable)setcdp{enable|disable} module/port
为了查看Cisco邻接设备的CDP通告信息:
switch(enable)showcdpneighbors[module/port] [vlan|duplex|capabilities|detail]
(责任编辑:高爽)