Configuration procedure
(Method 1) Using main interfaces
Configure Router A:
# Assign an IP address to interface Serial 2/1/0.
<RouterA> system-view [RouterA] interface serial 2/1/0 [RouterA-Serial2/1/0] ip address 202.38.163.251 255.255.255.0
# Enable Frame Relay encapsulation on the interface.
[RouterA-Serial2/1/0] link-protocol fr
# Set the type of the interface to DCE.
[RouterA-Serial2/1/0] fr interface-type dce
# Configure a local virtual circuit.
[RouterA-Serial2/1/0] fr dlci 100
Configure Router B:
# Assign an IP address to interface Serial 2/1/0.
<RouterB> system-view [RouterB] interface serial 2/1/0 [RouterB-Serial2/1/0] ip address 202.38.163.252 255.255.255.0
# Enable Frame Relay encapsulation on the interface.
[RouterB-Serial2/1/0] link-protocol fr
# Set the type of the interface to DTE.
[RouterB-Serial2/1/0] fr interface-type dte [RouterB-Serial2/1/0] quit
(Method 2) Using subinterfaces
Configure Router A:
# Enable Frame Relay encapsulation on the interface Serial 2/1/0.
<RouterA> system-view [RouterA] interface serial 2/1/0 [RouterA-Serial2/1/0] link-protocol fr
# Set the type of the interface Serial 2/1/0 to DCE.
[RouterA-Serial2/1/0] fr interface-type dce [RouterA-Serial2/1/0] quit
# Create a subinterface Serial 2/1/0.1.
[RouterA] interface serial 2/1/0.1 p2p
# Configure the IP address and create a virtual circuit for the subinterface Serial 2/1/0.1.
[RouterA-Serial2/1/0.1] ip address 202.38.163.251 255.255.255.0 [RouterA-Serial2/1/0.1] fr dlci 100
Configure Router B:
# Enable Frame Relay encapsulation on interface Serial 2/1/0.
<RouterB> system-view [RouterB] interface serial 2/1/0 [RouterB-Serial2/1/0] link-protocol fr
# Set the type of the interface Serial 2/1/0 to DTE.
[RouterB-Serial2/1/0] fr interface-type dte [RouterB-Serial2/1/0] quit
# Create a subinterface Serial 2/1/0.1.
[RouterB] interface serial 2/1/0.1 p2p
# Configure the IP address and create a virtual circuit for the subinterface Serial 2/1/0.1.
[RouterB-Serial2/1/0.1] ip address 202.38.163.252 255.255.255.0 [RouterB-Serial2/1/0.1] fr dlci 100 [RouterB-Serial2/1/0.1] quit