Sunday, November 4, 2012

Cisco MPLS VPN eBGP

MPLS VPN eBGP


PE1 vrf


PE2 vrf


PE1 vpnv4 and ipv4


PE2 vpnv4 and ipv4


PE1#show mpls forwarding-table
Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop   
Label      Label      or Tunnel Id     Switched      interface             
100        Pop Label  2.2.2.2/32       0             Et0/0      12.0.0.2   
101        201        3.3.3.3/32       0             Et0/0      12.0.0.2   
102        202        34.0.0.0/24      0             Et0/0      12.0.0.2   
103        Pop Label  23.0.0.0/24      0             Et0/0      12.0.0.2   
104        No Label   6.6.6.0/24[V]    570           Et0/2      16.0.0.6   
105        No Label   16.0.0.0/24[V]   570           aggregate/vpn-a
106        No Label   66.66.66.0/24[V] 0             Et0/2      16.0.0.6 
  



PE1#show ip bgp vpnv4 all summary
BGP router identifier 1.1.1.1, local AS number 100
BGP table version is 10, main routing table version 10
6 network entries using 816 bytes of memory
8 path entries using 416 bytes of memory
5/4 BGP path/bestpath attribute entries using 620 bytes of memory
2 BGP AS-PATH entries using 48 bytes of memory
1 BGP extended community entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1924 total bytes of memory
2 received paths for inbound soft reconfiguration
BGP activity 6/0 prefixes, 8/0 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
3.3.3.3         4          100      14      12       10    0    0 00:07:11        3
16.0.0.6        4          600      10      11       10    0    0 00:06:17        2


PE1#show ip bgp vpnv4 all
BGP table version is 10, local router ID is 1.1.1.1
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
Route Distinguisher: 1:1 (default for vrf vpn-a)
*> 6.6.6.0/24       16.0.0.6                 0             0 600 i
*>i8.8.8.0/24       3.3.3.3                  0    100      0 800 i
*> 16.0.0.0/24      0.0.0.0                  0         32768 ?
*>i38.0.0.0/24      3.3.3.3                  0    100      0 ?
*> 66.66.66.0/24    16.0.0.6                 0             0 600 i

*>i88.88.88.0/24    3.3.3.3                  0    100      0 800 i
 
PE2#show mpls forwarding-table
Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop   
Label      Label      or Tunnel Id     Switched      interface             
300        No Label   8.8.8.0/24[V]    4738          Et0/2      38.0.0.8   
301        No Label   38.0.0.0/24[V]   0             aggregate/vpn-a
302        No Label   88.88.88.0/24[V] 1244          Et0/2      38.0.0.8   

303        Pop Label  2.2.2.2/32       0             Et0/1      23.0.0.2   
304        200        1.1.1.1/32       0             Et0/1      23.0.0.2   
305        Pop Label  12.0.0.0/24      0             Et0/1      23.0.0.2


PE2#show ip bgp vpnv4 all summary
BGP router identifier 3.3.3.3, local AS number 100
BGP table version is 10, main routing table version 10
6 network entries using 816 bytes of memory
8 path entries using 416 bytes of memory
5/4 BGP path/bestpath attribute entries using 620 bytes of memory
2 BGP AS-PATH entries using 48 bytes of memory
1 BGP extended community entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1924 total bytes of memory
2 received paths for inbound soft reconfiguration
BGP activity 6/0 prefixes, 8/0 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
1.1.1.1         4          100      24      26       10    0    0 00:18:26        3
38.0.0.8        4          800      26      27       10    0    0 00:21:06        2


PE2#show ip bgp vpnv4 all
BGP table version is 10, local router ID is 3.3.3.3
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
Route Distinguisher: 1:1 (default for vrf vpn-a)
*>i6.6.6.0/24       1.1.1.1                  0    100      0 600 i
*> 8.8.8.0/24       38.0.0.8                 0             0 800 i
*>i16.0.0.0/24      1.1.1.1                  0    100      0 ?
*> 38.0.0.0/24      0.0.0.0                  0         32768 ?

*>i66.66.66.0/24    1.1.1.1                  0    100      0 600 i
*> 88.88.88.0/24    38.0.0.8                 0             0 800 i

CE1 Traceroute to CE2

CE2 Traceroute to CE1