锐捷交换机、路由器设备配置指令_第1页
锐捷交换机、路由器设备配置指令_第2页
锐捷交换机、路由器设备配置指令_第3页
锐捷交换机、路由器设备配置指令_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、锐捷交换机、路由器设备配置指令一、交换机RG-S3760-B配置指令RG-S3760-2#conf t设置链路聚合RG-S3760-2(config)#int range fa0/23-24RG-S3760-2(config-if-range)#port-group 1RG-S3760-2(config-if-range)#exitRG-S3760-2(config)#int aggregateport 1RG-S3760-2(config-if-AggregatePort 1)#sw mo trRG-S3760-2(config-if-AggregatePort 1)#exit创建 Vlan

2、10-40RG-S3760-2(config)#vlan 10RG-S3760-2(config-vlan)#vlan 20RG-S3760-2(config-vlan)#vlan 30RG-S3760-2(config-vlan)#vlan 40RG-S3760-2(config-vlan)#exit给Vlan30、40分配端口RG-S3760-2(config)#int range fa0/4-10RG-S3760-2(config-if-range)#sw mo acRG-S3760-2(config-if-range)#sw ac vlan 30RG-S3760-2(config-if

3、-range)#no shutdownRG-S3760-2(config-if-range)#exitRG-S3760-2(config)#int range fa0/11-16RG-S3760-2(config-if-range)#sw mo acRG-S3760-2(config-if-range)#sw ac vlan 40RG-S3760-2(config-if-range)#exit二、交换机RG-S3760-A配置指令RG-S3760-1#conf tRG-S3760-1#ip routing设置链路聚合RG-S3760-1(config)#int range fa0/23-24R

4、G-S3760-1(config-if-range)#port-group 1RG-S3760-1(config-if-range)#no shutdownRG-S3760-1(config-if-range)#exitRG-S3760-1(config)#int aggregateport 1RG-S3760-1(config-if-AggregatePort 1)#sw mo trRG-S3760-1(config-if-AggregatePort 1)#exit创建 Vlan10-40RG-S3760-1(config)#vlan 10RG-S3760-1(config-vlan)#vl

5、an 20RG-S3760-1(config-vlan)#vlan 30RG-S3760-1(config-vlan)#vlan 40给Vlan10、20分配端口RG-S3760-1(config)#int range fa0/4-10RG-S3760-1(config-if-range)#sw mo acRG-S3760-1(config-if-range)#sw ac vlan 10RG-S3760-1(config-if-range)#exitRG-S3760-1(config)#int range fa0/11-16RG-S3760-1(config-if-range)#sw mo a

6、cRG-S3760-1(config-if-range)#sw ac vlan 20RG-S3760-1(config-if-range)#exit给Vlan10-40配置管理IPRG-S3760-1(config)#int vlan 10RG-S3760-1(config-if-VLAN 10)#ip address 172.16.10.254 255.255.255.0RG-S3760-1(config-if-VLAN 10)#no shutdownRG-S3760-1(config-if-VLAN 10)#exitRG-S3760-1(config)#int vlan 20RG-S376

7、0-1(config-if-VLAN 20)#ip address 172.16.20.254 255.255.255.0RG-S3760-1(config-if-VLAN 20)#no shutdownRG-S3760-1(config-if-VLAN 20)#exitRG-S3760-1(config)#int vlan 30RG-S3760-1(config-if-VLAN 30)#ip address 172.16.30.253 255.255.255.0RG-S3760-1(config-if-VLAN 30)#no shutdownRG-S3760-1(config-if-VLAN

8、 30)#exitRG-S3760-1(config)#int vlan 40RG-S3760-1(config-if-VLAN 40)#ip address 172.16.40.253 255.255.255.0RG-S3760-1(config-if-VLAN 40)#no shutdownRG-S3760-1(config-if-VLAN 40)#exit设置三层路由接口 IPRG-S3760-1(config)#int fa0/1RG-S3760-1(config-if-FastEthernet 0/1)#no switchportRG-S3760-1(config-if-FastEt

9、hernet 0/1)#ip address 192.168.1.2 255.255.255.252RG-S3760-1(config-if-FastEthernet 0/1)#no shutdownRG-S3760-1(config-if-FastEthernet 0/1)#exit设置动态路由、默认路由RG-S3760-1(config)#router ripRG-S3760-1(config-router)#version 2RG-S3760-1(config-router)#no auto-summaryRG-S3760-1(config-router)#network 192.168

10、.1.0RG-S3760-1(config-router)#network 172.16.10.0RG-S3760-1(config-router)#network 172.16.20.0RG-S3760-1(config-router)#network 172.16.30.0RG-S3760-1(config-router)#network 172.16.40.0RG-S3760-1(config-router)#exitRG-S3760-1(config)#ip route 0.0.0.0 0.0.0.0 fa0/1RG-S3760-1(config)#end三、路由器RSR20-A配置指

11、令Red-Giant#conf tRed-Giant(config)#hostname RSR20-ARSR20-A(config)#int fa1/0RSR20-A(config-if)#ip address 192.168.1.1 255.255.255.252RSR20-A(config-if)#no shutdownRSR20-A(config-if)#exit设置电信IPRSR20-A(config)#int s1/2RSR20-A(config-if)#ip address 119.1.1.1 255.255.255.252RSR20-A(config-if)#no shutdow

12、nRSR20-A(config-if)#exit设置动态路由、默认路由RSR20-A(config)#router ripRSR20-A(config-router)#version 2RSR20-A(config-router)#no auto-summaryRSR20-A(config-router)#network 192.168.1.0RSR20-A(config)#ip route 0.0.0.0 0.0.0.0 s1/2配置NATRSR20-A(config)#int fa1/0RSR20-A(config-if)#ip nat insideRSR20-A(config-if)#e

13、xitRSR20-A(config)#int s1RSR20-A(config-if)#ip nat outsideRSR20-A(config-if)#exitRSR20-A(config)#access-list 10 permit 172.16.10.0 0.0.0.255RSR20-A(config)#access-list 10 permit 172.16.20.0 0.0.0.255RSR20-A(config)#access-list 10 permit 172.16.30.0 0.0.0.255RSR20-A(config)#access-list 10 permit 172.

14、16.40.0 0.0.0.255 RSR20-A(config)#ip nat pool net10 119.1.1.1 119.1.1.1 netmask 255.255.255.252RSR20-A(config)#ip nat inside source list 10 pool net10 overload创建ACL,禁止172.16.20.0网去访问外网RSR20-A(config)#access-list 20 deny 172.16.20.0 0.0.0.255RSR20-A(config)#access-list 20 permit anyRSR20-A(config)#int fa1/0RSR20-A(config-if)#ip access-group 20 inRSR20-A(config-if)#exit四、路由器 Internet 配置指令R2600_2#conftR2600_2 (config)#hostname Internet设置Internet路由器IPInternet (config)#int s1/2Internet (config-if)#ip address 119.1.1.2 255.255.255.252Internet (confi

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论