[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

TCC Configuration Examples

This section contains configuration examples and commands you can issue to verify your Layer 2 TCC switching configuration:

Example: PPP to ATM TCC Configuration

Figure 85: TCC Interface Switching—PPP to ATM

Image g017139.gif

In Figure 85, Router A uses PPP to connect with Router B, while Router C connects with Router B through ATM. Router B acts as the Layer 2 virtual switch and transparently connects Router A to Router C.

On Router A, configure basic PPP encapsulation and any desired Layer 3 protocol families on the SONET/SDH interface.

Router A

[edit]
interfaces {
so-0/1/0 {
description "to Router B so-0/0/0";
unit 0 {
encapsulation ppp;
family inet {
address 10.1.1.1/30;
}
}
}
}

Router B acts as the virtual Layer 2 switch. Here you configure the appropriate TCC encapsulations on the corresponding interfaces. In this case, encapsulation ppp-tcc is bound to physical interface so-0/0/0, and encapsulation atm-tcc-vc-mux is placed on VC 32 of interface at-1/1/0. Because the switching occurs at Layer 2, you cannot configure IP addresses or other Layer 3 family information on these interfaces.

You also need to configure MPLS and establish the cross-connect by adding the necessary interfaces to the interface-switch statement at the [edit protocols connections] hierarchy level.

Router B

[edit]
interfaces {
so-0/0/0 {
description "to Router A so-0/1/0";
encapsulation ppp-tcc;
unit 0 {
}
at-1/1/0 {
description "to Router C at-0/3/0";
atm-options {
vpi 0 maximum-vcs 2000;
}
unit 32 {
vci 32;
encapsulation atm-tcc-vc-mux;
}
}
}
protocols {
mpls {
interface so-0/0/0.0;
interface at-1/1/0.32;
}
connections {
interface-switch PPP-to-ATM {
interface so-0/0/0.0;
interface at-1/1/0.32;
}
}
}
}

On Router C, the encapsulation option used to connect to the TCC-encapsulated ATM interface on Router B is atm-vc-mux. Since this ATM connection is switched at Layer 2 to reach the PPP link, it is transparent to Layer 3 addressing. As a result, the IP address must be configured in the same address space as Router A’s so-0/1/0 interface.

Router C

[edit]
interfaces {
at-0/3/0 {
description "to Router B at-1/1/0";
atm-options {
vpi 0 maximum-vcs 2000;
}
unit 32 {
vci 32;
encapsulation atm-vc-mux;
family inet {
address 10.1.1.2/30;
}
}
}
}

Verifying Your Work

To verify your TCC connection, use the show connections command on Router B:


user@router_b> show connections
CCC and TCC connections [Link Monitoring On]
  Legend for status (St)              Legend for connection types
  UN -- uninitialized                 if-sw:  interface switching
  NP -- not present                   rmt-if: remote interface switching
  WE -- wrong encapsulation           lsp-sw: LSP switching
  DS -- disabled
  Dn -- down                          Legend for circuit types
  -> -- only outbound conn is up      intf -- interface
  <- -- only inbound  conn is up      tlsp -- transmit LSP
  Up -- operational                   rlsp -- receive LSP
Connection/Circuit                  Type    St  Time last up     # Up trans
PPP-to-ATM                          if-sw   Up  Nov 30 08:57:53           1
  at-1/1/0.32                         intf  Up
  so-0/0/0.0                          intf  Up

Example: Frame Relay to Fast Ethernet TCC Configuration

Figure 86: TCC Interface Switching—Frame Relay to Fast Ethernet

Image g017140.gif

In the configuration example in Figure 86, Router A uses Frame Relay to connect with Router B, while Router C connects to Router B by using Fast Ethernet. Router B acts as the Layer 2 virtual switch and transparently connects Router A to Router C.

You must enable Frame Relay encapsulation on Router A at the physical interface level.

Router A

[edit]
interfaces {
so-0/1/0 {
description "to Router B so-0/0/0";
encapsulation frame-relay;
unit 600 {
point-to-point;
dlci 600;
family inet {
address 10.1.1.1/30;
}
}
}
}

Router B acts as the virtual switch. Enable the appropriate TCC encapsulations on the corresponding interfaces. In this case, configure the encapsulation frame-relay-tcc option on the logical and physical interfaces of so-0/0/0.600. Next, add the ethernet-tcc encapsulation type to the physical interface of fe-1/0/0. To enable ARP, configure the remote MAC address or IP address of Router C’s Fast Ethernet interface with the remote statement at the [edit interfaces interface-name unit 0 family tcc] hierarchy level. To enable proxy ARP, include the proxy statement at the [edit interfaces interface-name unit 0 family tcc] hierarchy level and specify the IP address of Router A.

After configuring the correct interface encapsulations, complete your cross-connect by adding both interfaces into your MPLS configuration. Include the same interfaces in the interface-switch statement at the [edit protocols connections] hierarchy level.

Router B

[edit]
interfaces {
so-0/0/0 {
description "to Router A so-0/1/0";
dce;
encapsulation frame-relay-tcc;
unit 600 {
point-to-point;
encapsulation frame-relay-tcc;
dlci 600;
}
}
fe-1/0/0 {
description "to Router C fe-0/0/0";
encapsulation ethernet-tcc;
unit 0 {
family tcc {
protocol inet
remote { # Addresses associated with the Ethernet TCC neighbor Router C.
mac-address cc:cc:cc:cc:cc:cc; # Or, specify Router C’s IP address here.
}
proxy { # Addresses associated with the other TCC neighbor—Router A.
inet-address 10.1.1.1;
}
}
}
}
}
protocols {
mpls {
interface so-0/0/0.600;
interface fe-1/0/0.0;
}
connections {
interface-switch FR-to-Ether {
interface so-0/0/0.600;
interface fe-1/0/0.0;
}
}
}

Ethernet encapsulation is the default for Router C. Because the Fast Ethernet connection is switched at Layer 2 to reach the Frame Relay link, it is transparent to Layer 3 addressing. As a result, you must configure the IP address for the fe-0/0/0 interface in the same address space as Router A’s so-0/1/0.600 interface.

Optionally, configure static ARP on the fe-0/0/0 interface if you omit the proxy statement on Router B. The arp statement must contain the IP address from interface so-0/1/0.600 on Router A and the MAC address of the Fast Ethernet interface on Router B.

Router C

[edit]
interfaces
fe-0/0/0 {
description "to Router B fe-1/0/0";
unit 0 {
family inet {
address 10.1.1.2/30 {
arp 10.1.1.1 mac bb:bb:bb:bb:bb:bb; # Configure this only if you did not
}
}
}
}

Verifying Your Work

To verify the operational status of your TCC connection, use the show connections command on Router B:


user@router_b> show connections
CCC and TCC connections [Link Monitoring On]
  Legend for status (St)              Legend for connection types
  UN -- uninitialized                 if-sw:  interface switching
  NP -- not present                   rmt-if: remote interface switching
  WE -- wrong encapsulation           lsp-sw: LSP switching
  DS -- disabled
  Dn -- down                          Legend for circuit types
  -> -- only outbound conn is up      intf -- interface
  <- -- only inbound  conn is up      tlsp -- transmit LSP
  Up -- operational                   rlsp -- receive LSP
Connection/Circuit                  Type    St  Time last up     # Up trans
FR-to-Ether                         if-sw   Up  Dec 30 09:57:23           1
  so-0/0/0.600                      intf    Up
  fe-1/0/0.0                        intf    Up

[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]