Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Configuring ATM Cell-Relay Pseudowire VPI/VCI Swapping

Starting in Junos OS Release 12.1, on MX Series routers with ATM MIC with SFP, you can configure the ATM MIC to swap the VPI value, the VCI value, or both. You can also disable swapping of the VPI or VCI values. You can opt to swap the VPI and VCI values in both directions (ingress and egress). You can also enable swapping only on the egress side. In VPC mode, only the VPI values are swapped.

You can configure the ATM MIC on the local PE router to swap only VPI values in both directions when the remote PE router does not perform any swapping. If the remote PE router performs egress swapping by default, you can configure the ATM MIC on the local PE router to swap only in the egress direction. If you want to disable swapping, you can configure both the local and remote PE router to disable swapping.

This topic includes the following tasks:

Configuring VPI Swapping on Egress and Ingress on ATM MICs

This procedure describes the steps to configure swapping on the local PE router where the ATM MIC swaps in both directions (egress and ingress). You can also explicitly disable swapping on the remote PE router.

Note: The configuration included here is specific to VPI or VCI swapping and does not include the entire ATM pseudowire configuration. For information on ATM pseudowire configuration, see Configuring ATM Cell-Relay Pseudowire

To configure the local PE router to perform swapping in both directions:

  1. To specify the VPI value as 1 on unit 1, include the vpi vpi-identifier statement at the [edit interfaces interface-name] hierarchy level.
    [edit interfaces at-0/2/2]user@host#set unit 1 vpi 1
  2. To specify the PSN identifier as 11 on unit 1, include the psn-vpi psn-vpi-identifier statement at the [edit interfaces interface-name] hierarchy level.
    [edit interfaces at-0/2/2 ]user@host#set unit 1 psn-vpi 11
  3. To specify the VPI value as 2 on unit 2, include the vpi vpi-identifier statement at the [edit interfaces interface-name] hierarchy level.
    [edit interfaces at-0/2/2]user@host#set unit 2 vpi 2
  4. To specify the PSN identifier as 11 on unit 2, include the psn-vpi psn-vpi-identifier statement at the [edit interfaces interface-name] hierarchy level.
    [edit interfaces at-0/2/2 ]user@host#set unit 2 psn-vpi 11
  5. To verify the configuration, you can issue the following operational mode command in configuration mode:
    [edit]user@host#show at-0/2/2
    ..
    unit 1{
    vpi 1;
    psn-vpi 11;
    }
    unit 2 {
    vpi 2;
    psn-vpi 11;
    }
    ..

To disable swapping by the remote PE router:

  1. To specify the VPI value as 11 on unit 1, include the vpi vpi-identifier statement at the [edit interfaces interface-name] hierarchy level.
    [edit interfaces at-0/2/2]user@host#set unit 1 vpi 11
  2. To disable swapping on the remote PE router on unit 1, include the no-vpivci-swapping statement at the [edit interfaces interface-name] hierarchy level.
    [edit interfaces at-0/2/2 ]user@host#set unit 1 no-vpivci-swapping
  3. To specify the VPI value as 11 on unit 2, include the vpi vpi-identifier statement at the [edit interfaces interface-name] hierarchy level.
    [edit interfaces at-0/2/2]user@host#set unit 2 vpi 11
  4. To disable swapping on the remote PE router on unit 2, include the no-vpivci-swapping statement at the [edit interfaces interface-name] hierarchy level.
    [edit interfaces at-0/2/2 ]user@host#set unit 2 no-vpivci-swapping
  5. To verify the configuration, you can issue the following operational mode command in configuration mode:
    [edit]user@host#show at-0/2/2
    ..
    unit 1{
    vpi 11;
    no-vpivci-swapping;
    }
    unit 2 {
    vpi 11;
    no-vpivci-swapping ;
    }
    ..

Configuring Egress Swapping on ATM MICs

If the remote PE router only performs egress swapping, you must configure the local PE router to perform egress swapping as well. This procedure describes the steps to configure egress swapping on both the local and remote PE routers.

Note: The configuration included here is specific to VPI or VCI swapping and does not include the entire ATM pseudowire configuration. For information on ATM pseudowire configuration, see Configuring ATM Cell-Relay Pseudowire

To configure the local PE router to perform egress swapping:

  1. To specify the VPI value as 1 on unit 1, include the vpi vpi-identifier statement at the [edit interfaces interface-name] hierarchy level.
    [edit interfaces at-0/2/2]user@host#set unit 1 vpi 1
  2. To specify the VPI value as 2 on unit 2, include the vpi vpi-identifier statement at the [edit interfaces interface-name] hierarchy level.
    [edit interfaces at-0/2/2]user@host#set unit 2 vpi 2
  3. To verify the configuration, you can issue the following operational mode command in configuration mode:
    [edit]user@host#show at-0/2/2
    ..
    unit 1{
    vpi 1;
    }
    unit 2 {
    vpi 2;
    }
    ..

To configure the remote PE router:

  1. To specify the VPI value as 11 on unit 1, include the vpi vpi-identifier statement at the [edit interfaces interface-name] hierarchy level:
    [edit interfaces at-0/2/2]user@host#set unit 1 vpi 11
  2. To specify the VPI value as 11 on unit 2, include the vpi vpi-identifier statement at the [edit interfaces interface-name] hierarchy level:
    [edit interfaces at-0/2/2]user@host#set unit 2 vpi 11
  3. To verify the configuration, you can issue the following operational mode command in configuration mode:
    [edit]user@host#show at-0/2/2
    ..
    unit 1{
    vpi 11;
    }
    unit 2 {
    vpi 11;
    }
    ..

Disabling Swapping on Local and Remote Provider Edge (PE) Routers

To explicitly disable swapping, you must use the no-vpivci-swapping statement. When cell relay of many VPCs and VCCs happens over the same pseudowire, it is recommended that you explicitly disable swapping. This procedure describes the steps to explicitly disable swapping on both the local and remote PE routers.

Note: The configuration included here is specific to VPI or VCI swapping and does not include the entire ATM pseudowire configuration. For information on ATM pseudowire configuration, see Configuring ATM Cell-Relay Pseudowire

To disable swapping on the local PE router:

  1. To specify the VPI value as 1 on unit 1, include the vpi vpi-identifier statement at the [edit interfaces interface-name] hierarchy level.
    [edit interfaces at-0/2/2]user@host#set unit 1 vpi 1
  2. To disable swapping, include the no-vpivci-swapping statement at the [edit interfaces interface-name] hierarchy level.
    [edit interfaces at-0/2/2]user@host#set unit 1 no-vpivci-swapping
  3. To specify the VPI value as 2 on unit 2, include the vpi vpi-identifier statement at the [edit interfaces interface-name] hierarchy level.
    [edit interfaces at-0/2/2]user@host#set unit 2 vpi 2
  4. To disable swapping, include the no-vpivci-swapping statement at the [edit interfaces interface-name] hierarchy level.
    [edit interfaces at-0/2/2]user@host#set unit 2 no-vpivci-swapping
  5. To verify the configuration, you can issue the following operational mode command in configuration mode:
    [edit]user@host#show at-0/2/2
    ..
    unit 1{
    vpi 1;
    no-vpivci-swapping
    }
    unit 2{
    vpi 2;
    no-vpivci-swapping;
    }
    ..

To disable swapping on the remote PE router:

  1. To specify the VPI value as 1 on unit 1, include the vpi vpi-identifier statement at the [edit interfaces interface-name] hierarchy level.
    [edit interfaces at-0/2/2]user@host#set unit 1 vpi 1
  2. To disable swapping on unit 1, include the no-vpivci-swapping statement at the [edit interfaces interface-name] hierarchy level.
    [edit interfaces at-0/2/2]user@host#set unit 1 no-vpivci-swapping
  3. To specify the VPI value as 2 on unit 2, include the vpi vpi-identifier statement at the [edit interfaces interface-name] hierarchy level.
    [edit interfaces at-0/2/2]user@host#set unit 2 vpi 2
  4. To disable swapping on unit 2, include the no-vpivci-swapping statement at the [edit interfaces interface-name] hierarchy level.
    [edit interfaces at-0/2/2]user@host#set unit 2 no-vpivci-swapping
  5. To verify the configuration, you can issue the following operational mode command in configuration mode:
    [edit]user@host#show at-0/2/2
    ..
    unit 1{
    vpi 1;
    no-vpivci-swapping;
    }
    unit 2 {
    vpi 2;
    no-vpivci-swapping;
    }
    ..

Published: 2012-12-07

Supported Platforms

Published: 2012-12-07