OSPF多实例实验一、实验拓扑二、实验版本R3680E与R2631E版本是vrp3.3-008;R2621版本是174-0107;R4001是1.44三、实验配置1、pe1:3680E配置R3680Ediscu#sysnameR3680E#local-useraaapasswordsimpleaaalocal-useraaaservice-typetelnet#mplslsr-id202.1.1.1#mpls#mplsldp#ipvpn-instancevpnaroute-distinguisher100:1vpn-target100:1export-extcommunityvpn-target100:1import-extcommunitycontrollerE11/0clockmasterusinge1#controllerE11/1clockmasterusinge1#interfaceSerial1/0:0link-protocolpppipaddress1.1.1.2255.255.255.252mplsmplsldpenable#interfaceSerial1/1:0link-protocolpppipbindingvpn-instancevpnaipaddress3.1.1.1255.255.255.252#interfaceLoopBack1ipaddress202.1.1.1255.255.255.255#interfaceLoopBack2ipbindingvpn-instancevpnaipaddress203.1.1.1255.255.255.255///必须是32位的#bgp10undosynchronizationgroup1internalpeer1connect-interfaceLoopBack1peer202.1.1.2group1#ipv4-familyvpn-instancevpnaimport-routedirectimport-routeospf10undosynchronization#ipv4-familyvpnv4peer1enablepeer202.1.1.2group1#ospf1area0.0.0.0network1.1.1.00.0.0.3network202.1.1.10.0.0.0#ospf10router-id203.1.1.1vpn-instancevpnaimport-routebgp///必须引入bgp,为了建立203.1.1.1-203.1.1.2的伪连接import-routedirectarea0.0.0.1network3.1.1.00.0.0.3sham-link203.1.1.1203.1.1.2R3680EdisiprouvpnvpnavpnaRouteInformationRoutingTable:vpnaRoute-Distinguisher:100:1Destination/MaskProtocolPreCostNexthopInterface2.1.1.0/30BGP2560202.1.1.2InLoopBack03.1.1.0/30DIRECT003.1.1.1Serial1/1:03.1.1.1/32DIRECT00127.0.0.1InLoopBack03.1.1.2/32DIRECT003.1.1.2Serial1/1:010.0.0.0/8BGP2561610202.1.1.2InLoopBack020.0.0.0/8OSPF1016103.1.1.2Serial1/1:0203.1.1.1/32DIRECT00127.0.0.1InLoopBack0203.1.1.2/32BGP2560202.1.1.2InLoopBack0///如果该路由不存在,则sham不能upR3680EdisospfshamOSPFProcess10withRouterID203.1.1.1ShamLinksSham-link203.1.1.1-203.1.1.2,State:FullArea:0.0.0.1Neighbor-id:203.1.1.2Cost:1State:PtoPType:ShamTimers:Hello10,Dead40,Poll0,Retransmit5,TransmitDelay12、pe2:R2631E配置R2631Ediscu#sysnameR2631E#local-useraaapasswordsimpleaaalocal-useraaaservice-typetelnet#mplslsr-id202.1.1.2#mpls#mplsldp#ipvpn-instancevpnaroute-distinguisher100:1vpn-target100:1export-extcommunityvpn-target100:1import-extcommunity#controllerE13/0usinge1#controllerE13/1clockmasterusinge1#interfaceSerial3/0:0link-protocolpppipaddress1.1.1.1255.255.255.252mplsmplsldpenable#interfaceSerial3/1:0link-protocolpppipbindingvpn-instancevpnaipaddress2.1.1.1255.255.255.252#interfaceLoopBack1ipaddress202.1.1.2255.255.255.255#interfaceLoopBack2ipbindingvpn-instancevpnaipaddress203.1.1.2255.255.255.255#bgp10undosynchronizationgroup1internalpeer1connect-interfaceLoopBack1peer202.1.1.1group1#ipv4-familyvpn-instancevpnaimport-routedirectimport-routeospf10undosynchronization#ipv4-familyvpnv4peer1enablepeer202.1.1.1group1#ospf1area0.0.0.0network1.1.1.00.0.0.3network202.1.1.20.0.0.0#ospf10router-id203.1.1.2vpn-instancevpnaimport-routebgpimport-routedirectarea0.0.0.1network2.1.1.00.0.0.3sham-link203.1.1.2203.1.1.1R2631EdisiprouvpnvpnavpnaRouteInformationRoutingTable:vpnaRoute-Distinguisher:100:1Destination/MaskProtocolPreCostNexthopInterface2.1.1.0/30DIRECT002.1.1.1Serial3/1:02.1.1.1/32DIRECT00127.0.0.1InLoopBack02.1.1.2/32DIRECT002.1.1.2Serial3/1:03.1.1.0/30BGP2560202.1.1.1InLoopBack010.0.0.0/8OSPF1016102.1.1.2Serial3/1:020.0.0.0/8BGP2561610202.1.1.1InLoopBack0203.1.1.1/32BGP2560202.1.1.1InLoopBack0203.1.1.2/32DIRECT00127.0.0.1InLoopBack0R2631EdisospfshamOSPFProcess10withRouterID203.1.1.2ShamLinksSham-link203.1.1.2-203.1.1.1,State:FullArea:0.0.0.1Neighbor-id:203.1.1.1Cost:1State:PtoPType:ShamTimers:Hello10,Dead40,Poll0,Retransmit5,TransmitDelay1R2631ER2631Edisospf10lsdbOSPFProcess10withRouterID203.1.1.2LinkStateDatabaseArea:0.0.0.0TypeLinkStateIDAdvRouterAgeLenSequenceMetricWhereRtr203.1.1.2203.1.1.2108524800000030SpfTreeSNet10.0.0.0203.1.1.290928800000011610InterListSNet20.0.0.0203.1.1.229728800000071611InterListSNet2.1.1.0203.1.1.2919288000000148InterListSNet3.1.1.0203.1.1.2297288000000749InterListASB203.1.1.1203.1.1.229728800000011SumAsbListArea:0.0.0.1TypeLinkStateIDAdvRouterAgeLenSequenceMetricWhereStub10.0.0.010.0.0.19122400SpfTreeStub20.0.0.020.0.0.13052400SpfTreeStub3.1.1.0203.1.1.13052400SpfTreeStub2.1.1.0203.1.1.29122400SpfTreeRtr10.0.0.110.0.0.1913608000000a0ClistRtr20.0.0.120.0.0.11184608000000a0ClistRtr203.1.1.1203.1.1.130660800000050SpfTreeRtr203.1.1.2203.1.1.230560800000050SpfTreeRtr3.1.1.13.1.1.1227848800000050UninitializedSNet10.0.0.0203.1.1.168128800000051UninitializedSNet20.0.0.0203.1.1.271928800000041InterListSNet2.1.1.0203.1.1.168128800000051UninitializedSNet3.1.1.0203.1.1.271928800000041InterListASExternalDatabase:TypeLinkStateIDAdvRouterAgeLenSequenceMetricWhereASE203.1.1.03.1.1.1136136800000021UninitializedASE203.1.1.1203.1.1.217036800000041AseListASE203.1.1.1203.1.1.124836800000041UninitializedASE203.1.1.2203.1.1.217036800000021AseListASE203.1.1.2203.1.1.124836800000021UninitializedASE2.1.1.0203.1.1.292436800000011AseListASE3.1.1.0203.1.1.1118136800000031UninitializedR2631ER2631Edisospf10routingOSPFProcess10withRouterID203.1.1.2RoutingTablesRoutingforNetworkDestinationCostTyp