实验拓扑及配置说明.doc_第1页
实验拓扑及配置说明.doc_第2页
实验拓扑及配置说明.doc_第3页
实验拓扑及配置说明.doc_第4页
实验拓扑及配置说明.doc_第5页
已阅读5页,还剩10页未读 继续免费阅读

下载本文档

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

文档简介

实验拓扑及配置说明注:以下蓝色字体部分是设备进行相应配置后自动生成的提示信息或日志信息。(一) S2328G配置步骤及配置说明:Ruijieen 进入特权层Ruijie#conf 进入全局配置层Enter configuration commands, one per line. End with CNTL/Z.Ruijie(config)#host S23 配置主机名为S23S23(config)#vlan 10 创建VLAN10并命名为renshiS23(config-vlan)#name renshiS23(config-vlan)#vlan 20 创建VLAN20并命名为caiwuS23(config-vlan)#name caiwuS23(config-vlan)#vlan 100 创建VLAN100并命名为guanliS23(config-vlan)#name guanliS23(config-vlan)#exiS23(config)#int ran f 0/1-10 将1-10口划入VLAN10S23(config-if-range)#sw acc vl 10S23(config-if-range)#int ran f 0/11-20 将11-20口划入VLAN20S23(config-if-range)#sw acc vl 20S23(config-if-range)#exiS23(config)#spanning-tree 开启生成树,防止环路Enable spanning-tree.*Dec 10 16:58:24: %SPANTREE-5-TOPOTRAP: Topology Change Trap for instance 0.*Dec 10 16:58:39: %SPANTREE-5-TOPOTRAP: Topology Change Trap.S23(config)#span mo rstp 配置生成树的模式为RSTPS23(config)#int ran f 0/1-24 在用户接口1-24开启bpduguard和portfastS23(config-if-range)#span bpduguard enableS23(config-if-range)#span portfast%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.%Warning: portfast should only be enabled on ports connected to a singlehost. Connecting hubs, switches, bridges to this interface when portfast isenabled,can cause temporary loops.S23(config-if-range)#exiS23(config)#int gi 0/25 将25口设置为TRUNK口,并进行描述S23(config-if-GigabitEthernet 0/25)#sw mo truS23(config-if-GigabitEthernet 0/25)#des link_to_S57-G0/1S23(config-if-GigabitEthernet 0/25)#exiS23(config)#int vla 100 配置S23的管理IP为S23(config-if-VLAN 100)#ip add S23(config-if-VLAN 100)#exi*Dec 10 17:01:18: %LINK-3-UPDOWN: Interface VLAN 100, changed state to up.*Dec 10 17:01:18: %LINEPROTO-5-UPDOWN: Line protocol on Interface VLAN 100, changed state to up.S23(config)#ip def 54 配置S23的缺省网关S23(config)#ena sec lev 15 0 ruijie 配置特权密码为ruijieS23(config)#line vty 0 4 配置telnet密码为ruijieS23(config-line)#password 0 ruijieS23(config-line)#exi 退到上一层S23(config)#service pass 将telnet密码进行加密S23(config)#end 退到特权层*Dec 10 17:04:41: %SYS-5-CONFIG_I: Configured from console by consoleS23#wr 保存配置Building configuration.OK以下为S23的配置信息:S23#sh runBuilding configuration.Current configuration : 3323 bytes!version RGOS 10.2(5), Release(67430)(Fri Oct 23 17:54:38 CST 2009 -ngcf49)!vlan 1!vlan 10 name renshi!vlan 20 name caiwu!vlan 100 name guanli!service password-encryption!ip default-gateway 54!enable secret 5 $1$yLhr$Bq1s9tzwt26qs7sy !spanning-treespanning-tree mode rstphostname S23interface FastEthernet 0/1 switchport access vlan 10 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/2 switchport access vlan 10 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/3 switchport access vlan 10 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/4 switchport access vlan 10 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/5 switchport access vlan 10 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/6 switchport access vlan 10 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/7 switchport access vlan 10 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/8 switchport access vlan 10 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/9 switchport access vlan 10 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/10 switchport access vlan 10 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/11 switchport access vlan 20 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/12 switchport access vlan 20 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/13 switchport access vlan 20 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/14 switchport access vlan 20 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/15 switchport access vlan 20 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/16 switchport access vlan 20 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/17 switchport access vlan 20 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/18 switchport access vlan 20 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/19 switchport access vlan 20 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/20 switchport access vlan 20 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/21 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/22 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/23 spanning-tree bpduguard enable spanning-tree portfast!interface FastEthernet 0/24 spanning-tree bpduguard enable spanning-tree portfast!interface GigabitEthernet 0/25 switchport mode trunk description link_to_S57-G0/1!interface GigabitEthernet 0/26!interface VLAN 100 ip address no shutdown!line con 0line vty 0 4 login password 7 06142b0a251c17!endS23#(二) S5750配置步骤及配置说明:Ruijieen 进入特权层Ruijie#conf 进入全局配置层Enter configuration commands, one per line. End with CNTL/Z.Ruijie(config)#hostname S57 配置主机名为S57S57(config)#vlan 10 创建VLAN10并命名为renshiS57(config-vlan)#name renshiS57(config-vlan)#vlan 20 创建VLAN20并命名为caiwuS57(config-vlan)#name caiwuS57(config-vlan)#vlan 100 创建VLAN100并命名为guanliS57(config-vlan)#name guanliS57(config-vlan)#int vlan 10 配置VLAN10的IP地址,作为VLAN10用户的网关S57(config-if-VLAN 10)#ip add 54 S57(config-if-VLAN 10)#int vlan 20 配置VLAN20的IP地址,作为VLAN20用户的网关S57(config-if-VLAN 20)#ip add 54 S57(config-if-VLAN 20)#int vlan 100 配置VLAN100的IP地址,作为VLAN100的网关(设备的网关)S57(config-if-VLAN 100)#ip add 54 S57(config-if-VLAN 100)#exiS57(config)#int gi 0/1 将1口设置为TRUNK口,并进行描述S57(config-if-GigabitEthernet 0/1)#sw mo tru*Dec 10 17:16:44: %LINEPROTO-5-UPDOWN: Line protocol on Interface VLAN 10, changed state to up*Dec 10 17:16:44: %LINEPROTO-5-UPDOWN: Line protocol on Interface VLAN 20, changed state to up*Dec 10 17:16:44: %LINEPROTO-5-UPDOWN: Line protocol on Interface VLAN 100, changed state to upS57(config-if-GigabitEthernet 0/1)#des link_to_S23-G0/25S57(config-if-GigabitEthernet 0/1)#int gi 0/24 将24口设置为路由口,并配置IP地址为,并进行描述S57(config-if-GigabitEthernet 0/24)#no swS57(config-if-GigabitEthernet 0/24)#ip add S57(config-if-GigabitEthernet 0/24)#des link_to_R1-F0/0S57(config-if-GigabitEthernet 0/24)#exiS57(config)#ip rou gi 0/24 配置默认路由S57(config)#end*Dec 10 17:20:00: %SYS-5-CONFIG_I: Configured from console by consoleS57#wr 保存配置Building configuration.OK以下为S57的配置信息:S57#sh runBuilding configuration.Current configuration : 3323 bytes!version RGOS 10.2(5), Release(67430)(Fri Oct 23 17:54:38 CST 2009 -ngcf49)!vlan 1!vlan 10 name renshi!vlan 20 name caiwu!vlan 100 name guanli!hostname S57interface GigabitEthernet 0/1 switchport mode trunk description link_to_S23-G0/25!interface GigabitEthernet 0/2!interface GigabitEthernet 0/3!interface GigabitEthernet 0/4!interface GigabitEthernet 0/5!interface GigabitEthernet 0/6!interface GigabitEthernet 0/7!interface GigabitEthernet 0/8!interface GigabitEthernet 0/9!interface GigabitEthernet 0/10!interface GigabitEthernet 0/11!interface GigabitEthernet 0/12!interface GigabitEthernet 0/13!interface GigabitEthernet 0/14!interface GigabitEthernet 0/15!interface GigabitEthernet 0/16!interface GigabitEthernet 0/17!interface GigabitEthernet 0/18!interface GigabitEthernet 0/19!interface GigabitEthernet 0/20!interface GigabitEthernet 0/21!interface GigabitEthernet 0/22!interface GigabitEthernet 0/23!interface GigabitEthernet 0/24 no switchport ip address description link_to_R1-F0/0!interface VLAN 10 ip address 54 no shutdown!interface VLAN 20 ip address 54 no shutdown!interface VLAN 100 ip address 54 no shutdown!ip route GigabitEthernet 0/24 !line con 0line vty 0 4 login!endS57#(三) RSR20配置步骤及配置说明:Ruijieen 进入特权层Ruijie#conf 进入全局配置层Enter configuration commands, one per line. End with CNTL/Z.Ruijie(config)#hos R1 配置主机名为R1R1(config)#ena sec lev 15 ruijie 配置特权密码为ruijieR1(config)#line vty 0 4 配置telnet密码为ruijieR1(config-line)#pass ruijieR1(config-line)#exiR1(config)#serv pass 配置telnet密码加密R1(config)#int f 0/0 配置F 0/0口IP为,并进行描述R1(config-if-FastEthernet 0/0)#ip add R1(config-if-FastEthernet 0/0)#des link_to_S57-G0/24R1(config-if-FastEthernet 0/0)#exiR1(config)#int f 0/1 配置F 0/0口IP为,并进行描述R1(config-if-FastEthernet 0/1)#ip add R1(config-if-FastEthernet 0/1)#des link_to_CNIIR1(config-if-FastEthernet 0/1)#exi配置到S57上各个VLAN的回指路由R1(config)#ip rou f 0/0 R1(config)#ip rou f 0/0 R1(config)#ip rou f 0/0 配置到外网的默认路由R1(config)#ip rou f 0/1 配置访问控制列表ACL1,这里只允许/24网段通过R1(config)#access-list 1 permit 55R1(config)#int f 0/0 指定F 0/0为NAT的内网口R1(config-if-FastEthernet 0/0)#ip nat insideR1(config-if-FastEthernet 0/0)#exiR1(config)#int f 0/1 指定F 0/1为NAT的外网口R1(config-if-FastEthernet 0/1)#ip nat outsideR1(config-if-FastEthernet 0/1)#exi配置NAT地址池,从到0R1(config)#ip nat pool CNII prefix-length 24R1(config-ipnat-pool)#address 0 match int f 0/1R1(config-ipnat-pool)#exi将访问控制列表ACL1(/24)进行NAT地址转换,转换为到0中的地址R1(config)#ip nat inside source list 1 pool CNII overload将内网的WEB服务器(0)和FTP服务器(0)映射到外网R1(config)#ip nat inside source static tcp 0 80 80R1(config)#ip nat inside source static tcp 0 21 21R1(config)#endR1#*Dec 10 17:28:04: %SYS-5-CONFIG_I: Configured from console by console以下为RSR20的配置信息:R1#sh runBuilding configuration.Current configuration : 1304 bytes!version RGOS 10.3(5b1), Release(84749)(Thu May 13 09:09:02 CST 2010 -ngcf66)hostname R1!service password-encryption! !ip access-lis

温馨提示

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

评论

0/150

提交评论