217
Configuring an IP address for an interface
Make sure that an IP unnumbered HDLC interface has a route to the remote end. When you
configure the route, follow these guidelines:
• If you use a routing protocol, make sure the learned route has a mask longer than the borrowed
IP address, because route lookup is based on the longest match.
• If you configure a static route and the borrowed IP network mask is 32 bits long, the static route
must use a mask shorter than the borrowed IP address.
• If you configure a static route, and the mask of the borrowed IP address is shorter than 32 bits,
the static route must use a mask longer than the borrowed IP address.
To configure an IP address for an interface:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enter interface view.
interface
interface-type
interface-number
N/A
3. Configure an IP address for the
interface.
• Assign an IP address to the
interface:
ip address ip-address { mask |
mask-length } [ sub ]
• Configure the interface as an IP
unnumbered interface to borrow the
IP address of the specified interface:
ip address unnumbered interface
interface-type interface-number
Use either method.
By default, no IP
address is assigned to
an interface, and an
interface does not
borrow the IP address
of any other interface.
For more information about interface IP address configuration, see HPE FlexNetwork MSR Router
Series Comware 5 Layer 3—IP Services Configuration Guide.
Configuring the link status polling interval
HDLC can regularly check link status. The link status polling interval is user configurable. It is a good
practice to set the same interval for the two ends of a link. Setting the link status polling interval to 0
disables link status check. If the network has a long delay or is experiencing congestion, you can
increase the polling interval to avoid network flappings.
To configure the link status polling interval:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enter interface view.
interface
interface-type
interface-number
N/A
3. Configure the link status
polling interval.
timer hold
seconds
Optional.
10 seconds by default.