03-Interface Configuration Examples

HomeSupportRoutersCR16000-F SeriesConfigure & DeployConfiguration ExamplesH3C CR16000-F Routers Configuration Examples-R795x-6W10003-Interface Configuration Examples
01-H3C_POS_Interface_Configuration_Examples
Title Size Download
01-H3C_POS_Interface_Configuration_Examples 95.35 KB

 

H3C POS Interface Configuration Examples

 

 

 

 

 

 

 

 

.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Software version: Release 7951P01

Document version: 6W100-20200625

 

Copyright © 2020 New H3C Technologies Co., Ltd. All rights reserved.

No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of New H3C Technologies Co., Ltd.

Except for the trademarks of New H3C Technologies Co., Ltd., any trademarks that may be mentioned in this document are the property of their respective owners.

The information in this document is subject to change without notice.



Introduction

This document provides POS interface configuration examples.

Prerequisites

The configuration examples in this document were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.

This document assumes that you have basic knowledge of POS, SDH, SONET, PPP, and HDLC.

Example: Directly connecting routers through POS interfaces that use PPP

Network configuration

As shown in Figure 1, connect Router A, Router B, and Router C with each other through POS interfaces that use PPP encapsulation. Run OSPF on the routers to implement Layer 3 connectivity. Configure the POS interfaces to meet the following requirements:

·     When the link between Router A and Router B is up, the traffic from Router A to Router B is forwarded through the path Router A > Router B.

·     Upon receiving MS-RDI signals from Router B, Router A does not immediately shut down Pos 2/2/1. Instead, Router A places the POS interface in down state if the signals keeps arriving within 100 milliseconds.

·     When Pos 2/2/1 on Router A goes down, the traffic from Router A to Router B switches to the path Router A > Router C > Router B.

Figure 1 Network diagram

 

Analysis

To configure Router A to take an action when an RDI alarm occurs on a POS interface, use the alarm-detect rdi action link-down command.

To configure Router A to place a Pos interface in down state only if DRI alarms keeps occurring on the interface within a period of time, set the physical state change suppression interval.

Restrictions and guidelines

When two routers are directly connected through POS interfaces, set different clock modes on the two routers.

Procedures

Configuring Device A

1.     Configure interfaces:

# Assign an IP address to Pos 2/2/1.

<RouterA> system-view

[RouterA] interface pos 2/2/1

[RouterA-Pos2/2/1] ip address 10.110.1.10 255.255.255.0

# Enable PPP encapsulation on Pos 2/2/1.

[RouterA-Pos2/2/1] link-protocol ppp

# Set the clock mode to master for Pos 2/2/1.

[RouterA-Pos2/2/1] clock master

# Configure Pos 2/2/1 to go down when an RDI alarm occurs.

[RouterA-Pos2/2/1] alarm-detect rdi action link-down

# Set the physical state change suppression interval to 100 milliseconds for Pos 2/2/1.

[RouterA-Pos2/2/1] link-delay msec 100

[RouterA-Pos2/2/1] quit

# Assign an IP address to Pos 2/2/2.

[RouterA] interface pos 2/2/2

# Enable PPP encapsulation on PoS 2/2/2.

[RouterA-Pos2/2/2] ip address 10.110.2.10 255.255.255.0

[RouterA-Pos2/2/2] link-protocol ppp

# Set the clock mode to master for Pos 2/2/2.

[RouterA-Pos2/2/2] clock master

[RouterA-Pos2/2/2] quit

2.     Configure OSPF:

[RouterA] ospf

[RouterA-ospf-1] area 0

[RouterA-ospf-1-area-0.0.0.0] network 10.110.1.0 0.0.0.255

[RouterA-ospf-1-area-0.0.0.0] network 10.110.2.0 0.0.0.255

[RouterA-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0

[RouterA-ospf-1-area-0.0.0.0] quit

[RouterA-ospf-1] quit

Configuring Device B

1.     Configure interfaces:

# Assign an IP address to Pos 2/2/1, and enable PPP encapsulation on the interface.

<RouterB> system-view

[RouterB] interface pos 2/2/1

[RouterB-Pos2/2/1] ip address 10.110.1.11 255.255.255.0

[RouterB-Pos2/2/1] link-protocol ppp

[RouterB-Pos2/2/1] quit

# Assign an IP address to Pos 2/2/2, and enable PPP encapsulation on the interface.

[RouterB] interface pos 2/2/2

[RouterB-Pos2/2/2] ip address 10.110.3.10 255.255.255.0

[RouterB-Pos2/2/2] link-protocol ppp

[RouterB-Pos2/2/2] quit

2.     Configure OSPF:

[RouterB] ospf

[RouterB-ospf-1] area 0

[RouterB-ospf-1-area-0.0.0.0] network 10.110.1.0 0.0.0.255

[RouterB-ospf-1-area-0.0.0.0] network 10.110.3.0 0.0.0.255

[RouterB-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0

[RouterB-ospf-1-area-0.0.0.0] quit

[RouterB-ospf-1] quit

Configuring Device C

1.     Configure interfaces:

# Assign an IP address to Pos 2/2/1, and enable PPP encapsulation on the interface.

<RouterC> system-view

[RouterC] interface pos 2/2/1

[RouterC-Pos2/2/1] ip address 10.110.2.11 255.255.255.0

[RouterC-Pos2/2/1] link-protocol ppp

[RouterC-Pos2/2/1] quit

# Assign an IP address to Pos 2/2/2, and enable PPP encapsulation on the interface.

[RouterC] interface pos 2/2/2

[RouterC-Pos2/2/2] ip address 10.110.3.11 255.255.255.0

[RouterC-Pos2/2/2] link-protocol ppp

# Set the clock mode to master for Pos 2/2/1.

[RouterC-Pos2/2/2] clock master

[RouterC-Pos2/2/2] quit

2.     Configure OSPF:

[RouterC] ospf

[RouterC-ospf-1] area 0

[RouterC-ospf-1-area-0.0.0.0] network 10.110.2.0 0.0.0.255

[RouterC-ospf-1-area-0.0.0.0] network 10.110.3.0 0.0.0.255

[RouterC-ospf-1-area-0.0.0.0] quit

[RouterC-ospf-1] quit

Verifying the configuration

# On Router A, display information about the routes to 2.2.2.2/32 (Router B).

<RouterA> display ip routing-table 2.2.2.2 verbose

Summary Count : 1

Destination: 2.2.2.2/32

   Protocol: OSPF             Process ID: 1

  SubProtID: 0x1                     Age: 04h20m37s

       Cost: 1                Preference: 10

      IpPre: N/A              QosLocalID: N/A

        Tag: 0                     State: Active Adv

  OrigTblID: 0x0                 OrigVrf: default-vrf

    TableID: 0x2                  OrigAs: 0

      NBRID: 0x26000002           LastAs: 0

     AttrID: 0xffffffff         Neighbor: 0.0.0.0

      Flags: 0x1008c         OrigNextHop: 10.110.1.11

      Label: NULL            RealNextHop: 10.110.1.11

    BkLabel: NULL              BkNextHop: N/A

  Tunnel ID: Invalid           Interface: Pos2/2/1

BkTunnel ID: Invalid         BkInterface: N/A

   FtnIndex: 0x0            TrafficIndex: N/A

  Connector: N/A

The output shows that the route between Router A and Router B is a direct route.

# Verify that Pos 2/1/1 on Router A goes down after Router A keeps receiving RDI signals from Router B within 100 milliseconds.

<RouterA> display interface pos 2/2/1 brief

Brief information on interfaces in route mode:

Link: ADM - administratively down; Stby - standby

Protocol: (s) - spoofing

Interface            Link   Protocol    Primary IP         Description

Pos2/2/1             DOWN   DOWN        --

# Verify that the next hop of the route to 2.2.2.2/32 (Router B) on Router A becomes Router C.

<RouterA> display ip routing-table 2.2.2.2 verbose

Summary Count : 1

Destination: 2.2.2.2/32

   Protocol: OSPF             Process ID: 1

  SubProtID: 0x1                     Age: 04h20m37s

       Cost: 2                Preference: 10

      IpPre: N/A              QosLocalID: N/A

        Tag: 0                     State: Active Adv

  OrigTblID: 0x0                 OrigVrf: default-vrf

    TableID: 0x2                  OrigAs: 0

      NBRID: 0x26000002           LastAs: 0

     AttrID: 0xffffffff         Neighbor: 0.0.0.0

      Flags: 0x1008c         OrigNextHop: 10.110.2.11

      Label: NULL            RealNextHop: 10.110.2.11

    BkLabel: NULL              BkNextHop: N/A

  Tunnel ID: Invalid           Interface: Pos2/2/2

BkTunnel ID: Invalid         BkInterface: N/A

   FtnIndex: 0x0            TrafficIndex: N/A

  Connector: N/A

Configuration files

·     Router A:

#

interface Pos2/2/1

 clock master

 link-delay msec 100

 alarm-detect rdi action link-down

 ip address 10.110.1.10 255.255.255.0

#

interface Pos2/2/2

 clock master

 ip address 10.110.1.10 255.255.255.0

#

ospf 1

 area 0.0.0.0  

  network 10.110.1.0 0.0.0.255

  network 10.110.2.0 0.0.0.255

  network 1.1.1.1 0.0.0.0

#

·     Router B:

#

interface Pos2/2/1

 ip address 10.110.1.11 255.255.255.0

#

interface Pos2/2/2

 ip address 10.110.3.10 255.255.255.0

#

ospf 1

 area 0.0.0.0  

  network 10.110.1.0 0.0.0.255

  network 10.110.3.0 0.0.0.255

  network 2.2.2.2 0.0.0.0

#

·     Router C:

#

interface Pos2/2/1

ip address 10.110.1.10 255.255.255.0

#

interface Pos2/2/2

clock master

 ip address 10.110.1.10 255.255.255.0

#

ospf 1

 area 0.0.0.0  

  network 10.110.2.0 0.0.0.255

  network 10.110.3.0 0.0.0.255

#

Example: Directly connecting routers through POS interfaces that use HDLC

Network configuration

As shown in Figure 2, configure an HDLC link bundle to increase bandwidth and enhance connection reliability between Router A and Router B.

Figure 2 Network diagram

 

Restrictions and guidelines

An interface can belong to only one HDLC link bundle at any point in time. To assign a member interface to another HDLC link bundle, remove the interface from the current HDLC link bundle first.

The link layer protocol of an interface to be assigned to an HDLC link bundle must be HDLC. After the interface is assigned to the HDLC link bundle, its link layer protocol cannot be changed.

When two routers are directly connected through POS interfaces, set different clock modes on the two routers.

Procedures

Configuring Device A

# Create HDLC link bundle interface 1 and assign an IP address to it.

<RouterA> system-view

[RouterA] interface hdlc-bundle 1

[RouterA-HDLC-bundle1] ip address 1.1.1.1 24

[RouterA-HDLC-bundle1] quit

# Set the clock mode to master for Pos 2/2/1, and enable HDLC encapsulation on the interface.

[RouterA] interface pos 2/2/1

[RouterA-Pos2/2/1] clock master

[RouterA-Pos2/2/1] link-protocol hdlc

# Assign Pos 2/2/1 to HDLC link bundle interface 1.

[RouterA-Pos2/2/1] bundle id 1

[RouterA-Pos2/2/1] quit

# Set the clock mode to master for Pos 2/2/2, and enable HDLC encapsulation on the interface.

[RouterA] interface pos 2/2/2

[RouterA-Pos2/2/2] clock master

[RouterA-Pos2/2/2] link-protocol hdlc

# Assign Pos 2/2/2 to HDLC link bundle interface 1.

[RouterA-Pos2/2/2] bundle id 1

[RouterA-Pos2/2/2] quit

Configuring Device B

# Create HDLC link bundle interface 1 and assign an IP address to it.

<RouterB> system-view

[RouterB] interface hdlc-bundle 1

[RouterB-HDLC-bundle1] ip address 1.1.1.2 24

[RouterB-HDLC-bundle1] quit

# Enable HDLC encapsulation on the interface.

[RouterB] interface pos 2/2/1

[RouterB-Pos2/2/1] link-protocol hdlc

# Assign Pos 2/2/1 to HDLC link bundle interface 1.

[RouterB-Pos2/2/1] bundle id 1

[RouterB-Pos2/2/1] quit

# Enable HDLC encapsulation on the interface.

[RouterB] interface pos 2/2/2

[RouterB-Pos2/2/2] link-protocol hdlc

# Assign Pos 2/2/2 to HDLC link bundle interface 1.

[RouterB-Pos2/2/2] bundle id 1

[RouterB-Pos2/2/2] quit

Verifying the configuration

# Verify that the bundle interfaces on Router A and Router B can ping each other.

[RouterA] ping –a 1.1.1.1 1.1.1.2

Ping 1.1.1.2 (1.1.1.2) from 1.1.1.1: 56 data bytes, press CTRL_C to break

56 bytes from 1.1.1.2: icmp_seq=0 ttl=255 time=0.000 ms

56 bytes from 1.1.1.2: icmp_seq=1 ttl=255 time=0.000 ms

56 bytes from 1.1.1.2: icmp_seq=2 ttl=255 time=0.000 ms

56 bytes from 1.1.1.2: icmp_seq=3 ttl=255 time=0.000 ms

56 bytes from 1.1.1.2: icmp_seq=4 ttl=255 time=0.000 ms

 

--- Ping statistics for 1.1.1.2 ---

5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss

round-trip min/avg/max/std-dev = 0.000/0.000/0.000/0.000 ms

# Display HDLC link bundle information on Router A and Router B. This example uses Router A.

[RouterA] display bundle hdlc-bundle 1 slot 2

Bundle: HDLC-bundle1

  Selected members: 2, Total bandwidth: 1244160 kbps

  Member              State               Bandwidth(kbps)     Priority

  Pos2/2/1            Selected            622080              32768

  Pos2/2/2            Selected            622080              32768

The output shows that HDLC bundle 1 has member interfaces Pos 2/2/1 and Pos 2/2/2 and both of the member interfaces are in Selected state.

Configuration files

·     Router A:

#

interface pos 2/2/1

 clock master

 link-protocol hdlc

 bundle id 1

#

interface pos 2/2/2

 clock master

 link-protocol hdlc

 bundle id 1

#

interface hdlc-bundle 1

 ip address 1.1.1.1 24

#

·     Router B:

#

interface pos 2/2/1

 link-protocol hdlc

 bundle id 1

#

interface pos 2/2/2

 link-protocol hdlc

 bundle id 1

#

interface hdlc-bundle 1

 ip address 1.1.1.2 24

#

Related documentation

·     H3C CR16000-F Routers Interface Command Reference-R7951P01

·     H3C CR16000-F Routers Interface Configuration Guide-R7951P01

·     H3C CR16000-F Routers Layer 2—WAN Access Command Reference-R7951P01

·     H3C CR16000-F Routers Layer 2—WAN Access Configuration Guide-R7951P01

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网