Each Cisco 6PE router (Router R5 and Router R6) are running IPV4 routing and CEF the 2 customer edge routers (R1 and R2) have been assigned an IPV6 address os 2001:0:1:15::/64 and 2001:0:1:36::/64 the CE router are connected to the Cisco 6PE router as shown in the figure
The following is the configuration of the P routers (R7,R8,R9) tht aare using the 192.168.XX.0/24 inside the core, with ISIS as the IGP with ISIS Wide Metric, also they are running LDP Protocol for label exchange bindings.
P-R7 configuration:
P-R8 configuration:
P-R9 configuration:
The Cisco 6PE Router are prepared by enabling IPV4 and IPV6 CEF, enabling IPv6 and specifying the interfaces from which locally generated packets takes theier source IPv6, Router R5 exchanges IPv6 routing information with router 6 using IBGP established over an IPv4 The 6PE routers (5 and 6) are configured for both IPv4 and IPv6,
Configuration for 6PE Router R5
Configuration for 6PE Router R6
IPv6 and CEFv6 are enable are enabled the 6PE neighbor is activated, and aggregate label binding and advertisments is enabled for IPv6 using the neighbor send-label.
MP-BGP and OSPFv6 Configurations for 6PE Router R5
MP-BGP and OSPFv6 Configurations for 6PE Router R6
When the neighbor relationship comes on, lets see the BIG output from the show bgp ipv6 neigh.. just for history grins..
Now is the turn to configure the CE routers (R1 and R3), with IPv6 to the 6PE Router R5 and R6
We can see now that R5 is receiving IPv6 routes from R1
On R6
lets see the labels that MP - BGP is advertising
Information from R5
Information from R6
So we can try now a ping from R1 to R3
!
The P router in the core of the network are not aware that they are switching IPv6 Packets, Core routers in this configuration are using only LDP and ISIS, you can use TDP or RSVP for binding Ipv4 labels.
Within this network, IPv6 traffic is forwarded using label 24 assigned by R6 to reach R3 loopback , which makes the IPv6 traffic transparent to the core of the MPLS network.
Chúc vui !!!
The following is the configuration of the P routers (R7,R8,R9) tht aare using the 192.168.XX.0/24 inside the core, with ISIS as the IGP with ISIS Wide Metric, also they are running LDP Protocol for label exchange bindings.
P-R7 configuration:
Code:
R7#conf te Enter configuration commands, one per line. End with CNTL/Z. R7(config)#router isis R7(config-router)#net 49.0000.0000.0007.00 R7(config-router)#metric-st w R7(config-router)#is-type level-2-on R7(config-router)#do show mpls inter Interface IP Tunnel Operational Serial0/0/0.57 Yes (ldp) Yes Yes Serial0/0/0.78 Yes (ldp) Yes Yes Serial0/0/0.79 Yes (ldp) Yes Yes R7(config-router)#int s0/0/0.57 R7(config-subif)#ip router isis R7(config-subif)#int s0/0/0.78 R7(config-subif)#ip router isis R7(config-subif)#int s0/0/0.79 R7(config-subif)#ip router isis
Code:
R8#conf te Enter configuration commands, one per line. End with CNTL/Z. R8(config)#router isis R8(config-router)#net 49.0000.0000.0008.00 R8(config-router)#metric-st w R8(config-router)#is-type level-2-on R8(config-router)#do show mpls inter Interface IP Tunnel Operational Serial0/0/0.68 Yes (ldp) Yes Yes Serial0/0/0.78 Yes (ldp) Yes Yes Serial0/0/0.89 Yes (ldp) Yes Yes R8(config-router)#int s0/0/0 R8(config-if)#int s0/0/0.68 R8(config-subif)#ip router isis R8(config-subif)#int s0/0/0.78 R8(config-subif)#ip router isis R8(config-subif)#int s0/0/0.89 R8(config-subif)#ip router isis R8(config-subif)#int lo0 R8(config-if)#ip router isis
Code:
R9#show mpls inter Interface IP Tunnel Operational Serial0/0/0.79 Yes (ldp) Yes Yes Serial0/0/0.89 Yes (ldp) Yes Yes Serial0/0/0.179 Yes (ldp) Yes Yes Serial0/0/0.189 Yes (ldp) Yes Yes R9#conf te Enter configuration commands, one per line. End with CNTL/Z. R9(config)#router isis R9(config-router)#net 49.0000.0000.0009.00 R9(config-router)#metric-st w R9(config-router)#is-type level-2-on R9(config-router)#int s0/0/0.79 R9(config-subif)#ip router isis R9(config-subif)#int s0/0/0.89 R9(config-subif)#ip router isis R9(config-subif)#exit R9(config)#int lo0 R9(config-if)#ip router isis R9(config-if)#^Z
Configuration for 6PE Router R5
Code:
R5#conf ter Enter configuration commands, one per line. End with CNTL/Z. R5(config)#ip cef R5(config)#ipv6 unicast-routing R5(config)#ipv6 cef R5(config)#ip vrf IPV6:13 R5(config-vrf)#rd 56.56.56.56:13 R5(config-vrf)#route-t 56.56.56.56:13 R5(config-vrf)#exit R5(config)#mpls ipv6 source-inter lo0 R5(config)#mpls ldp router-id lo0 R5(config)#int lo0 R5(config-if)#ip add 5.5.5.5 255.255.255.255 R5(config-if)#ip router isis R5(config-if)#ipv6 address 2001::5/64 R5(config-if)#router isis R5(config-router)#net 49.0000.0000.0005.00 R5(config-router)#metric-s w R5(config-router)#is-ty level-2-on R5(config-router)#exit R5(config)#int lo0 R5(config-if)#ip router isis R5(config-if)#int s0/0/0.57 R5(config-subif)#ip router isis R5(config-subif)#exit R5(config)#int s0/0/0.15 R5(config-subif)#no ip add R5(config-subif)#ip vrf forw IPV6:13 R5(config-subif)#description TO CE ROUTER#1 R5(config-subif)#ipv6 add 2001:0:1:15::/64 eui R5(config-subif)#ipv6 ospf 1 area 0 R5(config-subif)#do show ipv6 int brief FastEthernet0/0 [administratively down/down] FastEthernet0/1 [administratively down/down] Serial0/0/0 [up/up] Serial0/0/0.15 [up/up] FE80::213:C4FF:FEE5:E1D0 2001:0:1:15:213:C4FF:FEE5:E1D0 Serial0/0/0.25 [up/up] Serial0/0/0.56 [down/down] Serial0/0/0.57 [up/up] Serial0/0/1 [administratively down/down] Loopback0 [up/up] FE80::213:C4FF:FEE5:E1D0 2001::5
Code:
R6#conf ter Enter configuration commands, one per line. End with CNTL/Z. R6(config)#ipv6 unicast-routing R6(config)#ipv6 cef R6(config)#mpls ipv6 sou lo0 R6(config)#ip cef R6(config)#ipv6 unicast-routing R6(config)#ipv6 cef R6(config)#ip vrf IPV6:13 R6(config-vrf)#rd 56.56.56.56:13 R6(config-vrf)#route-t 56.56.56.56:13 R6(config-vrf)#exit R6(config)#int lo0 R6(config-if)#ip add 6.6.6.6 255.255.255.255 R6(config-if)#ip router isis R6(config-if)#ipv6 add 2001::6/64 R6(config-if)#router isis R6(config-router)#net 49.0000.0000.0006.00 R6(config-router)#metric-s w R6(config-router)#is-type level-2-on R6(config-router)#int s0/0/0.36 R6(config-subif)#no ip add R6(config-subif)#ip vrf for IPV6:13 R6(config-subif)#Description TO CE ROUTER 3 R6(config-subif)#ipv6 add 2001:0:1:36::/64 eu R6(config-subif)#ipv6 ospf 1 area 0 R6(config-subif)#no sh R6(config-subif)#exit R6(config)#int s0/0/0.68 R6(config-subif)#ip router isis R6(config-subif)#do show ipv6 int brief FastEthernet0/0 [administratively down/down] FastEthernet0/1 [administratively down/down] Serial0/0/0 [up/up] Serial0/0/0.26 [up/up] Serial0/0/0.36 [up/up] FE80::213:C4FF:FEE5:B1E0 2001:0:1:36:213:C4FF:FEE5:B1E0 Serial0/0/0.46 [up/up] Serial0/0/0.56 [down/down] Serial0/0/0.68 [up/up] Serial0/0/1 [administratively down/down] Loopback0 [up/up] FE80::213:C4FF:FEE5:B1E0 2001::6 Tunnel0 [up/down]
MP-BGP and OSPFv6 Configurations for 6PE Router R5
Code:
R5(config-subif)#router bgp 56 R5(config-router)#neigh 6.6.6.6 remote-as 56 R5(config-router)#neigh 6.6.6.6 up lo0 R5(config-router)#address-family ipv6 unicast R5(config-router-af)#neigh 6.6.6.6 activate R5(config-router-af)#neigh 6.6.6.6 send-label R5(config-router-af)#redistribute ospf 1 include-connected R5(config-router-af)#exit R5(config-router)#exit R5(config)#ipv6 router ospf 1 R5(config-rtr)#redistribute bgp 56 include-connected
Code:
R6(config-subif)#router bgp 56 R6(config-router)#neigh 5.5.5.5 remote-as 56 R6(config-router)#neigh 5.5.5.5 up lo0 R6(config-router)#add ipv6 R6(config-router-af)#neigh 5.5.5.5 activate R6(config-router-af)#neigh 5.5.5.5 send-label R6(config-router-af)#redistribute ospf 1 include-connected R6(config-router-af)#exit R6(config-router)#exit R6(config)#ipv6 router ospf 1 R6(config-rtr)#redistribute bgp 56 include-connected
Code:
R6#show bgp ipv6 unicast neighbors BGP neighbor is 5.5.5.5, remote AS 56, internal link BGP version 4, remote router ID 5.5.5.5 BGP state = Established, up for 01:42:36 Last read 00:00:35, last write 00:00:35, hold time is 180, keepalive interval is 60 seconds Neighbor capabilities: Route refresh: advertised and received(old & new) Address family IPv4 Unicast: advertised and received Address family IPv6 Unicast: advertised and received ipv6 MPLS Label capability: advertised and received Message statistics: InQ depth is 0 OutQ depth is 0 Sent Rcvd Opens: 2 2 Notifications: 0 0 Updates: 6 6 Keepalives: 138 138 Route Refresh: 0 0 Total: 146 146 Default minimum time between advertisement runs is 0 seconds For address family: IPv4 Unicast BGP table version 1, neighbor version 1/0 Output queue size: 0 Index 1, Offset 0, Mask 0x2 1 update-group member Sent Rcvd Prefix activity: ---- ---- Prefixes Current: 0 0 Prefixes Total: 0 0 Implicit Withdraw: 0 0 Explicit Withdraw: 0 0 Used as bestpath: n/a 0 Used as multipath: n/a 0 Outbound Inbound Local Policy Denied Prefixes: -------- ------- Total: 0 0 Number of NLRIs in the update sent: max 0, min 0 For address family: IPv6 Unicast BGP table version 9, neighbor version 9/0 Output queue size: 0 Index 1, Offset 0, Mask 0x2 1 update-group member NEXT_HOP is always this router Sending Prefix & Label Sent Rcvd Prefix activity: ---- ---- Prefixes Current: 2 2 (Consumes 152 bytes) Prefixes Total: 2 2 Implicit Withdraw: 0 0 Explicit Withdraw: 0 0 Used as bestpath: n/a 2 Used as multipath: n/a 0 Outbound Inbound Local Policy Denied Prefixes: -------- ------- Bestpath from this peer: 2 n/a Total: 2 0 Number of NLRIs in the update sent: max 1, min 1 Connections established 2; dropped 1 Last reset 01:42:38, due to Peer closed the session Connection state is ESTAB, I/O status: 1, unread input bytes: 0 Connection is ECN Disabled, Mininum incoming TTL 0, Outgoing TTL 255 Local host: 6.6.6.6, Local port: 179 Foreign host: 5.5.5.5, Foreign port: 14079 Connection tableid (VRF): 0 Enqueued packets for retransmit: 0, input: 0 mis-ordered: 0 (0 bytes) Event Timers (current time is 0x2D28498): Timer Starts Wakeups Next Retrans 106 0 0x0 TimeWait 0 0 0x0 AckHold 106 100 0x0 SendWnd 0 0 0x0 KeepAlive 0 0 0x0 GiveUp 0 0 0x0 PmtuAger 0 0 0x0 DeadWait 0 0 0x0 Linger 0 0 0x0 ProcessQ 0 0 0x0 iss: 75068442 snduna: 75070667 sndnxt: 75070667 sndwnd: 16365 irs: 3898122610 rcvnxt: 3898124835 rcvwnd: 16365 delrcvwnd: 19 SRTT: 300 ms, RTTO: 303 ms, RTV: 3 ms, KRTT: 0 ms minRTT: 44 ms, maxRTT: 316 ms, ACK hold: 200 ms Status Flags: passive open, gen tcbs Option Flags: nagle IP Precedence value : 6 Datagrams (max data segment is 536 bytes): Rcvd: 121 (out of order: 0), with data: 106, total data bytes: 2224 Sent: 218 (retransmit: 0, fastretransmit: 0, partialack: 0, Second Congestion: 0), with data: 105, total data bytes: 2224 Packets received in fast path: 0, fast processed: 0, slow path: 0 fast lock acquisition failures: 0, slow path: 0
Code:
R1#conf te Enter configuration commands, one per line. End with CNTL/Z. R1(config)#ipv6 unicast-routing R1(config)#int s0/0/0.15 R1(config-subif)#ipv6 add 2001:0:1:15::/64 eui R1(config-subif)#ipv6 ospf 1 area 0 R1(config-subif)#int lo0 R1(config-if)#ipv6 add 2001::1/128 R1(config-if)#ipv6 ospf 1 area 0 R1(config-subif)#do show ipv6 ospf neigh Neighbor ID Pri State Dead Time Interface ID Interface 5.5.5.5 1 FULL/ - 00:00:34 16 Serial0/0/0.15 R3#conf ter Enter configuration commands, one per line. End with CNTL/Z. R3(config)#ipv6 unicast R3(config)#int s0/0/0.36 R3(config-subif)#ipv6 add 2001:0:1:36::/64 eu R3(config-subif)#ipv6 ospf 1 area 0 R3(config-subif)#int lo0 R3(config-if)#ipv6 add 2001::3/128 R3(config-if)#ipv6 ospf 1 area 0
Code:
R5(config-subif)#do show ipv6 route IPv6 Routing Table - 6 entries Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP U - Per-user Static route, M - MIPv6 I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2 D - EIGRP, EX - EIGRP external C 2001::/64 [0/0] via ::, Loopback0 O 2001::1/128 [110/64] via FE80::216:46FF:FE99:6328, Serial0/0/0.15 L 2001::5/128 [0/0] via ::, Loopback0 C 2001:0:1:15::/64 [0/0] via ::, Serial0/0/0.15 L 2001:0:1:15:213:C4FF:FEE5:E1D0/128 [0/0] via ::, Serial0/0/0.15 L FF00::/8 [0/0] via ::, Null0 R5#show bgp ipv6 unicast BGP table version is 5, local router ID is 5.5.5.5 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 2001::1/128 :: 64 32768 ? *> 2001:0:1:15::/64 :: 0 32768 ?
Code:
R6#show ipv6 route IPv6 Routing Table - 6 entries Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP U - Per-user Static route, M - MIPv6 I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2 D - EIGRP, EX - EIGRP external C 2001::/64 [0/0] via ::, Loopback0 O 2001::3/128 [110/64] via FE80::215:FAFF:FED8:51B0, Serial0/0/0.36 L 2001::6/128 [0/0] via ::, Loopback0 C 2001:0:1:36::/64 [0/0] via ::, Serial0/0/0.36 L 2001:0:1:36:213:C4FF:FEE5:B1E0/128 [0/0] via ::, Serial0/0/0.36 L FF00::/8 [0/0] We can reach R3 lo0 from R6 R6#ping 2001::3 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2001::3, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 28/28/32 ms R6#
Information from R5
Code:
R5#show bgp ipv6 unicast BGP table version is 5, local router ID is 5.5.5.5 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 2001::1/128 :: 64 32768 ? *>i2001::3/128 ::FFFF:6.6.6.6 64 100 0 ? *> 2001:0:1:15::/64 :: 0 32768 ? *>i2001:0:1:36::/64 ::FFFF:6.6.6.6 0 100 0 ? R5#show bgp ipv6 label Network Next Hop In label/Out label 2001::1/128 :: 26/nolabel 2001::3/128 ::FFFF:6.6.6.6 nolabel/24 2001:0:1:15::/64 :: 27/nolabel 2001:0:1:36::/64 ::FFFF:6.6.6.6 nolabel/25
Code:
R6#show bgp ipv6 uni BGP table version is 5, local router ID is 6.6.6.6 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *>i2001::1/128 ::FFFF:5.5.5.5 64 100 0 ? *> 2001::3/128 :: 64 32768 ? *>i2001:0:1:15::/64 ::FFFF:5.5.5.5 0 100 0 ? *> 2001:0:1:36::/64 :: 0 32768 ? R6#show bgp ipv6 uni lab Network Next Hop In label/Out label 2001::1/128 ::FFFF:5.5.5.5 nolabel/24 2001::3/128 :: 24/nolabel 2001:0:1:15::/64 ::FFFF:5.5.5.5 nolabel/25 2001:0:1:36::/64 :: 25/nolabel
Code:
R1#ping 2001::3 rep 10000 Type escape sequence to abort. Sending 10000, 100-byte ICMP Echos to 2001::3, timeout is 2 seconds: !!!!!!!!!!!!!!!!!!!
The P router in the core of the network are not aware that they are switching IPv6 Packets, Core routers in this configuration are using only LDP and ISIS, you can use TDP or RSVP for binding Ipv4 labels.
Code:
R7#deb mpls pac MPLS packet debugging is on R7# MPLS: Se0/0/0.57: recvd: CoS=0, TTL=63, Label(s)=18/24 MPLS: Se0/0/0.78: xmit: CoS=0, TTL=62, Label(s)=18/24
Chúc vui !!!