VPLS в Cisco

Материал из Xgu.ru

Перейти к: навигация, поиск
stub.png
Данная страница находится в разработке.
Эта страница ещё не закончена. Информация, представленная здесь, может оказаться неполной или неверной.

Если вы считаете, что её стоило бы доработать как можно быстрее, пожалуйста, скажите об этом.


Virtual Private LAN Service (VPLS) -- технология, которая позволяет предоставлять сервис на основе Ethernet, типа multipoint-to-multipoint поверх сетей IP или MPLS. В итоге, все соединенные сайты находятся в одном широковещательном сегменте.


Содержание

[править] Пример настройки

[править] Пример настройки на ASR1002

[править] С использованием синтаксиса L2VPN Protocol-Based CLIs

template type pseudowire VPLS
 encapsulation mpls
 mtu 8192
l2vpn vfi context VPLS_301 
 vpn id 301
 mtu 8192
 member 20.20.1.2 template VPLS
 member 20.20.1.1 template VPLS
 member 20.20.2.1 template VPLS
 member 20.20.2.2 template VPLS
 member 20.20.3.1 template VPLS
 member 20.20.3.2 template VPLS
 member 20.20.4.1 template VPLS
 member 20.20.4.2 template VPLS
bridge-domain 301 
 member GigabitEthernet0/0/2 service-instance 301
 member vfi VPLS_301

bridge-domain 3333 
 member GigabitEthernet0/0/0 service-instance 301
interface GigabitEthernet0/0/2
 description LAN to switch
 service instance 301 ethernet
  description VPLS AC VLAN 301
  encapsulation dot1q 301

[править] Просмотр информации

r1#sh mpls l2transport vc  301

Local intf     Local circuit              Dest address    VC ID      Status
-------------  -------------------------- --------------- ---------- ----------
VFI VPLS_301    vfi                        20.20.1.1       301       UP        
VFI VPLS_301    vfi                        20.20.1.2       301       UP        
VFI VPLS_301    vfi                        20.20.2.1       301       UP        
VFI VPLS_301    vfi                        20.20.2.2       301       UP        
VFI VPLS_301    vfi                        20.20.3.1       301       UP        
VFI VPLS_301    vfi                        20.20.3.2       301       UP        
VFI VPLS_301    vfi                        20.20.4.1       301       UP        
VFI VPLS_301    vfi                        20.20.4.2       301       UP        
r1#sh mpls l2transport vc  301 detail 
Local interface: VFI VPLS_301 vfi up
  Interworking type is Ethernet
  Destination address: 20.20.1.1, VC ID: 301, VC status: up
    Output interface: Gi0/0/1.2011, imposed label stack {0 23}
    Preferred path: not configured  
    Default path: active
    Next hop: 20.1.1.2
  Create time: 2d21h, last status change time: 2d11h
    Last label FSM state change time: 2d11h
  Signaling protocol: LDP, peer 20.20.1.1:0 up
    Targeted Hello: 20.20.0.1(LDP Id) -> 20.20.1.1, LDP is UP
    Graceful restart: not configured and not enabled
    Non stop routing: not 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 286, remote 23 
    Group ID: local 0, remote 0
    MTU: local 8192, remote 8192
    Remote interface description: 
    MAC Withdraw: sent:0, received:5
  Sequencing: receive disabled, send disabled
  Control Word: On (configured: autosense)
  SSO Descriptor: 20.20.1.1/301, local label: 286
  Dataplane:
    SSM segment/switch IDs: 20125/89697 (used), PWID: 12
  VC statistics:
    transit packet totals: receive 16340, send 25308
    transit byte totals:   receive 1751864, send 3576507
    transit packet drops:  receive 216, seq error 0, send 0
r1#sh xconnect all               
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  vfi VPLS_301                      UP mpls 20.20.4.1:301               UP
UP pri  vfi VPLS_301                      UP mpls 20.20.2.1:301               UP
UP pri  vfi VPLS_301                      UP mpls 20.20.2.2:301               UP
UP pri  vfi VPLS_301                      UP mpls 20.20.1.2:301               UP
UP pri  vfi VPLS_301                      UP mpls 20.20.1.1:301               UP
UP pri  vfi VPLS_301                      UP mpls 20.20.3.1:301               UP
UP pri  vfi VPLS_301                      UP mpls 20.20.3.2:301               UP
UP pri  vfi VPLS_301                      UP mpls 20.20.4.2:301               UP
UP pri   bd 301                           UP  vfi VPLS_301                    UP

r1#show l2vpn service all
Legend: St=State    XC St=State in the L2VPN Service      Prio=Priority
        UP=Up       DN=Down            AD=Admin Down      IA=Inactive
        SB=Standby  HS=Hot Standby     RV=Recovering      NH=No Hardware
        m=manually selected

  Interface          Group       Encapsulation                   Prio  St  XC St
  ---------          -----       -------------                   ----  --  -----
VPLS name: VPLS_301, State: UP
  pw100010                       VPLS_301(VFI)                    0     UP  UP   
  pw100018           core_pw     20.20.4.1:301(MPLS)              0     UP  UP   
  pw100017           core_pw     20.20.2.1:301(MPLS)              0     UP  UP   
  pw100016           core_pw     20.20.2.2:301(MPLS)              0     UP  UP   
  pw100015           core_pw     20.20.1.2:301(MPLS)              0     UP  UP   
  pw100014           core_pw     20.20.1.1:301(MPLS)              0     UP  UP   
  pw100013           core_pw     20.20.3.1:301(MPLS)              0     UP  UP   
  pw100012           core_pw     20.20.3.2:301(MPLS)              0     UP  UP   
  pw100011           core_pw     20.20.4.2:301(MPLS)              0     UP  UP   
BD name: 301, State: --
  -                              301(BD)                          0     UP  --   
  -                              VPLS_301(VFI)                    0     UP  UP   


r1#sh bridge-domain 301
Bridge-domain 301 (9 ports in all)
State: UP                    Mac learning: Enabled
Aging-Timer: 300 second(s)
    GigabitEthernet0/0/2 service instance 301
    vfi VPLS_301 neighbor 20.20.4.1 301
    vfi VPLS_301 neighbor 20.20.2.1 301
    vfi VPLS_301 neighbor 20.20.2.2 301
    vfi VPLS_301 neighbor 20.20.1.2 301
    vfi VPLS_301 neighbor 20.20.1.1 301
    vfi VPLS_301 neighbor 20.20.3.1 301
    vfi VPLS_301 neighbor 20.20.3.2 301
    vfi VPLS_301 neighbor 20.20.4.2 301
   AED MAC address    Policy  Tag       Age  Pseudoport
   0   6260.F1C6.A871 forward dynamic   299  VPLS_301.10200da
   0   E8B7.4821.DD11 forward dynamic   300  GigabitEthernet0/0/2.EFP301
   1   FFFF.FFFF.FFFF flood   static    0    OLIST_PTR:0x49450010
   0   6200.F121.0911 forward dynamic   297  VPLS_301.10200db
   0   6200.F126.E923 forward dynamic   300  VPLS_301.10200df
   0   6200.F141.F051 forward dynamic   298  VPLS_301.10200da
   0   E2B7.4422.5E63 forward dynamic   299  GigabitEthernet0/0/2.EFP301
uar-kca-r1#sh spanning-tree vlan 301

VLAN301
  Spanning tree enabled protocol rstp
  Root ID    Priority    301
             Address     1c6a.7a45.08bb
             This bridge is the root
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    301   (priority 0 sys-id-ext 301)
             Address     1c6a.7a45.08bb
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 0  

Interface           Role Sts Cost      Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi0/0/0             Desg FWD 4         128.8    P2p 
Gi0/0/2             Desg FWD 7         128.10   P2p 

[править] Дополнительная информация