Got it

ip address unnumbered interface explain

Latest reply: Jun 24, 2019 17:26:56 394 3 0 0 0

When you use IP address unnumbered, configure a static route or dynamic routing protocol so that the interface borrowing the interface can learn about the route to the remote end.

When an interface borrows an IP address from another interface, adhere to the following rules:
  • If you use a dynamic routing protocol, ensure the length of the learned route mask is longer than that of the lender's IP address mask, because the NE80E/40E uses the longest match rule when searching for routes.

  • If you use a static route and the IP address of the lender uses a 32-bit mask, the length of the static route mask must be shorter than 32 bits.

  • If you use a static route and the IP address of the lender uses a mask less than 32 bits, the length of the static route mask must be longer than that of the lender's IP address mask.

The above manuals is obtained from HUAWEI support docs.

Can someone give example of the STATIC ROUTE .. what is mean by IP address use 32 bit mask? is that x.x.x.x/32 ? and the length of static route mask LONG and SHORT means.


Hi,
It is pretty simple and is applicable especially to situations when you have a rout to the subnet that is part of the network assinned to the borrowing interface.
Suppose you have Tunnel int that's borrowing IP addr from Loopback int and that Loopback int has IP address 10.0.0.1/16 (so the length of the int IP addr mask is 16 or 255.255.0.0)
If you need a route that leads out of that Tunnel int towards, let's say, subnetwork of the address of 10.0.1.0 so it should have a mask of the length > 16 bits , in this instance /24 or 255.255.255.0 , learnt through routing protocol or a static route
For example (static) : ip route-static 10.0.1.0 24 Tunnel 0/0/1
/24 is longer mask than /16 so route selection algorithm prefers the path and sends packets to 10.0.1.0/24 (subnet of 10.0.0.0/16) out of the Tunnel rather than to Loopback int .

In case of borrowing from int that has a 32 bit mask (the longest possible for IPv4), for example Loopback 1 with addr of 20.0.0.1/32 (or 255.255.255.255) it's sort of the opposite.
IP route to the subnet leading through the interface that's borrowing from that Loopback should have shorter mask than /32 because it's the only sensible value. That way path to the, for example, 20.0.0.0/24 (shorter than /32) will lead through Tunnel, but path to 20.0.0.1/32 will lead to the Loopback int as it should do.

It's all quite natural - the longer the mask the better match for routing algorithm.

And yes, shorter mens exactly less bits in mask binary representation for example 255.255.240.0 ( /20) is shorter than 255.255.255.0 (/24) so /24 is better match than /20
View more
  • x
  • convention:

how is this one?
64827070_830172290686679_38419 ..


View more

This article contains more resources

You need to log in to download or view. No account? Register

x
  • x
  • convention:

It's exactly as it is has been explained.
Loopback (lending interface) has 32 bit long address mask so the network off the s1/0/0 has shorter mask.
The other end of the link can be reached with the static like
ip route-static 10.1.1.0 24 s1/0/0
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.