思科配置命令.pdfVIP

  • 16
  • 0
  • 约1.33万字
  • 约 11页
  • 2021-11-25 发布于河北
  • 举报
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(config)#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 、vlan4 …… 4. Switch# conf t 进入 global config mode Switch(config)# int range gi2/1 – 18 对第二个 module 的 1 到 18 端口进行设置, 注意 : 1 与” - ” , ” - ” 与 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 已经分配给 vlan2 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 encapsulation 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 交换机上重复上述操作。 用光纤线连接这两个端口。 switch: ;ROM 状态 hostname ;用户模式 hostname# ;特权模式 hostname(config)# ;全局配置模式 hostname(config-if)# ;接口状态 switchenable ;进入特权模式 switch#config terminal ;进入全局配置模式 switch(config)#hostname ;设置交换机的主机名 switch(config)#enable secret xxx

文档评论(0)

1亿VIP精品文档

相关文档