config L2VPN Pseudowire PE-PE MPLS-TE preferred-path tunnel cisco with explicit-path enable and verifiche output l2-transport and tunnel

Home » Blog » Routing » mpls » mpls design » config L2VPN Pseudowire PE-PE MPLS-TE preferred-path tunnel cisco with explicit-path enable and verifiche output l2-transport and tunnel

config L2VPN Pseudowire PE-PE MPLS-TE preferred-path tunnel cisco with explicit-path enable and verifiche output l2-transport and tunnel

13.11 2020 | by massimiliano

Config L2VPN Pseudowire PE-PE MPLS-TE preferred-path tunnel cisco   Architettura di riferimento     Config PE Level:    PE1  PE2   […]


https://www.ingegnerianetworking.com/wp-content/uploads/2020/11/L2VPN-PW-Tunnel100-921.png

Config L2VPN Pseudowire PE-PE MPLS-TE preferred-path tunnel cisco 

 Architettura di riferimento

 

L2VPN PW Tunnel100

 

Config PE Level:

 

 PE1  PE2
 

pseudowire-class TEST

 encapsulation mpls

 preferred-path interface Tunnel100 disable-fallback

!

interface Tunnel100

 description L2VPN-PW

 ip unnumbered Loopback0

 tunnel mode mpls traffic-eng

 tunnel destination 10.0.67.238

 tunnel mpls traffic-eng priority 7 7

 tunnel mpls traffic-eng bandwidth 2000

 tunnel mpls traffic-eng path-option 10 explicit name PE2

 tunnel mpls traffic-eng path-option 20 dynamic

end

!

interface GigabitEthernet0/0/1

 description to_P1-C

 ip address 10.0.15.162 255.255.255.252

 mpls ip

 mpls label protocol ldp

 mpls traffic-eng tunnels

 ip rsvp bandwidth 500000 50000

!

interface GigabitEthernet0/0/5

 no ip address

 negotiation auto

 no keepalive

 service instance 100 ethernet

  encapsulation untagged

  xconnect 10.0.67.238 100 encapsulation mpls pw-class TEST

 !

ip explicit-path name PE2 enable

 index 1 next-address 10.0.15.161

 index 2 next-address 10.0.15.154

 index 3 next-address 10.0.15.169

!

 

pseudowire-class TEST

 encapsulation mpls

 preferred-path interface Tunnel100 disable-fallback

!

interface Tunnel100

 description PW-TESR

 ip unnumbered Loopback0

 tunnel mode mpls traffic-eng

 tunnel destination 10.0.67.237

 tunnel mpls traffic-eng priority 7 7

 tunnel mpls traffic-eng bandwidth 2000

 tunnel mpls traffic-eng path-option 10 explicit identifier 10

 tunnel mpls traffic-eng path-option 20 dynamic

!

interface GigabitEthernet0/0/2

 description to_P2-J

 mtu 1900

 ip address 10.0.15.169 255.255.255.252

 mpls ip

 mpls label protocol ldp

 mpls traffic-eng tunnels

 ip rsvp bandwidth 500000 50000

!

interface GigabitEthernet0/0/5

 description L2VPN-PW

 no ip address

 no keepalive

 service instance 100 ethernet

  encapsulation untagged

  xconnect 10.0.67.237 100 encapsulation mpls pw-class TEST

 !

ip explicit-path identifier 10 enable

 index 1 next-address 10.0.15.170

 index 2 next-address 10.0.15.153

 index 3 next-address 10.0.15.162

!

 

 

VERIFICHE STATUS PW TUNNEL100

 

From PE1

 

PE1#show int tunnel100

Tunnel100 is up, line protocol is up

  Hardware is Tunnel

  Description: L2VPN-PW

  Interface is unnumbered. Using address of Loopback0 (10.0.67.237)

  MTU 17936 bytes, BW 100 Kbit/sec, DLY 50000 usec,

     reliability 255/255, txload 1/255, rxload 1/255

  Encapsulation TUNNEL, loopback not set

  Keepalive not set

  Tunnel linestate evaluation up

  Tunnel source 10.0.67.237, destination 10.0.67.238

  Tunnel protocol/transport Label Switching

  Tunnel transmit bandwidth 8000 (kbps)

  Tunnel receive bandwidth 8000 (kbps)

  Last input never, output 02:34:03, output hang never

  Last clearing of “show interface” counters 23:34:29

  Input queue: 0/375/0/0 (size/max/drops/flushes); Total output drops: 0

 

 

PE1#show mpls traffic-eng tunnels tunnel 100

Name: L2VPN-PW                            (Tunnel100) Destination: 10.0.67.238

  Status:

    Admin: up         Oper: up     Path: valid       Signalling: connected

    path option 10, type explicit PE2 (Basis for Setup, path weight 210)

    path option 20, type dynamic

  Config Parameters:

    Bandwidth: 2000     kbps (Global)  Priority: 7  7   Affinity: 0x0/0xFFFF

    Metric Type: TE (default)

    Path-selection Tiebreaker:

    Global: not set   Tunnel Specific: not set   Effective: min-fill (default)

    Hop Limit: disabled [ignore: Explicit Path Option with all Strict Hops]

    Cost Limit: disabled

    Path-invalidation timeout: 10000 msec (default), Action: Tear

    AutoRoute: disabled LockDown: disabled Loadshare: 2000 [1000000] bw-based

    auto-bw: disabled

    Fault-OAM: disabled, Wrap-Protection: disabled, Wrap-Capable: No

  Active Path Option Parameters:

    State: explicit path option 10 is active

    BandwidthOverride: disabled  LockDown: disabled  Verbatim: disabled

  Node Hop Count: 3

  InLabel  :  –

  OutLabel : GigabitEthernet0/0/1, 24727

  Next Hop : 10.0.15.161

  RSVP Signalling Info:

       Src 10.0.67.237, Dst 10.0.67.238, Tun_Id 100, Tun_Instance 16

    RSVP Path Info:

      My Address: 10.0.15.162

      Explicit Route: 10.0.15.161 10.0.15.154 10.0.15.169 10.0.67.238

      Record   Route:   NONE

      Tspec: ave rate=2000 kbits, burst=1000 bytes, peak rate=2000 kbits

    RSVP Resv Info:

      Record   Route:   NONE

      Fspec: ave rate=2000 kbits, burst=0 bytes, peak rate=2000 kbits

  Shortest Unconstrained Path Info:

    Path Weight: 200 (TE)

    Explicit Route: 10.0.15.161 10.0.15.166 10.0.67.238

  History:

    Tunnel:

      Time since created: 23 hours, 35 minutes

      Time since path change: 2 hours, 52 minutes

      Number of LSP IDs (Tun_Instances) used: 16

    Current LSP: [ID: 16]

      Uptime: 2 hours, 52 minutes

    Prior LSP: [ID: 15]

      ID: path option unknown

      Removal Trigger: configuration changed (severe)

!

 

 

FROM PE2

 

PE2#show int tunnel100

Tunnel100 is up, line protocol is up

  Hardware is Tunnel

  Description: PW-TEST

  Interface is unnumbered. Using address of Loopback0 (10.0.67.238)

  MTU 17936 bytes, BW 100 Kbit/sec, DLY 50000 usec,

     reliability 255/255, txload 1/255, rxload 1/255

  Encapsulation TUNNEL, loopback not set

  Keepalive not set

  Tunnel linestate evaluation up

  Tunnel source 10.0.67.238, destination 10.0.67.237

  Tunnel protocol/transport Label Switching

  Tunnel transmit bandwidth 8000 (kbps)

  Tunnel receive bandwidth 8000 (kbps)

  Last input never, output 02:35:26, output hang never

  Last clearing of “show interface” counters 5d04h

  Input queue: 0/375/0/0 (size/max/drops/flushes); Total output drops: 0

!

 

PE2#show mpls traffic-eng tunnels tunnel 100

Name: PW-TEST                             (Tunnel100) Destination: 10.0.67.237

  Status:

    Admin: up         Oper: up     Path: valid       Signalling: connected

    path option 10, type explicit 10 (Basis for Setup, path weight 210)

    path option 20, type dynamic

  Config Parameters:

    Bandwidth: 2000     kbps (Global)  Priority: 7  7   Affinity: 0x0/0xFFFF

    Metric Type: TE (default)

    Path-selection Tiebreaker:

    Global: not set   Tunnel Specific: not set   Effective: min-fill (default)

    Hop Limit: disabled [ignore: Explicit Path Option with all Strict Hops]

    Cost Limit: disabled

    Path-invalidation timeout: 10000 msec (default), Action: Tear

    AutoRoute: disabled LockDown: disabled Loadshare: 2000 [1000000] bw-based

    auto-bw: disabled

    Fault-OAM: disabled, Wrap-Protection: disabled, Wrap-Capable: No

  Active Path Option Parameters:

    State: explicit path option 10 is active

    BandwidthOverride: disabled  LockDown: disabled  Verbatim: disabled

  Node Hop Count: 3

  InLabel  :  –

  OutLabel : GigabitEthernet0/0/2, 343808

  Next Hop : 10.0.15.170

  RSVP Signalling Info:

       Src 10.0.67.238, Dst 10.0.67.237, Tun_Id 100, Tun_Instance 3691

    RSVP Path Info:

      My Address: 10.0.15.169

      Explicit Route: 10.0.15.170 10.0.15.153 10.0.15.162 10.0.67.237

      Record   Route:   NONE

      Tspec: ave rate=2000 kbits, burst=1000 bytes, peak rate=2000 kbits

    RSVP Resv Info:

      Record   Route:   NONE

      Fspec: ave rate=2000 kbits, burst=0 bytes, peak rate=2000 kbits

  Shortest Unconstrained Path Info:

    Path Weight: 200 (TE)

    Explicit Route: 10.0.15.165 10.0.15.162 10.0.67.237

  History:

    Tunnel:

      Time since created: 5 days, 4 hours, 10 minutes

      Time since path change: 22 hours, 50 minutes

      Number of LSP IDs (Tun_Instances) used: 3691

    Current LSP: [ID: 3691]

      Uptime: 22 hours, 50 minutes

    Prior LSP: [ID: 3648]

      ID: path option unknown

      Removal Trigger: tunnel shutdown

 

 

 

VERIFICA STATUS L2TRASPORT-VC

 

FROM PE1

 

PE1#show mpls l2transport vc 100

 

Local intf     Local circuit              Dest address    VC ID      Status

————-  ————————– ————— ———- ———-

Gi0/0/5        Ethernet:100               10.0.67.238     100        UP

 

 

R-MPLS-RMN-TEST-1#show mpls l2transport vc 100 detail

Local interface: Gi0/0/5 up, line protocol up, Ethernet:100 up

  Destination address: 10.0.67.238, VC ID: 100, VC status: up

    Output interface: Tu100, imposed label stack {24727 216}

    Preferred path: Tunnel100,  active

    Default path: disabled

    Next hop: point2point

  Create time: 1d00h, last status change time: 00:30:37

    Last label FSM state change time: 04:12:19

  Signaling protocol: LDP, peer 10.0.67.238:0 up

    Targeted Hello: 10.0.67.237(LDP Id) -> 10.0.67.238, LDP is UP

    Graceful restart: configured and enabled

    Non stop routing: configured and not enabled

    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 217, remote 216

    Group ID: local 11, remote 11

    MTU: local 1500, remote 1500

    Remote interface description: L2VPN-PW

  Sequencing: receive disabled, send disabled

  Control Word: On (configured: autosense)

  SSO Descriptor: 10.0.67.238/100, local label: 217

  Dataplane:

    SSM segment/switch IDs: 4331/4321 (used), PWID: 4

  VC statistics:

    transit packet totals: receive 3308, send 1810

    transit byte totals:   receive 706058, send 244058

!

 

 

FROM PE2

 

PE2#show mpls l2transport vc 100

 

Local intf     Local circuit              Dest address    VC ID      Status

————-  ————————– ————— ———- ———-

Gi0/0/5        Ethernet:100               10.0.67.237     100        UP

 

 

PE2#show mpls l2transport vc 100 detail

Local interface: Gi0/0/5 up, line protocol up, Ethernet:100 up

  Destination address: 10.0.67.237, VC ID: 100, VC status: up

    Output interface: Tu100, imposed label stack {343808 217}

    Preferred path: Tunnel100,  active

    Default path: disabled

    Next hop: point2point

  Create time: 5d04h, last status change time: 00:32:39

    Last label FSM state change time: 1d00h

  Signaling protocol: LDP, peer 10.0.67.237:0 up

    Targeted Hello: 10.0.67.238(LDP Id) -> 10.0.67.237, LDP is UP

    Graceful restart: configured and enabled

    Non stop routing: configured and not enabled

    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 216, remote 217

    Group ID: local 11, remote 11

    MTU: local 1500, remote 1500

    Remote interface description:

  Sequencing: receive disabled, send disabled

  Control Word: On (configured: autosense)

  SSO Descriptor: 10.0.67.237/100, local label: 216

  Dataplane:

    SSM segment/switch IDs: 4323/4105 (used), PWID: 2

  VC statistics:

    transit packet totals: receive 5235, send 9987

    transit byte totals:   receive 804080, send 1797932

    transit packet drops:  receive 0, seq error 0, send 0

 

 

 

VERIFICA STATUS MPLS FORWARDING TABLE

 

FROM PE1

 

PE1#show mpls forwarding-table interface tunnel100 detail

Local      Outgoing    Prefix               Bytes Label   Outgoing   Next Hop

Label      Label         or Tunnel Id     Switched        interface

234        Pop Label  100/1[TE-Bind]   0                  Tu100      point2point

        MAC/Encaps=14/18, MRU=1500, Label Stack{24727}, via Gi0/0/1

        4C710D31489CF80F6F58C6018847 06097000

        No output feature configured

 

 

PE1#show mpls traffic-eng tunnels

P2P TUNNELS/LSPs:

Name: L2VPN-PW                            (Tunnel100) Destination: 10.0.67.238

  Status:

    Admin: up         Oper: up     Path: valid       Signalling: connected

    path option 10, type explicit PE2 (Basis for Setup, path weight 210)

    path option 20, type dynamic

  Config Parameters:

    Bandwidth: 2000     kbps (Global)  Priority: 7  7   Affinity: 0x0/0xFFFF

    Metric Type: TE (default)

    Path-selection Tiebreaker:

      Global: not set   Tunnel Specific: not set   Effective: min-fill (default)

    Hop Limit: disabled [ignore: Explicit Path Option with all Strict Hops]

    Cost Limit: disabled

    Path-invalidation timeout: 10000 msec (default), Action: Tear

    AutoRoute: disabled LockDown: disabled Loadshare: 2000 [1000000] bw-based

    auto-bw: disabled

    Fault-OAM: disabled, Wrap-Protection: disabled, Wrap-Capable: No

  Active Path Option Parameters:

    State: explicit path option 10 is active

    BandwidthOverride: disabled  LockDown: disabled  Verbatim: disabled

  Node Hop Count: 3

  InLabel  :  –

  OutLabel : GigabitEthernet0/0/1, 24727

  Next Hop : 10.0.15.161

  RSVP Signalling Info:

       Src 10.0.67.237, Dst 10.0.67.238, Tun_Id 100, Tun_Instance 16

    RSVP Path Info:

      My Address: 10.0.15.162

      Explicit Route: 10.0.15.161 10.0.15.154 10.0.15.169 10.0.67.238

      Record   Route:   NONE

      Tspec: ave rate=2000 kbits, burst=1000 bytes, peak rate=2000 kbits

    RSVP Resv Info:

      Record   Route:   NONE

      Fspec: ave rate=2000 kbits, burst=0 bytes, peak rate=2000 kbits

  History:

    Tunnel:

      Time since created: 1 days, 1 hours, 2 minutes

      Time since path change: 4 hours, 19 minutes

      Number of LSP IDs (Tun_Instances) used: 16

    Current LSP: [ID: 16]

      Uptime: 4 hours, 19 minutes

    Prior LSP: [ID: 15]

      ID: path option unknown

      Removal Trigger: configuration changed (severe)

!

 

 

FROM P1-C (P_ROUTER)

 

P1-C#show mpls traffic-eng tunnels

 

# Tunnel PE1 to PE2

LSP Tunnel 10.0.67.237 100 [16] is signalled, Signaling State: up

  Tunnel Name: L2VPN-PW Tunnel Role: Mid

  InLabel: GigabitEthernet0/0/0/4, 24727

  OutLabel: TenGigE0/0/0/0, 347248

  Signalling Info:

    Src 10.0.67.237 Dst 10.0.67.238, Tun ID 100, Tun Inst 16, Ext ID 10.0.67.237

    Router-IDs: upstream   10.0.67.237

                local      10.0.35.248

                downstream 10.0.0.243

    Bandwidth: 2000 kbps (CT0) Priority:  7  7 DSTE-class: 0

    Soft Preemption: None

    SRLGs: not collected

    Path Info:

      Incoming Address: 10.0.15.161

      Incoming:

      Explicit Route:

        Strict, 10.0.15.161

        Strict, 10.0.15.154

        Strict, 10.0.15.169

        Strict, 10.0.67.238

      Outgoing:

        Explicit Route:

          Strict, 10.0.15.154

          Strict, 10.0.15.169

          Strict, 10.0.67.238

      Record Route: Disabled

      Tspec: avg rate=2000 kbits, burst=1000 bytes, peak rate=2000 kbits

      Session Attributes: Local Prot: Not Set, Node Prot: Not Set, BW Prot: Not Set

                          Soft Preemption Desired: Not Set

    Resv Info: None

      Record Route: Disabled

      Fspec: avg rate=2000 kbits, burst=1000 bytes, peak rate=2000 kbits

 

 

# Tunnel PE2 to PE1

LSP Tunnel 10.0.67.238 100 [3691] is signalled, Signaling State: up

  Tunnel Name: PW-TEST Tunnel Role: Mid

  InLabel: TenGigE0/0/0/0, 24791

  OutLabel: GigabitEthernet0/0/0/4, implicit-null

  Signalling Info:

    Src 10.0.67.238 Dst 10.0.67.237, Tun ID 100, Tun Inst 3691, Ext ID 10.0.67.238

    Router-IDs: upstream   10.0.0.243

                local      10.0.35.248

                downstream 10.0.67.237

    Bandwidth: 2000 kbps (CT0) Priority:  7  7 DSTE-class: 0

    Soft Preemption: None

    SRLGs: not collected

    Path Info:

      Incoming Address: 10.0.15.153

      Incoming:

      Explicit Route:

        Strict, 10.0.15.153

        Strict, 10.0.15.162

        Strict, 10.0.67.237

      Outgoing:

        Explicit Route:

          Strict, 10.0.15.162

          Strict, 10.0.67.237

      Record Route: Disabled

      Tspec: avg rate=2000 kbits, burst=1000 bytes, peak rate=2000 kbits

      Session Attributes: Local Prot: Not Set, Node Prot: Not Set, BW Prot: Not Set

                          Soft Preemption Desired: Not Set

    Resv Info: None

      Record Route: Disabled

      Fspec: avg rate=2000 kbits, burst=1000 bytes, peak rate=2000 kbits

Displayed 0 (of 0) heads, 2 (of 2) midpoints, 0 (of 0) tails

Displayed 0 up, 0 down, 0 recovering, 0 recovered heads

 

 

FROM PE2

 

PE2#show mpls forwarding-table interface tunnel100 detail

Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop

Label      Label      or Tunnel Id     Switched      interface

372        Pop Label  100/1[TE-Bind]   0             Tu100      point2point

        MAC/Encaps=14/18, MRU=1900, Label Stack{343808}, via Gi0/0/2

        001DB5F91041F80F6F4BD3028847 53F00000

        No output feature configured

 

 

PE2#show mpls traffic-eng tunnels

P2P TUNNELS/LSPs:

Name: PW-TEST                             (Tunnel100) Destination: 10.0.67.237

  Status:

    Admin: up         Oper: up     Path: valid       Signalling: connected

    path option 10, type explicit 10 (Basis for Setup, path weight 210)

    path option 20, type dynamic

  Config Parameters:

    Bandwidth: 2000     kbps (Global)  Priority: 7  7   Affinity: 0x0/0xFFFF

    Metric Type: TE (default)

    Path-selection Tiebreaker:

      Global: not set   Tunnel Specific: not set   Effective: min-fill (default)

    Hop Limit: disabled [ignore: Explicit Path Option with all Strict Hops]

    Cost Limit: disabled

    Path-invalidation timeout: 10000 msec (default), Action: Tear

    AutoRoute: disabled LockDown: disabled Loadshare: 2000 [1000000] bw-based

    auto-bw: disabled

    Fault-OAM: disabled, Wrap-Protection: disabled, Wrap-Capable: No

  Active Path Option Parameters:

    State: explicit path option 10 is active

    BandwidthOverride: disabled  LockDown: disabled  Verbatim: disabled

  Node Hop Count: 3

  InLabel  :  –

  OutLabel : GigabitEthernet0/0/2, 343808

  Next Hop : 10.0.15.170

  RSVP Signalling Info:

       Src 10.0.67.238, Dst 10.0.67.237, Tun_Id 100, Tun_Instance 3691

    RSVP Path Info:

      My Address: 10.0.15.169

      Explicit Route: 10.0.15.170 10.0.15.153 10.0.15.162 10.0.67.237

      Record   Route:   NONE

      Tspec: ave rate=2000 kbits, burst=1000 bytes, peak rate=2000 kbits

    RSVP Resv Info:

      Record   Route:   NONE

      Fspec: ave rate=2000 kbits, burst=0 bytes, peak rate=2000 kbits

  History:

    Tunnel:

      Time since created: 5 days, 5 hours, 42 minutes

      Time since path change: 1 days, 21 minutes

      Number of LSP IDs (Tun_Instances) used: 3691

    Current LSP: [ID: 3691]

      Uptime: 1 days, 21 minutes

    Prior LSP: [ID: 3648]

      ID: path option unknown

      Removal Trigger: tunnel shutdown

LSP Tunnel L2VPN-PW is signalled, connection is up

  InLabel  : GigabitEthernet0/0/2, implicit-null

  Prev Hop : 10.0.15.170

  OutLabel :  –

  RSVP Signalling Info:

       Src 10.0.67.237, Dst 10.0.67.238, Tun_Id 100, Tun_Instance 16

    RSVP Path Info:

      My Address: 10.0.67.238

      Explicit Route:  NONE

      Record   Route:   NONE

      Tspec: ave rate=2000 kbits, burst=1000 bytes, peak rate=2000 kbits

    RSVP Resv Info:

      Record   Route:   NONE

      Fspec: ave rate=2000 kbits, burst=0 bytes, peak rate=2000 kbits

 

 

Torna in alto