Connecting LANs with a dedicated line
Network requirements
As shown in Figure 29, two routers are directly connected with serial interfaces. Router A operates in DCE mode, and Router B operates in DTE mode.
Figure 29: Network diagram
![](images/image23.png)
Configuration procedure
Method 1: On main interfaces
Configure Router A:
# Assign an IP address to interface Serial 2/0.
<RouterA> system-view [RouterA] interface serial 2/0 [RouterA-Serial2/0] ip address 202.38.163.251 255.255.255.0
# Enable frame relay on the interface and configure the interface to operate in DCE mode.
[RouterA-Serial2/0] link-protocol fr [RouterA-Serial2/0] fr interface-type dce
# Configure a local virtual circuit.
[RouterA-Serial2/0] fr dlci 100
Configure Router B:
# Assign an IP address to interface Serial 2/0.
<RouterB> system-view [RouterB] interface serial 2/0 [RouterB-Serial2/0] ip address 202.38.163.252 255.255.255.0
# Enable frame relay on the interface and configure the interface to operate in DTE mode.
[RouterB-Serial2/0] link-protocol fr [RouterB-Serial2/0] fr interface-type dte
Method 2: On subinterfaces
Configure Router A:
# Enable frame relay on interface Serial 2/0 and configure the interface to operate in DCE mode.
<RouterA> system-view [RouterA] interface serial 2/0 [RouterA-Serial2/0] link-protocol fr [RouterA-Serial2/0] fr interface-type dce [RouterA-Serial2/0] quit
# Configure the IP address and DLCI of the subinterface Serial 2/0.1.
[RouterA] interface serial 2/0.1 p2p [RouterA-Serial2/0.1] ip address 202.38.163.251 255.255.255.0 [RouterA-Serial2/0.1] fr dlci 100
Configure Router B:
# Enable frame relay on interface Serial 2/0 and configure the interface to operate in DTE mode.
<RouterB> system-view [RouterB] interface serial 2/0 [RouterB-Serial2/0] link-protocol fr [RouterB-Serial2/0] quit
# Configure IP address of the subinterface and local virtual circuit.
[RouterB] interface serial 2/0.1 p2p [RouterB-Serial2/0.1] ip address 202.38.163.252 255.255.255.0 [RouterB-Serial2/0.1] fr dlci 100