2022年思科配置命 .pdf
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《2022年思科配置命 .pdf》由会员分享,可在线阅读,更多相关《2022年思科配置命 .pdf(4页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Vlan 划分 : 1. 用随机所配的console 电缆连接 cisco4503 交换机的 console 口与 pc 机的 com 口,在系统的超级终端中新建连接 ,设置波特率 : 9600, 数据位 : 8, 奇偶校验位 : 无, 停止位 : 1,流量控制 : 无,打开交换机 ,可以看到 switch的自检信息 ,自检结束后进入到switch 的 privilege mode 2. Switch# show vlan 检查交换机的默认vlan 设置 ,默认配置下所有端口属于vlan1 3. Switch# conf t 进入 global config mode Switch(confi
2、g)#vlan 2 创建 vlan2 Switch (config-vlan)# name test-net 设置 vlan2 的 name 为 test-net(可选)Switch (config-vlan)#end 退回到 privilege mode Switch# show vlan 根据需要重复上述1-5 步设置 ,创建 vlan3 、vlan44. Switch# conf t 进入 global config mode Switch(config)# int range gi2/1 18 对第二个 module 的 1 到 18 端口进行设置, 注意 : 1 与” - ” , ”
3、 - ”与 18 之间的空格是必须的Switch(config-if-range)#shutdown 关闭端口 1-18 Switch(config-if-range)#switchport mode access 设置端口特性为可访问Switch(config-if-range)#switchport access vlan 2 将端口分配给vlan2 Switch(config-if-range)#no shutdown 激活端口Switch(config-if-range)#end Switch# show vlan 检查当前 vlan 配置 ,可以看到端口1-18 已经分配给 vlan
4、2 Switch# copy running-config startup-config copy当前配置到NVRAM Switch# sh interface status 检查各端口的状态交换机 trunk 端口的配置 : 在本方案中,两台CISCO4503 使用引擎上的第二个光纤模块端口进行连接,在其中的一台switch# conf t 进入全局配置模式switch(config)#interface gi1/2 进入到端口配置模式,对第二个光纤模块口进行设置switch(config-if )shutdown switch(config-if)switchprot trunk enca
5、psulation isl 指定 trunk 端口封装 isl 协议switch(config-if)switchprot mode trunk 指定这个端口作为trunk switch(config-if )no shutdown 启动这个端口switch(config-if )end 退回到 privilege switch#copy running-config startup-config 保存当前配置使重启时生效在第二台 4503 交换机上重复上述操作。用光纤线连接这两个端口。名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - -
6、 - 名师精心整理 - - - - - - - 第 1 页,共 4 页 - - - - - - - - - switch: ;ROM 状态hostname ;用户模式hostname# ;特权模式hostname(config)# ;全局配置模式hostname(config-if)# ;接口状态switchenable ;进入特权模式switch#config terminal ;进入全局配置模式switch(config)#hostname ;设置交换机的主机名switch(config)#enable secret xxx ;设置特权加密口令switch(config)#enable p
7、assword xxa ;设置特权非密口令switch(config)#line console 0 ;进入控制台口switch(config-line)#line vty 0 4 ;进入虚拟终端switch(config-line)#login ;允许登录switch(config-line)#password xx ;设置登录口令 xxswitch# exit ;返回命令switch#vlan database ;进入 VLAN 设置switch(vlan)#vlan 2 ;建 VLAN 2 switch(vlan)#no vlan 2 ;删 vlan 2 switch(config)#i
8、nt f0/1 ;进入端口 1 switch(config-if)#switchport access vlan 2 ;当前端口加入 vlan 2 switch(config-if)#switchport mode trunk ;设置为干线switch(config-if)#switchport trunk allowed vlan 1,2 ;设置允许的 vlan switch(config-if)#switchport trunk encap dot1q ;设置 vlan 中继switch(config)#vtp domain ;设置发 vtp 域名switch(config)#vtp pa
9、ssword ;设置发 vtp 密码switch(config)#vtp mode server ;设置发 vtp 模式switch(config)#vtp mode client ;设置发 vtp 模式switch(config)#interface vlan 1 ;进入 vlan 1 switch(config-if)#ip address ;设置 IP 地址switch(config)#ip default-gateway ;设置默认网关switch#dir flash: ;查看闪存switch#write ;保存配置信息switch#show vtp ;查看 vtp 配置信息switc
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2022年思科配置命 2022 思科 配置
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内