首页 >> 交换专栏 >> 技术解析 >> 正文
高级搜索?
路由交换的基础知识 Switch命令详细说明
2008年1月7日 08:58  赛迪网-技术社区  作 者:刘云

    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]

    (责任编辑:高爽)

编 辑:赵送林
关键字搜索:交换机  
相关新闻   本类文章   最近更新   一周热点  
文章评论
昵称:  注册
 
 
请您注意:
·遵守中华人民共和国的各项有关法律法规
·承担一切因您的行为而导致的法律责任
·本站管理人员有权删除所有无关或非法留言内容
·您在本站内的留言,本站有权在网站内转载或引用
·参与本留言即表明您已经阅读并接受以上条款
 
专家观点
两者对比可见,广电CMMB手机电视行业标准确定后的一年多..
精彩专题
2007首届手机金象奖年度评选
2007第五媒体高峰论坛
中国普天通信产业事业本部揭牌
论道第五媒体新生代
CCTIME评论