Tuesday, July 28, 2015

GNS3 MPLS Xconnect



Setup Components

The setup mainly consists of GNS3 integrated with VmWare workstation that runs CSR1000v

Basic Configuration

CSR1
interface loopback0
ip address 1.1.1.1 255.255.255.255

interface GigabitEthernet1
no shutdown
ip address 192.168.12.1 255.255.255.0
mpls ip

interface GigabitEthernet2
no ip address

mpls label protocol ldp
mpls ldp router-id loopback 0 force

router ospf 1
router-id 1.1.1.1
network 1.1.1.1 0.0.0.0 area 0
network 192.168.12.1 0.0.0.0 area 0

CSR2
interface loopback0
ip address 3.3.3.3 255.255.255.255

interface GigabitEthernet1
no shutdown
ip address 192.168.23.3 255.255.255.0
mpls ip

interface GigabitEthernet2
no ip address

mpls label protocol ldp
mpls ldp router-id loopback 0 force

router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 192.168.23.3 0.0.0.0 area 0

CE1
interface FastEthernet1/1
switchport trunk encapsulation dot1q
switchport mode ttrunk

CE2
interface FastEthernet1/1
switchport trunk encapsulation dot1q
switchport mode ttrunk


Xconnect Configuration

Under the sub-interface

CSR1
interface GigabitEthernet2
 no ip address
 negotiation auto

interface GigabitEthernet2.15
 encapsulation dot1Q 15
 xconnect 3.3.3.3 15 encapsulation mpls

CSR2
interface GigabitEthernet2
 no ip address
 negotiation auto

interface GigabitEthernet2.15
 encapsulation dot1Q 15
 xconnect 1.1.1.1 15 encapsulation mpls

CE1
vlan 15

interface vlan 15
ip address 192.168.15.3 255.255.255.0

CE2
vlan 15
interface vlan 15
ip address 192.168.15.4 255.255.255.0

Verification

CSR1#show xconnect interface gigabitEthernet 2.15 detail
Legend:    XC ST=Xconnect State  S1=Segment1 State  S2=Segment2 State
  UP=Up       DN=Down            AD=Admin Down      IA=Inactive
  SB=Standby  HS=Hot Standby     RV=Recovering      NH=No Hardware

XC ST  Segment 1                         S1 Segment 2                         S2
------+---------------------------------+--+---------------------------------+--
UP pri   ac Gi2.15:15(Eth VLAN)          UP mpls 3.3.3.3:15                   UP
            Interworking: ethernet               Local VC label 19
                                                 Remote VC label 19

CSR1#show xconnect interface gigabitEthernet 2.15 event-trace
Legend:    XC ST=Xconnect State  S1=Segment1 State  S2=Segment2 State
  UP=Up       DN=Down            AD=Admin Down      IA=Inactive
  SB=Standby  HS=Hot Standby     RV=Recovering      NH=No Hardware

XC ST  Segment 1                         S1 Segment 2                         S2
------+---------------------------------+--+---------------------------------+--
UP pri   ac Gi2.15:15(Eth VLAN)          UP mpls 3.3.3.3:15                   UP

CE1#ping 192.168.15.4 source vlan 15

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.15.4, timeout is 2 seconds:
Packet sent with a source address of 192.168.15.3
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/49/104 ms

CSR1#sh l2vpn atom vc vcid 15 detail
pseudowire100001 is up, VC status is up PW type: Ethernet
  Create time: 01:53:07, last status change time: 01:52:53
    Last label FSM state change time: 01:52:49
  Destination address: 3.3.3.3 VC ID: 15
    Output interface: Gi1, imposed label stack {17 19}
    Preferred path: not configured
    Default path: active
    Next hop: 192.168.12.2
  Member of xconnect service Gi2.15-15, group right
    Associated member Gi2.15 is up, status is up
    Interworking type is Ethernet
    Service id: 0x6b000001
  Signaling protocol: LDP, peer 3.3.3.3:0 up
    Targeted Hello: 1.1.1.1(LDP Id) -> 3.3.3.3, LDP is UP
    Graceful restart: not configured and not enabled
    Non stop routing: not configured and not enabled
    PWid FEC (128), VC ID: 15
    Status TLV support (local/remote)         : enabled/supported
      LDP route watch                         : enabled
      Label/status state machine              : established, LruRru
      Local dataplane status received         : No fault
      BFD dataplane status received           : Not sent
      BFD peer monitor status received        : No fault
      Status received from access circuit     : No fault
      Status sent to access circuit           : No fault
      Status received from pseudowire i/f     : No fault
      Status sent to network peer             : No fault
      Status received from network peer       : No fault
      Adjacency status of remote peer         : No fault
  Sequencing: receive disabled, send disabled
  Bindings
    Parameter    Local                          Remote
    ------------ ------------------------------ ------------------------------
    Label        19                             19
    Group ID     0                              0
    Interface
    MTU          1500                           1500
    Control word on (configured: autosense)     on
    PW type      Ethernet                       Ethernet
    VCCV CV type 0x02                           0x02
                   LSPV [2]                       LSPV [2]
    VCCV CC type 0x07                           0x07
                   CW [1], RA [2], TTL [3]       CW [1], RA [2], TTL [3]
    Status TLV   enabled                        supported
  SSO Descriptor: 3.3.3.3/15, local label: 19
  Dataplane:
    SSM segment/switch IDs: 4102/4101 (used), PWID: 1
  Rx Counters
    58 input transit packets, 4925 bytes
    1 drops, 0 seq err
  Tx Counters
    3444 output transit packets, 310987 bytes
    0 drops

Under the pseudowire

Configuration

CSR1
interface pseudowire60
 encapsulation mpls
 neighbor 3.3.3.3 60

interface GigabitEthernet2
 no ip address
 negotiation auto
 service instance 60 ethernet
  encapsulation dot1q 60

l2vpn xconnect context XCONN1
 member GigabitEthernet2 service-instance 60
 member pseudowire60

CSR2
interface pseudowire60
 encapsulation mpls
 neighbor 1.1.1.1 60

interface GigabitEthernet2
 no ip address
 negotiation auto
 service instance 60 ethernet
  encapsulation dot1q 60

l2vpn xconnect context XCONN1
 member GigabitEthernet2 service-instance 60
 member pseudowire60

CE1
vlan 60

interface vlan 60
ip address 172.16.60.3 255.255.255.0

CE2
vlan 60
interface vlan 60
ip address 172.16.60.4 255.255.255.0

Verification

CSR1#sh xconnect interface gigabitEthernet 2 detail
Legend:    XC ST=Xconnect State  S1=Segment1 State  S2=Segment2 State
  UP=Up       DN=Down            AD=Admin Down      IA=Inactive
  SB=Standby  HS=Hot Standby     RV=Recovering      NH=No Hardware

XC ST  Segment 1                         S1 Segment 2                         S2
------+---------------------------------+--+---------------------------------+--
UP pri   ac Gi2:60(Eth VLAN)             UP mpls 3.3.3.3:60                   UP
            Interworking: ethernet               Local VC label 21
                                                 Remote VC label 21

CSR1#sh xconnect interface gigabitEthernet 2 event-trace
Legend:    XC ST=Xconnect State  S1=Segment1 State  S2=Segment2 State
  UP=Up       DN=Down            AD=Admin Down      IA=Inactive
  SB=Standby  HS=Hot Standby     RV=Recovering      NH=No Hardware

XC ST  Segment 1                         S1 Segment 2                         S2
------+---------------------------------+--+---------------------------------+--
UP pri   ac Gi2:60(Eth VLAN)             UP mpls 3.3.3.3:60                   UP

CE1#ping 172.16.60.4 source vlan 60

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.60.4, timeout is 2 seconds:
Packet sent with a source address of 172.16.60.3
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/99/152 ms

CSR1#sh l2vpn atom vc vcid 60 detail
pseudowire60 is up, VC status is up PW type: Ethernet
  Create time: 00:57:37, last status change time: 00:57:17
    Last label FSM state change time: 00:57:17
  Destination address: 3.3.3.3 VC ID: 60
    Output interface: Gi1, imposed label stack {17 21}
    Preferred path: not configured
    Default path: active
    Next hop: 192.168.12.2
  Member of xconnect service XCONN1
    Associated member Gi2 is up, status is up
    Interworking type is Ethernet
    Service id: 0x66000002
  Signaling protocol: LDP, peer 3.3.3.3:0 up
    Targeted Hello: 1.1.1.1(LDP Id) -> 3.3.3.3, LDP is UP
    Graceful restart: not configured and not enabled
    Non stop routing: not configured and not enabled
    PWid FEC (128), VC ID: 60
    Status TLV support (local/remote)         : enabled/supported
      LDP route watch                         : enabled
      Label/status state machine              : established, LruRru
      Local dataplane status received         : No fault
      BFD dataplane status received           : Not sent
      BFD peer monitor status received        : No fault
      Status received from access circuit     : No fault
      Status sent to access circuit           : No fault
      Status received from pseudowire i/f     : No fault
      Status sent to network peer             : No fault
      Status received from network peer       : No fault
      Adjacency status of remote peer         : No fault
  Sequencing: receive disabled, send disabled
  Bindings
    Parameter    Local                          Remote
    ------------ ------------------------------ ------------------------------
    Label        21                             21
    Group ID     0                              0
    Interface
    MTU          1500                           1500
    Control word on (configured: autosense)     on
    PW type      Ethernet                       Ethernet
    VCCV CV type 0x02                           0x02
                   LSPV [2]                       LSPV [2]
    VCCV CC type 0x07                           0x07
                   CW [1], RA [2], TTL [3]       CW [1], RA [2], TTL [3]
    Status TLV   enabled                        supported
  SSO Descriptor: 3.3.3.3/60, local label: 21
  Dataplane:
    SSM segment/switch IDs: 24592/12302 (used), PWID: 3
  Rx Counters
    24 input transit packets, 2381 bytes
    0 drops, 0 seq err
  Tx Counters
    1740 output transit packets, 164359 bytes
    0 drops

No comments:

Post a Comment