欢迎来到天天文库
浏览记录
ID:44989399
大小:346.50 KB
页数:13页
时间:2019-11-06
《单臂路由(Vlan)+访问控制列表+NAT(PAT+静态)综合实验ok》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、单臂路由(Vlan)+访问控制列表+NAT(PAT+静态)综合实验--01---------------------------------------------------SW1---------------------------------------------------Switch>Switch>enSwitch#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#hostnameS1S1(config)#interfacerangef0/10-11S1(co
2、nfig-if-range)#switchportmodetrunkTrunk模式连通SW1和SW2设置接口为永久性的中继模式%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/10,changedstatetodown%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/10,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/11,changeds
3、tatetodown%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/11,changedstatetoupS1(config-if-range)#noshutdownS1(config-if-range)#exitS1(config)#intf0/1S1(config-if)#switchportmodetrunkTrunk模式连通SW1和R1,好像是为了走路由的子接口且经过三层的路由设备处理S1(config-if)#noshutdownS1(config-if)#exitS1(config)#v
4、tppassword123%TheVTPpasswordcannotbesetforNULLdomainS1(config)#vtpdomainzhengdaChangingVTPdomainnamefromNULLtozhengdaS1(config)#vtpmodeserver设置S1为核心交换机DevicemodealreadyVTPSERVER.S1(config)#exitS1#%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleS1#showvtpstatusVTPVersion:2ConfigurationRe
5、vision:0MaximumVLANssupportedlocally:255NumberofexistingVLANs:5VTPOperatingMode:ServerVTPDomainName:zhengdaVTP模式和域名已显示出来VTPPruningMode:DisabledVTPV2Mode:DisabledVTPTrapsGeneration:DisabledMD5digest:0x900xCF0x000xFA0x3C0xA80xEA0x1DConfigurationlastmodifiedby0.0.0.0at0-0-0000:00:00Local
6、updaterIDis0.0.0.0(novalidinterfacefound)S1#vlandatabase%Warning:ItisrecommendedtoconfigureVLANfromconfigmode,asVLANdatabasemodeisbeingdeprecated.PleaseconsultuserdocumentationforconfiguringVTP/VLANinconfigmode.S1(vlan)#vlan先给vlan起个名再用2name2222VLAN2added:Name:2222S1(vlan)#vlan3name333
7、3VLAN3added:Name:3333S1(vlan)#exit这个exit别忘了,否则不干活APPLYcompleted.Exiting....S1#--02---------------------------------------------------SW2---------------------------------------------------Switch>Switch>enSwitch#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#hos
8、tname
此文档下载收益归作者所有