欢迎来到天天文库
浏览记录
ID:14330612
大小:238.50 KB
页数:8页
时间:2018-07-28
《17[1].路由器以太网端口单臂路由配置》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、将交换机和路由器连接起来如下图:PC0----SW0----fa0/1(192.168.10.10/24)PC0----SW0----fa0/11(192.168.20.10/24)SW0(Gi1/1)----RO0(Fa0/0)我们首先来配置交换机:Switch>Switch>enSwitch>enableSwitch#configConfiguringfromterminal,memory,ornetwork[terminal]?Enterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#i
2、nRASwitch(config)#inraSwitch(config)#inrangefaSwitch(config)#inrangefastEthernet0/1-10Switch(config-if-range)#swSwitch(config-if-range)#switchport?accessSetaccessmodecharacteristicsoftheinterfacemodeSettrunkingmodeoftheinterfacenativeSettrunkingnativecharacteristicswheninterfaceisintrun
3、kingmodenonegotiateDevicewillnotengageinnegotiationprotocolonthisinterfaceport-securitySecurityrelatedcommandtrunkSettrunkingcharacteristicsoftheinterfacevoiceVoiceapplianceattributesSwitch(config-if-range)#switchportacSwitch(config-if-range)#switchportaccess?vlanSetVLANwheninterfaceisi
4、naccessmodeSwitch(config-if-range)#switchportaccessvlSwitch(config-if-range)#switchportaccessvlan10%AccessVLANdoesnotexist.Creatingvlan10Switch(config-if-range)#inrangefastEthernet0/11-20Switch(config-if-range)#switchportaccessvlan20%AccessVLANdoesnotexist.Creatingvlan20Switch(config-if
5、-range)#^Z%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleSwitch(config)#inSwitch(config)#interfacegiSwitch(config)#interfacegigabitEthernet1/1Switch(config-if)#swSwitch(config-if)#switchport?accessSetaccessmodecharacteristicsoftheinterfacemodeSettrunkingmodeoftheinterfacenativeSettrunkin
6、gnativecharacteristicswheninterfaceisintrunkingmodenonegotiateDevicewillnotengageinnegotiationprotocolonthisinterfaceport-securitySecurityrelatedcommandtrunkSettrunkingcharacteristicsoftheinterfacevoiceVoiceapplianceattributesSwitch(config-if)#switchportacSwitch(config-if)#switchportacc
7、ess?vlanSetVLANwheninterfaceisinaccessmodeSwitch(config-if)#switchportmoSwitch(config-if)#switchportmode?accessSettrunkingmodetoACCESSunconditionallydynamicSettrunkingmodetodynamicallynegotiateaccessortrunkmodetrunkSettrunkingmodetoTRUNKunconditionallySwitch(config-if)#switchpo
此文档下载收益归作者所有