您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 质量控制/管理 > OSPF之重分布隧道虚电路-隧道
OSPF之重分布、隧道、虚电路二、隧道R1enconftintl0ipaddress1.1.1.1255.255.255.0intf0/0ipaddress12.1.1.1255.255.255.0noshutintf0/1ipaddress13.1.1.1255.255.255.0noshutendconftrouterospf1router-id1.1.1.1network1.1.1.10.0.0.0a0network12.1.1.10.0.0.0a0network13.1.1.10.0.0.0a1endR1上建立隧道并宣告到a0区域中,tunnel号不需要与R3上的tunnel号一致,但必须在同一网段之内。R1#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.R1(config)#inttunnel0R1(config-if)#tunnelsource13.1.1.1R1(config-if)#tunneldestination13.1.1.3*Mar100:41:33.743:%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceTunnel0,changedstatetoupR1(config-if)#ipaddress100.1.1.1255.255.255.0R1(config-if)#exitR1(config)#routerospf1R1(config-router)#network100.1.1.10.0.0.0a0R1(config-router)#endR2enconftintl0ipaddress2.2.2.2255.255.255.0intf0/0ipaddress12.1.1.2255.255.255.0noshutintf0/1ipaddress24.1.1.2255.255.255.0noshutendconftrouterospf1router-id2.2.2.2network2.2.2.20.0.0.0a0network12.1.1.20.0.0.0a0network24.1.1.20.0.0.0a2endR3enconftintl0ipaddress3.3.3.3255.255.255.0intf0/0ipaddress35.1.1.3255.255.255.0noshutintf0/1ipaddress13.1.1.3255.255.255.0noshutendconftrouterospf1router-id3.3.3.3network3.3.3.30.0.0.0a1network13.1.1.30.0.0.0a1network35.1.1.30.0.0.0a3endR3上建立隧道并宣告到a0区域中,tunnel号不需要与R1上的tunnel号一致,但必须在同一网段之内。R1#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.R1(config)#inttunnel0R1(config-if)#tunnelsource13.1.1.3R1(config-if)#tunneldestination13.1.1.1*Mar100:41:33.743:%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceTunnel0,changedstatetoupR1(config-if)#ipaddress100.1.1.3255.255.255.0//此IP与R1上的要在同一网段内R1(config-if)#exitR1(config)#routerospf1R1(config-router)#network100.1.1.30.0.0.0a0//并且将此IP宣告到area0区域中R1(config-router)#endR4enconftintl0ipaddress4.4.4.4255.255.255.0intf0/1ipaddress24.1.1.4255.255.255.0noshutendconftrouterospf1router-id4.4.4.4network4.4.4.40.0.0.0a2network24.1.1.40.0.0.0a2endR5enconftintl0ipaddress5.5.5.5255.255.255.0intf0/0ipaddress35.1.1.5255.255.255.0noshutendconftrouterospf1router-id5.5.5.5network5.5.5.50.0.0.0a3network35.1.1.50.0.0.0a3end
本文标题:OSPF之重分布隧道虚电路-隧道
链接地址:https://www.777doc.com/doc-2848143 .html