MPLS VPN及びMP-BGPの構成・設定 |
Dynalconf HOME |
Dynamips/Dynagenを使用して、IOS-XRvによりMPLS VPN及びMP-BGPを構成します。
R7#sh ip route O E2 192.168.0.0/24 [110/1] via 192.168.11.1, GigabitEthernet0/0 O E2 192.168.1.0/24 [110/2] via 192.168.11.1, GigabitEthernet0/0 O E2 192.168.13.0/24 [110/1] via 192.168.11.1, GigabitEthernet0/0 O E2 192.168.14.0/24 [110/2] via 192.168.11.1, GigabitEthernet0/0
RP/0/0/CPU0:XR4#sh bgp vpnv4 unicast vrf VA2 192.168.1.0 Tue Dec 25 04:01:20.308 UTC BGP routing table entry for 192.168.1.0/24, Route Distinguisher: 65001:1 Versions: Process bRIB/RIB SendTblVer Speaker 53 53 Last Modified: Dec 25 03:40:08.596 for 00:21:11 Paths: (1 available, best #1) Not advertised to any peer Path #1: Received by speaker 0 Not advertised to any peer Local 10.0.0.3 (metric 4) from 10.0.0.3 (10.0.0.3) Received Label 3008 Origin incomplete, metric 2, localpref 100, valid, internal, best, group-best, import-candidate, imported Received Path ID 0, Local Path ID 0, version 53 Extended community: OSPF domain-id:0x5:0x000000c90200 OSPF route-type:1:2:0x0 OSPF router-id:192.168.0.1 RT:65001:1 ---> 0x000000c9 : OSPF Proccess ID Source AFI: VPNv4 Unicast, Source VRF: VA2, Source Route Distinguisher: 65001:1
RP/0/0/CPU0:XR4#sh bgp vpnv4 unicast vrf VA2 192.168.14.0 Tue Dec 25 04:02:14.564 UTC BGP routing table entry for 192.168.14.0/24, Route Distinguisher: 65001:1 Versions: Process bRIB/RIB SendTblVer Speaker 59 59 Last Modified: Dec 25 03:40:22.596 for 00:21:52 Paths: (1 available, best #1) Not advertised to any peer Path #1: Received by speaker 0 Not advertised to any peer Local 10.0.0.5 (metric 3) from 10.0.0.5 (10.0.0.5) Received Label 5008 Origin incomplete, metric 2, localpref 100, valid, internal, best, group-best, import-candidate, imported Received Path ID 0, Local Path ID 0, version 59 Extended community: OSPF domain-id:0x5:0x000000c90200 OSPF route-type:3:2:0x0 OSPF router-id:192.168.13.1 RT:65001:1 Source AFI: VPNv4 Unicast, Source VRF: VA2, Source Route Distinguisher: 65001:1
RP/0/0/CPU0:XR4#sh bgp vpnv4 unicast vrf VA2 192.168.12.0 Tue Dec 25 04:02:58.471 UTC BGP routing table entry for 192.168.12.0/24, Route Distinguisher: 65001:1 Versions: Process bRIB/RIB SendTblVer Speaker 63 63 Local Label: 40008 Last Modified: Dec 25 03:56:48.596 for 00:06:09 Paths: (1 available, best #1) Advertised to update-groups (with more than one peer): 0.2 Path #1: Received by speaker 0 Advertised to update-groups (with more than one peer): 0.2 Local 192.168.11.2 from 0.0.0.0 (10.0.0.4) Origin incomplete, metric 2, localpref 100, weight 32768, valid, redistributed, best, group-best, import-candidate Received Path ID 0, Local Path ID 0, version 63 Extended community: OSPF route-type:2:1:0x0 OSPF router-id:10.0.0.4 RT:65001:1 ---> Domina-IDの設定無しここで以下のコマンドによりDomain-IDを設定する。
router ospf 201 vrf VA2 domain-id type 0005 value 000000c90200これによりCustomerA Site1、CustomerA Site3のルートをLSA Type-3で受信するようになる。
R7#sh ip route O IA 192.168.0.0/24 [110/2] via 192.168.11.1, GigabitEthernet0/0 O IA 192.168.1.0/24 [110/3] via 192.168.11.1, GigabitEthernet0/0 O IA 192.168.13.0/24 [110/2] via 192.168.11.1, GigabitEthernet0/0 O IA 192.168.14.0/24 [110/3] via 192.168.11.1, GigabitEthernet0/0
R6#traceroute 192.168.12.1 so g1/0 numeric Type escape sequence to abort. Tracing the route to 192.168.12.1 VRF info: (vrf in name/id, vrf out name/id) 1 192.168.0.1 12 msec 12 msec 16 msec 2 10.10.1.1 [MPLS: Labels 100002/400008 Exp 0] 52 msec 60 msec 68 msec ---> 100002/400008の2つのラベルを付与 3 10.10.0.2 [MPLS: Labels 2000/400008 Exp 0] 56 msec 60 msec 60 msec 4 10.10.2.2 [MPLS: Label 400008 Exp 0] 56 msec 104 msec 108 msec 5 192.168.11.2 56 msec * 68 msec
R3#sh bgp vpnv4 unicast all labels Network Next Hop In label/Out label Route Distinguisher: 65001:1 (V1) 192.168.12.0 10.0.0.4 nolabel/400008 ---> 192.168.12.0宛てはラベル400008を付与して10.0.0.4へ転送
R3#sh mpls forwarding-table Local Outgoing Prefix Bytes Label Outgoing Next Hop Label Label or Tunnel Id Switched interface 3000 100002 10.0.0.4/32 0 Gi0/0 10.10.1.1 ---> 10.0.0.4宛てはラベル100002を付与
RP/0/0/CPU0:XR1#sh mpls forwarding Tue Dec 25 05:08:57.189 UTC Local Outgoing Prefix Outgoing Next Hop Bytes Label Label or ID Interface Switched ------ ----------- ------------------ ------------ --------------- ------------ 100002 2000 10.0.0.4/32 Gi0/0/0/0 10.10.0.2 6020 ---> ラベル100002 -> 2000を付与
R2#sh mpls forwarding-table Local Outgoing Prefix Bytes Label Outgoing Next Hop Label Label or Tunnel Id Switched interface 2000 Pop Label 10.0.0.4/32 8388 Gi1/0 10.10.2.2 ---> ラベル2000をPop
RP/0/0/CPU0:XR4#sh mpls forwarding Tue Dec 25 05:10:26.665 UTC Local Outgoing Prefix Outgoing Next Hop Bytes Label Label or ID Interface Switched ------ ----------- ------------------ ------------ --------------- ------------ 400008 Unlabelled 192.168.12.0/24[V] Gi0/0/0/1 192.168.11.2 6524 ---> ラベル400008を192.168.11.2へ転送
1. Dynagen .net file 2. R1(IOS-XRv) 3. R2 4. R3 5. R4(IOS-XRv) 6. R5 7. R6 8. R7 9. R8 10. R9 11. R10
R6 : sh ip route traceroute 192.168.12.1 so g1/0 numeric R3 : sh ip route vrf V1 sh bgp vpnv4 unicast all labels sh mpls forwarding-table XR1 : sh mpls forwarding R2 : sh mpls forwarding-table XR4 : sh route vrf VA2 ipv4 sh route vrf VB2 ipv4 sh bgp vpnv4 unicast labels sh mpls forwarding R5 : sh ip route vrf VA3 sh ip route vrf VB3 sh bgp vpnv4 unicast all labels sh mpls forwarding-table R7 : sh ip route R8 : sh ip route R9 : sh ip route R10 : sh ip route 1. show command
Dynalconf HOME |