锐捷交换机路由器常用配置操作

上传人:宝路 文档编号:4625310 上传时间:2017-08-21 格式:DOC 页数:16 大小:110.51KB
返回 下载 相关 举报
锐捷交换机路由器常用配置操作_第1页
第1页 / 共16页
锐捷交换机路由器常用配置操作_第2页
第2页 / 共16页
锐捷交换机路由器常用配置操作_第3页
第3页 / 共16页
锐捷交换机路由器常用配置操作_第4页
第4页 / 共16页
锐捷交换机路由器常用配置操作_第5页
第5页 / 共16页
点击查看更多>>
资源描述

《锐捷交换机路由器常用配置操作》由会员分享,可在线阅读,更多相关《锐捷交换机路由器常用配置操作(16页珍藏版)》请在金锄头文库上搜索。

1、1.1 通过 TELNET 方式来配置设备提问:如何通过 telnet 方式来配置设备? 回答: 步骤一:配置 VLAN1 的 IP 地址 S5750en -进入特权模式S5750#conf -进入全局配置模式S5750(config)#int vlan 1 -进入 vlan 1 接口 S5750(config-if)#ip address 192.168.0.230 255.255.255.0 -为 vlan 1 接口上设置管理 ip S5750(config-if)#exit -退回到全局配置模式 步骤二:配置 telnet 密码 S5750(config)#line vty 0 4 -进

2、入 telnet 密码配置模式 S5750(config-line)#login -启用需输入密码才能 telnet 成功 S5750(config-line)#password rscstar -将 telnet 密码设置为 rscstar S5750(config-line)#exit -回到全局配置模式 S5750(config)# enable secret level 15 0 rscstar -配置进入特权模式的密码为 rscstar 1.2 更改 IOS 命令的特权等级提问:如何只允许 dixy 这个用户使用与 ARP 相关的命令? 回答: S5750(config)#usern

3、ame dixy password dixy -设置 dixy 用户名和密码 S5750(config)#username dixy privilege 10 -dixy 帐户的权限为 10 S5750(config)#privilege exec level 10 show arp -权限 10 可以使用 show arp 命令 S5750(config)#privilege config all level 10 arp -权限 10 可以使用所有 arp 打头的命令 S5750(config)#line vty 0 4 -配置 telnet 登陆用户 S5750(config-line)

4、#no password S5750(config-line)#login local 1.3 设备时钟设置提问:如何设置设备时钟? 回答: S5750#clock set 12:45:55 11 25 2008 -设置时间为 2008 年 11 月 25 日 12 点 45 分 55 秒 S5750#clock update-calendar -设置日历更新S5750(config)#clock timezone CN 8 22 -时间名字为中国,东 8 区 22 分2.1 交换机 vlan 和 trunk 的配置提问:如何在交换机上划分 vlan,配置 trunk 接口? 回答: 步骤一:

5、给交换机配置 IP 地址 S2724G#conf S2724G(config)#int vlan 1 S2724G(config-if)#ip addess 192.168.0.100 255.255.255.0-给 VLAN 1 配置 IP 地址 S2724G(config-if)#no shutdown -激活该 VLAN 接口 S2724G(config-if)#exit S2724G(config)#ip default-gateway 192.168.0.1 -指定交换机的网关地址步骤二:创建 VLAN S2724G#conf S2724G(config)#vlan 10 -创建 V

6、LAN 10 S2724G(config-vlan)#exit S2724G(config)# vlan 20 -创建 VLAN 20 S2724G(config-vlan)#exit步骤三:把相应接口指定到相应的 VLAN 中 S2724G(config)#int gi 0/10 S2724G(config-if)#switch access vlan 10 -把交换机的第 10 端口划到 VLAN 10 中 S2724G(config-if)#exit S2724G(config)#int gi 0/20 S2724G(config-if)#switch access vlan 20 -把

7、交换机的第 20 端口划到 VLAN 20 中 S2724G(config-if)#exit S2724G(config)#int gi 0/24 S2724G(config-if)#switch mode trunk -设置 24 口为 Trunk 模式(与三层交换机的连接口 S2724G(config-if)#步骤四:保存配置 S2724G(config-if)#end S2724G#write2.2 turnk 接口修剪配置提问:如何让 trunk 接口只允许部分 vlan 通过? 回答: Switch(config)#int fa 0/24 Switch (config-if)#swi

8、tch mode trunk Switch (config-if)#switchport trunk allowed vlan remove 10,20,30-40 -不允许 VLAN10,20,30-40 通过 Trunk 口 2.3 PVLAN 配置提问:如何实现几组用户之间的隔离,但同时又都能访问公用服务? 回答: 步骤一:创建隔离 VLAN S2724G#conf S2724G(config)#vlan 3 -创建 VLAN3 S2724G(config-vlan)#private-vlan community -将 VLAN3 设为隔离 VLAN S2724G(config)#vla

9、n 4 -创建 VLAN4 S2724G(config-vlan)#private-vlan community -将 VLAN4 设为隔离 VLAN S2724G(config-vlan)#exit -退回到特权模式 步骤二:创建主 VLAN S2724G(config)#vlan 2 -进入 VLAN2 S2724G(config-vlan)#private-vlan primary -VLAN2 为主 VLAN 步骤三:将隔离 VLAN 加到到主 VLAN 中 VLANS2724G(config-vlan)#private-vlan association add 3-4 -将 VLAN

10、3 和 VLAN4 加入到公用 VLAN 中,VLAN3 和 VLAN4 的用户可以访问公用接口 步骤四:将实际的物理接口与 VLAN 相对应 S2724G(config)#interface GigabitEthernet 0/1 -进入接口 1,该接口连接服务器或者上联设备 S2724G(config-if)#switchport mode private-vlan promiscuous -接口模式为混杂模式 S2724G(config-if)#switchport private-vlan mapping 2 add 3-4 -将 VLAN3 和 VLAN4 映射到 VLAN2 上 S

11、2724G(config)#int gi 0/10 -进入接口 10 S2724G(config-if)#switchport mode private-vlan host S2724G(config-if)#switchport private-vlan host-association 2 3 -该接口划分入 VLAN3 S2724G(config)#int gi 0/20 -进入接口 20 S2724G(config-if)#switchport mode private-vlan host S2724G(config-if)#switchport private-vlan host-a

12、ssociation 2 4 -该接口划分入 VLAN4 步骤五:完成 VLAN 的映射 S2724G(config)#int vlan 2 -进入 VLAN2 的 SVI 接口 S2724G(config-if)#ip address 192.168.2.1 255.255.255.0 -配置 VLAN2 的 ip 地址 S2724G(config-if)#private-vlan mapping add 3-4 -将 VLAN3 和 VLAN4 加入到 VLAN2 中 注释: 1. S20、S21 不支持私有 VLAN,可以通过保护端口实现类似功能 2. S3250、S3750 和 S57

13、50 同时支持保护端口和私有 VLAN 3. S3760 不支持私有 VLAN 和保护端口 2.4 端口汇聚配置提问:如何将交换机的端口捆绑起来使用? 回答: S5750#conf S5750(config)#interface range gigabitEthernet 0/1 4 -同时进入 1 到 4 号接口 S5750(config-if)#port-group 1 -设置为聚合口 1 S5750(config)#interface aggregateport 1 -进入聚合端口 1 注意:配置为 AP 口的接口将丢失之前所有的属性,以后关于接口的操作只能在 AP1 口上面进行2.5

14、生成树配置提问:如何配置交换机的生成树? 回答: 步骤一:根桥的设置 switch_A#conf t switch_A(config)#spanning-tree -默认模式为 MSTP switch_A(config)#spanning-tree mst configuration switch_A(config)#spanning-tree mst 10 priority 4096 -设置为根桥 步骤二:非根桥的设置 switch_B#conf t switch_B(config)#spanning-tree -默认模式为 MSTP switch_B(config)#spanning-tr

15、ee mst configuration switch_B(config)#int f0/1 -PC 的接入端口 switch_B(config)#spanning-tree bpduguard enable switch_B(config)#spanning-tree portfast2.6 端口镜像设置提问:如何配置交换机的端口镜像? 回答: switch#conf t switch#(config)# switch (config)# monitor session 1 source interface gigabitEthernet 3/1 both -监控源口为 g3/1 switch (config)# monitor session 1 destination interface gigabitEther

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 其它办公文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号