三层交换机多VLAN+NAT上网实验(有拓扑和配置文件)_第1页
三层交换机多VLAN+NAT上网实验(有拓扑和配置文件)_第2页
三层交换机多VLAN+NAT上网实验(有拓扑和配置文件)_第3页
三层交换机多VLAN+NAT上网实验(有拓扑和配置文件)_第4页
三层交换机多VLAN+NAT上网实验(有拓扑和配置文件)_第5页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

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

文档简介

1、三层交换机多 VLAN+NATt 网实验配置(有拓扑和配置文件) Fe0/0/24 说明: 适用中心三层交换机划多 VLAN(间不能互访),VLAN 通过路由 NAT 上网 配置文件如下: router1#showrun Buildingconfiguration. Currentconfiguration:745bytes! version12.4 servicetimestampsdebugdatetimemsecservicetimestampslogdatetimemsecnoservicepassword-encryption hostnamerouteribo

2、ot-start-markerboot-end-marker! s1/0 1 /24 三层交换机 创建vlan10vlan20 Fe1/1/24 Fe1/3 Fe1/4 VLAN20 fl PC1 IP:0/24 GW PC1 IP:0/24 GW ! noaaanew-modelmemory-sizeiomem5! ! ipcefinterfaceFastEthernet0/0noipaddressshutdownduplexautospeedauto!

3、interfaceSerial1/0 ipaddressserialrestart-delay0! interfaceSerial1/1noipaddressshutdown serialrestart-delay0! interfaceSerial1/2noipaddressshutdownserialrestart-delay0! interfaceSerial1/3noipaddressshutdownserialrestart-delay0! noiphttpserver! control-planelinecon0lineaux0 lin

4、evty04! ! End router2#showrun Buildingconfiguration. Currentconfiguration:989bytes! version12.4 servicetimestampsdebugdatetimemsecservicetimestampslogdatetimemsecnoservicepassword-encryption! hostnamerouter2 ! boot-start-marker boot-end-marker ! ! noaaanew-model memory-sizeiomem5! ! ipcefinterfaceFa

5、stEthernet0/0 ipaddressipnatinside ipvirtual-reassembly speed100full-duplex! interfaceSerial1/0 ipaddressipnatoutside ipvirtual-reassemblyserialrestart-delay0interfaceSerial1/1 noipaddress shutdown serialrestart-delay0! interfaceSerial1/2 noipaddress sh

6、utdown serialrestart-delay0! interfaceSerial1/3 noipaddress shutdown serialrestart-delay0 ! iphttpserver iproute! ! ipnatinsidesourcelist101interfaceSerial1/0overload! access-list101permitip55anycontrol-planelinecon0 lineaux0 linevty04sw1#showrun

7、Buildingconfiguration. Currentconfiguration:1284bytes! version12.4 servicetimestampsdebugdatetimemsecservicetimestampslogdatetimemsecnoservicepassword-encryption! hostnamesw1 ! boot-start-marker boot-end-marker! ! noaaanew-model memory-sizeiomem5! ! ipcefinterfaceFastEthernet1/0! interfaceFastEthern

8、et1/1 noswitchport ipaddress! interfaceFastEthernet1/2 ! interfaceFastEthernet1/3 switchportaccessvlan10 vlan-iddot1q10exit-vlan-config! ! interfaceFastEthernet1/4 switchportaccessvlan20! interfaceFastEthernet1/5interfaceFastEthernet1/6 interfaceFastEthernet1/7interfaceFastEt

9、hernet1/8! interfaceFastEthernet1/9! interfaceFastEthernet1/10! interfaceFastEthernet1/11! interfaceFastEthernet1/12! interfaceFastEthernet1/13! interfaceFastEthernet1/14! interfaceFastEthernet1/15! interfaceVlan1noipaddress! interfaceVlan10 ipaddressipaccess-group101in! int

10、erfaceVlan20 ipaddress! noiphttpserver iprouteaccess-list101denyip5555access-list101permitipanyanycontrol-plane! linecon0 lineaux0 linevty04Endpc1#showrun Buildingconfiguration. Currentconfiguration:385bytes! ver

11、sion12.2 servicetimestampsdebuguptimeservicetimestampsloguptimenoservicepassword-encryption! hostnamepc1! ! ipsubnet-zero noiproutinginterfaceFastEthernet0/0 ipaddress0noiproute-cache speed100full-duplex ! ipdefault-gateway ipclasslessiphttpserver! ! linecon0 lineaux0 linevty04 pc2#showrun Buildingconfiguration. Currentconfiguration:385bytes! version12.2 servicetimestampsdebuguptimeservicetimestampsloguptimenoservicepassword-encryption! hostnamepc2! ! ipsubnet-zero noiproutingi

温馨提示

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

评论

0/150

提交评论