欢迎来到天天文库
浏览记录
ID:38708347
大小:50.50 KB
页数:12页
时间:2019-06-18
《利用单臂路由实现vlan间的通信》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、2011年3月13日星期日我做的前面配置有勿。配置交换机1,2为trunk模式sw1#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.sw1(config)#intf0/11sw1(config-if)#switchportmodetrunksw2(config)#intf0/11sw2(config-if)#switchporttrunkencapsulationdot1qsw2(config-if)#switchportmodetrunksw2(config)#intf
2、0/3sw2(config-if)#switchportmodetrunksw2(config-if)#switchporttrunkencapsulationdot1q配vtpsw1(config)#vtpmodeserversw1(config)#vtpdomainlzhChangingVTPdomainnamefromzhangletolzhsw1(config)#vtppassword123{配不上密码}sw2#vlandatabasesw2(vlan)#vtpclientsw2(vlan)#vtpdomainlzh2Changi
3、ngVTPdomainnamefromNULLtolzh2sw2(vlan)#vtppasswsw2(vlan)#vtppassword123456SettingdeviceVLANdatabasepasswordto123456.sw1#vlandatabase(注:2950的交换机只能在database下加密)sw1(vlan)#vtppassword123SettingdeviceVLANdatabsepasswordto123.sw1(vlan)#vtppruningPruningswitchedONsw1(vlan)#vtppr
4、uning?v2-modeSettheadministrativedomaintoV2mode.sw1(vlan)#vtppruningv2-modePruningalreadyswitchedon.V2modeenabled.sw1(vlan)#exit(配vlan)(配完SW1在SW2上看不出同步?)sw1#vlandatabase(早期的交换机要进入database中)sw1(vlan)#vlan10nameITAPPLYcompleted.Exiting....(在SW1是的与PC1相连的接口上配接入模式并划入一个VLAN
5、中)sw1#conftsw1(config)#intf0/3sw1(config-if)#switchportmodeaccesssw1(config-if)#switchportaccessvlan10sw1(config-if)#endsw1#05:31:30:%SYS-5-CONFIG_I:Configuredfromconsolebyconsolesw1#shvlanbriVLANNameStatusPorts-------------------------------------------------------------
6、---------------1defaultactiveFa0/1,Fa0/2,Fa0/4,Fa0/5Fa0/6,Fa0/7,Fa0/8,Fa0/9Fa0/10,Fa0/1210ITactiveFa0/311VLAN0011active12VLAN0012active13VLAN0013active14VLAN0014active15VLAN0015active16VLAN0016active17VLAN0017active18VLAN0018active19VLAN0019active20ITAAactive1002fddi-defa
7、ultactive1003trcrf-defaultactive1004fddinet-defaultactive1005trbrf-defaultactivesw1#(同上)sw2#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.sw2(config)#intf0/17sw2(config-if)#swsw2(config-if)#switchportmodeaccesssw2(config-if)#switchportaccessvlan10(配子接口。目地是充当网关)
8、Router(config)#inte0/0.10Router(config-subif)#enRouter(config-subif)#encapsulationdot1q10Router(
此文档下载收益归作者所有