cisco路由器的trunk与子接口的讨论

cisco路由器的trunk与子接口的讨论

ID:44753128

大小:84.65 KB

页数:3页

时间:2019-10-28

cisco路由器的trunk与子接口的讨论_第1页
cisco路由器的trunk与子接口的讨论_第2页
cisco路由器的trunk与子接口的讨论_第3页
资源描述:

《cisco路由器的trunk与子接口的讨论》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、Cisco路由器的Trunk与子接口的讨论First,lookatthesubinterfacenumbers.Thesubinterfacenumberbeginswiththeperiod,like.10and.20inthiscase.Thesenumberscanbeanynumberfrom1upthroughaverylargenumber(over4billion).Thenumberjustneedstobeuniqueamongallsubinterfacesassociatedwiththi

2、sonephysicalinterface.Infact,thesubinterfacenumberdoesnotevenhavetomatchtheassociatedVLANID.(Theencapsulationcommand,andnotthesubinterfacenumber,definestheVLANIDassociatedwiththesubinterface.)(案:也就是说路由器子接口的number与encapsulationdot1Q后面的number可以不一致,接收特定VLAN的帧时,

3、起作用的是encapsulationdot1Q后面的number如:encapsulationdot1Q:启用路由器的802.1Q封装,此e0/0.111只接收vlan10的数据帧。)Each802.1QtrunkhasonenativeVLAN,andwhenused,theconfigurationtousethatnativeVLANdiffers,withtwooptionsfortheroutersideofconfiguration:Routerside:1、Configuretheipaddres

4、scommandonthephysicalinterface,butwithoutanencapsulationcommand;therouterconsidersthisphysicalinterfacetobeusingthenativeVLAN.(案:交换机一端是nativeVLAN是1,路由器一端为:也可以是:)2、Configuretheipaddresscommandonasubinterface,andusetheencapsulation...nativesubcommand.(如果不指定dot

5、1Q的封装,那么子接口IP无法配到子接口下面。)最后需要注意:NOTEAlthoughnotrequired,mostsitesdochoosetomakethesubinterfacenumbermatchtheVLANID!Eachsubinterfaceconfigurationliststwosubcommands.Onecommand(encapsulation)enablestrunkinganddefinestheVLANwhoseframesareconsideredtobecominginan

6、doutofthesubinterface.Theipaddresscommandworksthesamewayitdoesonanyotherinterface.NotethatifthephysicalEthernetinterfacereachesanup/upstate,thesubinterfaceshouldaswell,Eachsubinterfaceconfigurationliststwosubcommands.Onecommand(encapsulation)enablestrunkinga

7、nddefinestheVLANwhoseframesareconsideredtobecominginandoutofthesubinterface.Theipaddresscommandworksthesamewayitdoesonanyotherinterface.NotethatifthephysicalEthernetinterfacereachesanup/upstate,thesubinterfaceshouldaswell,提问:Router端的nativeVLAN与Switch端的native

8、VLAN不一致,Trunk是否起的来?通过gns3的实验,Trunk链路可以启用,正常使用!也就是说:Router:Switch:Router与Swtich可以ping通!在Router上可以用showvlans查看相关:结论:theshowvlanscommandonarouterspellsoutwhichroutertrunkinterfacesusewhichVLANs,whi

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。