No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NE40E-M2 V800R010C10SPC500 Configuration Guide - WAN Access 01

This is NE40E-M2 V800R010C10SPC500 Configuration Guide - WAN Access
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Example for Configuring Basic HDLC Functions

Example for Configuring Basic HDLC Functions

This section provides an example for configuring HDLC to interconnect devices in typical networking scenarios.

Networking Requirements

Device A and Device B are connected using HDLC-enabled POS interfaces.

Figure 7-3 Networking diagram for HDLC
NOTE:
Interfaces 1 in this example is POS0/1/0.

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure HDLC as a link layer protocol on the interface of each Router.

  2. Assign an IP address to each interface.

Data Preparation

To complete the configuration, you need the following data:

  • IP address of the interface on Device A

  • IP address of the interface on Device B

NOTE:

The IP addresses of interfaces on Device A and Device B must be on the same network segment; otherwise, the link layer protocol cannot go Up.

Procedure

  1. Configure Device A.

    <HUAWEI> system-view
    [*HUAWEI] sysname DeviceA
    [*HUAWEI] commit
    [~DeviceA] interface pos 0/1/0
    [~DeviceA-Pos0/1/0] link-protocol hdlc
    [*DeviceA-Pos0/1/0] ip address 10.1.1.1 24
    [*DeviceA-Pos0/1/0] undo shutdown
    [*DeviceA-Pos0/1/0] quit
    [*DeviceA] commit

  2. Configure Device B.

    <HUAWEI> system-view
    [*HUAWEI] sysname DeviceB
    [*HUAWEI] commit
    [~DeviceB] interface pos 0/1/0
    [~DeviceB-Pos0/1/0] link-protocol hdlc
    [*DeviceB-Pos0/1/0] ip address 10.1.1.2 24
    [*DeviceB-Pos0/1/0] undo shutdown
    [*DeviceB-Pos0/1/0] quit
    [*DeviceB] commit

  3. Verify the configuration.

    After the configuration is complete, Device A and Device B can ping each other.

    The following example uses the command output on Device A.

    [~DeviceA] ping 10.1.1.2
      PING 10.1.1.2: 56  data bytes, press CTRL_C to break
        Reply from 10.1.1.2: bytes=56 Sequence=1 ttl=255 time=31 ms
        Reply from 10.1.1.2: bytes=56 Sequence=2 ttl=255 time=31 ms
        Reply from 10.1.1.2: bytes=56 Sequence=3 ttl=255 time=31 ms
        Reply from 10.1.1.2: bytes=56 Sequence=4 ttl=255 time=31 ms
        Reply from 10.1.1.2: bytes=56 Sequence=5 ttl=255 time=31 ms
      --- 10.1.1.2 ping statistics ---
        5 packet(s) transmitted
        5 packet(s) received
        0.00% packet loss
    round-trip min/avg/max = 31/31/31 ms

    Run the display ip routing-table command. The command output shows that routing information is correct.

    The following example uses the command output on Device A.

    [~DeviceA] display ip routing-table
    Route Flags: R - relay, D - download
    to fib, T - to vpn-instance, B - black hole route
    ------------------------------------------------------------------------------
    Routing Tables: Public
             Destinations : 2        Routes : 2
    Destination/Mask    Proto  Pre  Cost     Flags NextHop         Interface
          100.1.1.0/24  Direct 0    0             D  10.1.1.1       Pos0/1/0
          10.1.1.1/32  Direct 0    0             D  127.0.0.1       Pos0/1/0

Configuration Files

  • Device A configuration file

    #
     sysname DeviceA
    #
    interface Pos0/1/0
     undo shutdown
     link-protocol hdlc
     ip address 10.1.1.1 255.255.255.0
    #
    return
  • Device B configuration file

    #
     sysname DeviceB
    #
    interface Pos0/1/0
     undo shutdown
     link-protocol hdlc
     ip address 10.1.1.2 255.255.255.0
    #
    return
Download
Updated: 2019-01-02

Document ID: EDOC1100058399

Views: 13938

Downloads: 37

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next