Mpls L2VPN

P1#sh ip int brief | exc down
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet2/0            10.0.0.2        YES manual up                    up  
GigabitEthernet3/0         20.0.0.1        YES manual up                    up  
Loopback0                  100.0.0.1       YES manual up                    up  



P1#sh running-config | section eigrp
router eigrp 100
 network 10.0.0.0 0.0.0.3
 network 20.0.0.0 0.0.0.3
 network 100.0.0.1 0.0.0.0
P1#


PE-SiteA#sh ip int brief | exc down
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            unassigned      YES manual up                    up  
FastEthernet2/0            10.0.0.1        YES manual up                    up  
Loopback0                  50.0.0.1        YES manual up                    up  


PE-SiteA#sh running-config | section eigrp
router eigrp 100
 network 10.0.0.0 0.0.0.3
 network 50.0.0.1 0.0.0.0
PE-SiteA#


P2#sh ip int brief | exc down
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet2/0            20.0.0.2        YES manual up                    up  
GigabitEthernet3/0         30.0.0.1        YES manual up                    up  
Loopback0                  150.0.0.1       YES manual up                    up  


P2#sh running-config | section eigrp
router eigrp 100
 network 20.0.0.0 0.0.0.3
 network 30.0.0.0 0.0.0.3
 network 150.0.0.1 0.0.0.0
P2#

PE-SiteB#sh ip int brief | exc down
Interface                  IP-Address      OK? Method Status                Protocol
GigabitEthernet3/0         30.0.0.2        YES manual up                    up  
Loopback0                  200.0.0.1       YES manual up                    up  


PE-SiteB#sh running-config | section eigrp
router eigrp 100
 network 30.0.0.0 0.0.0.3
 network 200.0.0.1 0.0.0.0
PE-SiteB#


PE-SiteA#sh ip route

Gateway of last resort is not set

      10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        10.0.0.0/30 is directly connected, FastEthernet2/0
L        10.0.0.1/32 is directly connected, FastEthernet2/0
      20.0.0.0/30 is subnetted, 1 subnets
D        20.0.0.0 [90/28416] via 10.0.0.2, 00:08:56, FastEthernet2/0
      30.0.0.0/30 is subnetted, 1 subnets
D        30.0.0.0 [90/28672] via 10.0.0.2, 00:04:23, FastEthernet2/0
      50.0.0.0/32 is subnetted, 1 subnets
C        50.0.0.1 is directly connected, Loopback0
      100.0.0.0/32 is subnetted, 1 subnets
D        100.0.0.1 [90/156160] via 10.0.0.2, 00:08:56, FastEthernet2/0
      150.0.0.0/32 is subnetted, 1 subnets
D        150.0.0.1 [90/156416] via 10.0.0.2, 00:04:12, FastEthernet2/0
      200.0.0.0/32 is subnetted, 1 subnets
D        200.0.0.1 [90/156672] via 10.0.0.2, 00:00:58, FastEthernet2/0
PE-SiteA#


Mpls label oluşturma

PE-SiteA(config)#mpls label range 100 199
PE-SiteA(config)#mpls ip
PE-SiteA(config)#interface fastEthernet 2/0
PE-SiteA(config-if)#mpls ip
PE-SiteA(config-if)#end
*Jan 29 18:49:31.167: %SYS-5-CONFIG_I: Configured from console by console
PE-SiteA#sh mpls forwarding-table
Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop
Label      Label      or Tunnel Id     Switched      interface
100        No Label   20.0.0.0/30      0             Fa2/0      10.0.0.2
101        No Label   30.0.0.0/30      0             Fa2/0      10.0.0.2
102        No Label   100.0.0.1/32     0             Fa2/0      10.0.0.2
103        No Label   150.0.0.1/32     0             Fa2/0      10.0.0.2
104        No Label   200.0.0.1/32     0             Fa2/0      10.0.0.2
PE-SiteA#


P1(config)#mpls label range 200 299
P1(config)#mpls ip
P1(config)#interface fastEthernet 2/0
P1(config-if)#mpls ip
*Jan 29 18:51:57.011: %LDP-5-NBRCHG: LDP Neighbor 50.0.0.1:0 (1) is UP

P1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
P1(config)#interface gigabitEthernet 3/0
P1(config-if)#mpls ip
P1(config-if)#exit



P1 de de mpls tanımladıktan sonra artık Outgoing labellar oluştu.

PE-SiteA#sh mpls forwarding-table
Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop
Label      Label      or Tunnel Id     Switched      interface
100        Pop Label  20.0.0.0/30      0             Fa2/0      10.0.0.2
101        200        30.0.0.0/30      0             Fa2/0      10.0.0.2
102        Pop Label  100.0.0.1/32     0             Fa2/0      10.0.0.2
103        202        150.0.0.1/32     0             Fa2/0      10.0.0.2
104        203        200.0.0.1/32     0             Fa2/0      10.0.0.2
PE-SiteA#


P2(config)#interface fastEthernet 2/0
P2(config-if)#mpls ip
P2(config-if)#exit
P2(config)#mpls label range 300 399
 Label range change will cause
 4 labels in the old dynamic range [16-100000] to go out of range
P2(config)#mpls label range 300 399
P2(config)#interface gigabitEthernet 3/0
P2(config-if)#mpls ip
P2(config-if)#exit


PE-SiteB(config)#mpls label range 400 499
PE-SiteB(config)#exit

PE-SiteB#conf t
Enter configuration commands, one per line.  End with CNTL/Z.

PE-SiteB(config)#interface gigabitEthernet 3/0
PE-SiteB(config-if)#mpls ip
PE-SiteB(config-if)#
*Jan 29 18:56:23.399: %LDP-5-NBRCHG: LDP Neighbor 150.0.0.1:0 (1) is UP

PE-SiteB#sh mpls forwarding-table
Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop
Label      Label      or Tunnel Id     Switched      interface
400        16         10.0.0.0/30      0             Gi3/0      30.0.0.1
401        Pop Label  20.0.0.0/30      0             Gi3/0      30.0.0.1
402        17         50.0.0.1/32      0             Gi3/0      30.0.0.1
403        18         100.0.0.1/32     0             Gi3/0      30.0.0.1
404        Pop Label  150.0.0.1/32     0             Gi3/0      30.0.0.1
PE-SiteB#



P2#sh mpls forwarding-table
Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop
Label      Label      or Tunnel Id     Switched      interface
16         Pop Label  10.0.0.0/30      0             Fa2/0      20.0.0.1
17         201        50.0.0.1/32      0             Fa2/0      20.0.0.1
18         Pop Label  100.0.0.1/32     0             Fa2/0      20.0.0.1
19         Pop Label  200.0.0.1/32     0             Gi3/0      30.0.0.2
P2#


PE-SiteA#sh mpls forwarding-table 200.0.0.1 32
Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop
Label      Label      or Tunnel Id     Switched      interface
104        203        200.0.0.1/32     0             Fa2/0      10.0.0.2
PE-SiteA#


PE-SiteA#traceroute 200.0.0.1 source 50.0.0.1
Type escape sequence to abort.
Tracing the route to 200.0.0.1
VRF info: (vrf in name/id, vrf out name/id)
  1 10.0.0.2 [MPLS: Label 203 Exp 0] 284 msec 668 msec 996 msec
  2 20.0.0.2 [MPLS: Label 19 Exp 0] 560 msec 2436 msec 720 msec
  3 30.0.0.2 52 msec 72 msec 64 msec
PE-SiteA#


SiteA#sh ip int brief | exc down
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            192.168.10.1    YES manual up                    up  
Loopback0                  1.1.1.1         YES manual up                    up  

SiteA#sh running-config | section ospf
router ospf 1
 network 1.1.1.1 0.0.0.0 area 0
 network 192.168.10.0 0.0.0.255 area 0
SiteA#

SiteB#sh ip int brief | exc down
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet2/0            192.168.10.2    YES NVRAM  up                    up  
Loopback0                  2.2.2.2         YES NVRAM  up                    up  

SiteB#sh running-config | section ospf
router ospf 1
 network 2.2.2.2 0.0.0.0 area 0
 network 192.168.10.0 0.0.0.255 area 0
SiteB#





PE-SiteA(config)#pseudowire-class L2Link_SiteA
PE-SiteA(config-pw-class)#encapsulation mpls
PE-SiteA(config-pw-class)#exit
PE-SiteA(config)#interface fastEthernet 0/0

PE-SiteA(config-if)#xconnect 200.0.0.1 100 pw-class L2Link_SiteA
*Jan 29 23:07:31.255: %LINEPROTO-5-UPDOWN: Line protocol on Interface pseudowire0, changed state to up
PE-SiteA(config-if-xconn)#exit
PE-SiteA(config-if)#exit
PE-SiteA(config)#end
PE-SiteA#sh
*Jan 29 23:07:48.051: %SYS-5-CONFIG_I: Configured from console by console

PE-SiteA#sh mpls l2 ?
  binding        Display VC label binding information
  fsm            Finite state machine counters
  hw-capability  Show MPLS L2 transport capability
  memory         AToM memory usage
  pwid           AToM dataplane pseudowire identifier usage
  static-oam     Static PW OAM show commands
  summary        Show summary of l2transport
  vc             Display VC(s) info for circuit transport over MPLS

PE-SiteA#sh mpls l2 vc

Local intf     Local circuit              Dest address    VC ID      Status
-------------  -------------------------- --------------- ---------- ----------
Fa0/0          Ethernet                   200.0.0.1       100        ADMIN DOWN


PE-SiteA#sh ip int brief
Interface              IP-Address      OK? Method Status                Protocol
FastEthernet0/0        unassigned      YES NVRAM  administratively down down
FastEthernet2/0        10.0.0.1        YES NVRAM  up                    up
GigabitEthernet3/0     unassigned      YES NVRAM  administratively down down
FastEthernet4/0        unassigned      YES NVRAM  administratively down down
Serial5/0              unassigned      YES NVRAM  administratively down down
Serial5/1              unassigned      YES NVRAM  administratively down down
Serial5/2              unassigned      YES NVRAM  administratively down down
Serial5/3              unassigned      YES NVRAM  administratively down down
FastEthernet6/0        unassigned      YES NVRAM  administratively down down
FastEthernet6/1        unassigned      YES NVRAM  administratively down down
Loopback0              50.0.0.1        YES NVRAM  up                    up
PE-SiteA#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
PE-SiteA(config)#interface fa0/0
PE-SiteA(config-if)#no shut
PE-SiteA(config-if)#
*Jan 29 23:08:46.843: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Jan 29 23:08:47.843: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
PE-SiteA(config-if)#end

PE-SiteA#sh
*Jan 29 23:08:54.567: %SYS-5-CONFIG_I: Configured from console by console
PE-SiteA#sh mpl
PE-SiteA#sh mpls l2 vc 100

Local intf     Local circuit              Dest address    VC ID      Status
-------------  -------------------------- --------------- ---------- ----------
Fa0/0          Ethernet                   200.0.0.1       100        DOWN



PE-SiteA#

PE-SiteB(config)#pseudowire-class L2Link_SiteB
PE-SiteB(config-pw-class)#encapsulation mpls
*Jan 29 23:16:20.183: %SYS-5-CONFIG_I: Configured from console by console

PE-SiteB#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
PE-SiteB(config)#interface fastEthernet 4/0
PE-SiteB(config-if)#no shut
PE-SiteB(config-if)#xconnect
*Jan 29 23:16:34.287: %LINK-3-UPDOWN: Interface FastEthernet4/0, changed state to up
*Jan 29 23:16:35.295: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet4/0, changed state to up
PE-SiteB(config-if)#xconnect 50.0.0.1 100 pw-class L2Link_SiteB


PE-SiteB#sh mpls l2 vc

Local intf     Local circuit              Dest address    VC ID      Status
-------------  -------------------------- --------------- ---------- ----------
Fa4/0          Ethernet                   50.0.0.1        100        UP

PE-SiteB#


PE-SiteB#sh mpls l2transport vc 100

Local intf     Local circuit              Dest address    VC ID      Status
-------------  -------------------------- --------------- ---------- ----------
Fa4/0          Ethernet                   50.0.0.1        100        UP

PE-SiteB#


PE-SiteA#sh mpls l2 vc

Local intf     Local circuit              Dest address    VC ID      Status
-------------  -------------------------- --------------- ---------- ----------
Fa0/0          Ethernet                   200.0.0.1       100        UP

PE-SiteA#sh mpl
PE-SiteA#sh mpls l2
PE-SiteA#sh mpls l2transport vc 100

Local intf     Local circuit              Dest address    VC ID      Status
-------------  -------------------------- --------------- ---------- ----------
Fa0/0          Ethernet                   200.0.0.1       100        UP

PE-SiteA#

PE-SiteA#sh mpls l2transport vc 100 detail
Local interface: Fa0/0 up, line protocol up, Ethernet up
  Destination address: 200.0.0.1, VC ID: 100, VC status: up
    Output interface: Fa2/0, imposed label stack {203 405}
    Preferred path: not configured
    Default path: active
    Next hop: 10.0.0.2
  Create time: 00:11:28, last status change time: 00:01:42
    Last label FSM state change time: 00:01:42
  Signaling protocol: LDP, peer 200.0.0.1:0 up
    Targeted Hello: 50.0.0.1(LDP Id) -> 200.0.0.1, LDP is UP
    Status TLV support (local/remote)   : enabled/supported
      LDP route watch                   : enabled
      Label/status state machine        : established, LruRru
      Last local dataplane   status rcvd: No fault
      Last BFD dataplane     status rcvd: Not sent
      Last BFD peer monitor  status rcvd: No fault
      Last local AC  circuit status rcvd: No fault
      Last local AC  circuit status sent: No fault
      Last local PW i/f circ status rcvd: No fault
      Last local LDP TLV     status sent: No fault
      Last remote LDP TLV    status rcvd: No fault
      Last remote LDP ADJ    status rcvd: No fault
    MPLS VC labels: local 105, remote 405
    Group ID: local 0, remote 0
    MTU: local 1500, remote 1500
    Remote interface description:
  Sequencing: receive disabled, send disabled
  Control Word: On (configured: autosense)
  Dataplane:
    SSM segment/switch IDs: 4097/4096 (used), PWID: 1
  VC statistics:
    transit packet totals: receive 32, send 30
    transit byte totals:   receive 3196, send 3804
    transit packet drops:  receive 0, seq error 0, send 0

PE-SiteA#sh mpls forwarding-table
Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop
Label      Label      or Tunnel Id     Switched      interface
100        Pop Label  100.0.0.1/32     0             Fa2/0      10.0.0.2
101        Pop Label  20.0.0.0/30      0             Fa2/0      10.0.0.2
102        201        150.0.0.1/32     0             Fa2/0      10.0.0.2
103        202        30.0.0.0/30      0             Fa2/0      10.0.0.2
104        203        200.0.0.1/32     0             Fa2/0      10.0.0.2
105        No Label   l2ckt(1)         4277          Fa0/0      point2point
PE-SiteA#



PE-SiteB#sh mpls forwarding-table
Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop
Label      Label      or Tunnel Id     Switched      interface
400        Pop Label  20.0.0.0/30      0             Gi3/0      30.0.0.1
401        Pop Label  150.0.0.1/32     0             Gi3/0      30.0.0.1
402        301        100.0.0.1/32     0             Gi3/0      30.0.0.1
403        302        10.0.0.0/30      0             Gi3/0      30.0.0.1
404        303        50.0.0.1/32      0             Gi3/0      30.0.0.1
405        No Label   l2ckt(1)         4721          Fa4/0      point2point
PE-SiteB#



PE-SiteB#sh mpls l2 vc 100 detail
Local interface: Fa4/0 up, line protocol up, Ethernet up
  Destination address: 50.0.0.1, VC ID: 100, VC status: up
    Output interface: Gi3/0, imposed label stack {303 105}
    Preferred path: not configured
    Default path: active
    Next hop: 30.0.0.1
  Create time: 00:03:31, last status change time: 00:03:30
    Last label FSM state change time: 00:03:30
  Signaling protocol: LDP, peer 50.0.0.1:0 up
    Targeted Hello: 200.0.0.1(LDP Id) -> 50.0.0.1, LDP is UP
    Status TLV support (local/remote)   : enabled/supported
      LDP route watch                   : enabled
      Label/status state machine        : established, LruRru
      Last local dataplane   status rcvd: No fault
      Last BFD dataplane     status rcvd: Not sent
      Last BFD peer monitor  status rcvd: No fault
      Last local AC  circuit status rcvd: No fault
      Last local AC  circuit status sent: No fault
      Last local PW i/f circ status rcvd: No fault
      Last local LDP TLV     status sent: No fault
      Last remote LDP TLV    status rcvd: No fault
      Last remote LDP ADJ    status rcvd: No fault
    MPLS VC labels: local 405, remote 105
    Group ID: local 0, remote 0
    MTU: local 1500, remote 1500
    Remote interface description:
  Sequencing: receive disabled, send disabled
  Control Word: On (configured: autosense)
  Dataplane:
    SSM segment/switch IDs: 4097/4096 (used), PWID: 1
  VC statistics:
    transit packet totals: receive 55, send 56
    transit byte totals:   receive 5554, send 7088
    transit packet drops:  receive 0, seq error 0, send 0

SiteA#sh ip int brief | exclude down
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            192.168.10.1    YES NVRAM  up                    up  
Loopback0                  1.1.1.1         YES NVRAM  up                    up  


SiteB#sh ip int brief | exc down
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet2/0            192.168.10.2    YES NVRAM  up                    up  
Loopback0                  2.2.2.2         YES NVRAM  up                    up  

Last updated