- 1、本文档共6页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Cisco路由器交换机配置命令详解剖析
交换机支持的命令:交换机基本状态: switch: ;ROM状态, 路由器是rommonhostname ;用户模式hostname# ;特权模式hostname(config)# ;全局配置模式hostname(config-if)# ;接口状态
交换机口令设置: switch(vlan)#vlan 2 ;建VLAN 2switch(vlan)#no vlan 2 ;删vlan 2switch(config)#int f0/1 ;进入端口1switch(config-if)#switchport access vlan 2 ;当前端口加入vlan 2switch(config-if)#switchport mode trunk ;设置为干线switch(config-if)#switchport trunk allowed vlan 1,2 ;设置允许的vlanswitch(config-if)#switchport trunk encap dot1q ;设置vlan 中继switch(config)#vtp domain ;设置发vtp域名switch(config)#vtp password ;设置发vtp密码switch(config)#vtp mode server ;设置发vtp模式switch(config)#vtp mode client ;设置发vtp模式
Switch(config)#en
Switch(config)#ena
Switch(config)#enable se
Switch(config)#enable secret ljt
Switch(config)#end
Switch#wri 保存设置
———————————————————————————————————————
附:2
trunk干道的作用是一台swith拥有两个以上vlan时候,为了是相同的VLAN找的到对方交换机上相同的VLAN,所以采用TRUNK中的标记.
不知道你添加的目的是为了增加冗余交换机显示命令:switch#dir flash: ;查看闪存
switch#write ;保存配置信息switch#show vtp ;查看vtp配置信息switch#show run ;查看当前配置信息switch#show vlan ;查看vlan配置信息switch#show interface ;查看端口信息switch#show int f0/0 ;查看指定端口信息
路由器支持的命令:路由器显示命令:router#show run ;显示配置信息router#show interface ;显示接口信息router#show ip route ;显示路由信息router#show cdp nei ;显示邻居信息router#reload ;重新起动
路由器口令设置:routerenable ;进入特权模式router#config terminal ;进入全局配置模式router(config)#hostname ;设置交换机的主机名router(config)#enable secret xxx ;设置特权加密口令router(config)#enable password xxb ;设置特权非密口令router(config)#line console 0 ;进入控制台口router(config-line)#line vty 0 4 ;进入虚拟终端router(config-line)#login ;要求口令验证router(config-line)#password xx ;设置登录口令xxrouter(config)#(Ctrl+z) ; 返回特权模式router#exit ;返回命令
路由器配置:router(config)#int s0/0 ;进入Serail接口router(config-if)#no shutdown ;激活当前接口router(config-if)#clock rate 64000 ;设置同步时钟router(config-if)#ip address ;设置IP地址router(config-if)#ip address second ;设置第二个IProuter(config-if)#int f0/0.1 ;进入子接口router(config-subif.1)#ip address ;设置子接口IProuter(config-subif.1)#encapsulation dot1q ;绑定vlan中继协议router(config)#config-register 0x2142 ;跳过配置文件router(config)#config-register 0x21
您可能关注的文档
最近下载
- 人教版小学四年级数学下册全册教案(表格式).pdf VIP
- 五四制小学四年级下册语文精品课件 第四单元 15 白鹅.ppt VIP
- 新教师的角色适应与专业发展.pptx
- 大数据与人工智能主题班会PPT课件.pptx VIP
- 护理文书书写存在的问题原因分析及整改措施演示(共27张课件).pptx VIP
- 卵巢癌护理讲课ppt.pptx
- 2025年新高考重难点12 解三角形的最值和范围问题【九大题型】(解析版).pdf VIP
- 重难点突破03 三角形中的范围与最值问题(十七大题型)(解析版).docx VIP
- jjg30-2012 通用卡尺检定规程.pdf
- 解三角形中范围与最值问题教学设计.docx VIP
文档评论(0)