NE40E-M2K-B Cannot use ip pool with gateway unnumbered interface

Created: Oct 21, 2019 13:48:52Latest reply: Nov 12, 2019 06:12:42 222 10 0 0
  Hi-coins as reward: 0 (problem unresolved)

Hello,


Platform: NE40E-M2K-B

Version: V800R011C00SPC200 SPH006


Is there a bug with ip-pool and gateway unnumbered interface or Am I missing something?

I want to use gateway unnumbered interface to not waste too many IP addresses in IP pools.


[~rt1]ip pool test bas local

Info: It's successful to create an IP address pool

[~rt1-ip-pool-test]gateway unnumbered interface LoopBack 1

[~rt1-ip-pool-test]commit

[~rt1-ip-pool-test]section 0 10.0.0.1 10.0.0.254

 Error: Please configure the gateway first

[~rt1-ip-pool-test]



  • x
  • convention:

Featured Answers
jason_hu
Admin Created Oct 21, 2019 14:42:14 Helpful(0) Helpful(0)

Hi@fgrep
Create a non-dynamic address pool:
1.Run ip pool pool-name [ bas { local | remote } [ rui-slave ] | server ]
A non-dynamic address pool is created, and the address pool view is displayed.
Up to 4096 address pools can be configured in the system, including access-side address pools and network-side address pools. The address pool names must be unique.
2.Run gateway ip-address mask
The gateway address and mask of the pool are configured.
The gateway address and mask are used to determine whether the IP addresses in the address segments are on the same subnet as the gateway. Therefore, you must configure the gateway address and mask before configuring the address segments.
Or run gateway unnumbered interface interface-type interface-number
An unnumbered interface gateway is configured for an address pool.
Before configuring a gateway for an IP address pool, ensure that the gateway address and user addresses are on the same network segment, but the gateway address cannot be assigned to users. As a result, many IP addresses are wasted. This command allows the loopback address of the device to be used as the gateway address for all users. This prevents IP addresses from being wasted in each address pool.https://support.huawei.com/hedex/hdx.do?docid=EDOC1100109721&id=EN-US_TASK_0172373770&text=Creating%252520an%252520Address%252520Pool&lang=en
  • x
  • convention:

All Answers
LuizPuppin
LuizPuppin MVE Created Oct 21, 2019 13:56:21 Helpful(0) Helpful(0)

What is the cofiguration of Interface LoopBack 1. Can you send to us?
  • x
  • convention:

I%20have%2020%20years%20working%20with%20telecom%20market.%20On%20all%20this%20time%20I%20worked%20always%20in%20great%20projects.%20The%20biggest%20was%20the%202014%20World%20Cup%20Command%20and%20Control%20Centre%2C%20where%20I%20was%20the%20Soluction%20Architect%20and%20Implementation%20Manager%20of%20Network%20and%20security%20Solution.%0AI%20work%20with%20Huawei%20s%20products%20to%20ISP%20Market%20since%202015%20and%20in%202017%20started%20to%20present%20trainnings%20customized%20to%20this%20market%2C%20focused%20in%20BGP%20and%20MPLS%20solution.%20I%20had%20more%20than%20400%20students%20and%20more%20than%20100%20ISP%20on%20my%20classes%20on%20last%2018%20mounths.
LuizPuppin
LuizPuppin MVE Created Oct 21, 2019 13:57:16 Helpful(0) Helpful(0)

Precautions

This command is supported only on the Admin VS.

Currently, this command can be used only for the local IPv4 address pool.

If an address pool is bound to a domain, you must unbind the address pool from the domain. If the binding is not removed, you cannot configure an address pool to borrow an interface address as a gateway address, or delete or modify the configuration.

After the gateway unnumbered command is run, the configuration of the borrowed interface cannot be deleted or modified.
  • x
  • convention:

I%20have%2020%20years%20working%20with%20telecom%20market.%20On%20all%20this%20time%20I%20worked%20always%20in%20great%20projects.%20The%20biggest%20was%20the%202014%20World%20Cup%20Command%20and%20Control%20Centre%2C%20where%20I%20was%20the%20Soluction%20Architect%20and%20Implementation%20Manager%20of%20Network%20and%20security%20Solution.%0AI%20work%20with%20Huawei%20s%20products%20to%20ISP%20Market%20since%202015%20and%20in%202017%20started%20to%20present%20trainnings%20customized%20to%20this%20market%2C%20focused%20in%20BGP%20and%20MPLS%20solution.%20I%20had%20more%20than%20400%20students%20and%20more%20than%20100%20ISP%20on%20my%20classes%20on%20last%2018%20mounths.
ster
ster Created Oct 21, 2019 14:35:31 Helpful(0) Helpful(0)

Hi@fgrep
  • x
  • convention:

jason_hu
jason_hu Admin Created Oct 21, 2019 14:42:14 Helpful(0) Helpful(0)

Hi@fgrep
Create a non-dynamic address pool:
1.Run ip pool pool-name [ bas { local | remote } [ rui-slave ] | server ]
A non-dynamic address pool is created, and the address pool view is displayed.
Up to 4096 address pools can be configured in the system, including access-side address pools and network-side address pools. The address pool names must be unique.
2.Run gateway ip-address mask
The gateway address and mask of the pool are configured.
The gateway address and mask are used to determine whether the IP addresses in the address segments are on the same subnet as the gateway. Therefore, you must configure the gateway address and mask before configuring the address segments.
Or run gateway unnumbered interface interface-type interface-number
An unnumbered interface gateway is configured for an address pool.
Before configuring a gateway for an IP address pool, ensure that the gateway address and user addresses are on the same network segment, but the gateway address cannot be assigned to users. As a result, many IP addresses are wasted. This command allows the loopback address of the device to be used as the gateway address for all users. This prevents IP addresses from being wasted in each address pool.https://support.huawei.com/hedex/hdx.do?docid=EDOC1100109721&id=EN-US_TASK_0172373770&text=Creating%252520an%252520Address%252520Pool&lang=en
  • x
  • convention:

fgrep
fgrep Created Oct 21, 2019 15:25:39 Helpful(0) Helpful(0)

Posted by LuizPuppin at 2019-10-21 13:56 What is the cofiguration of Interface LoopBack 1. Can you send to us?
I don't think the loopback config has anything to do with the problem

#
interface LoopBack1
ip address 10.255.255.255 255.255.255.255
access gateway unnumbered
#

I tried with and without access gateway unnumbered and I can't configure an ip pool section with gateway unnumbered interface
  • x
  • convention:

fgrep
fgrep Created Oct 21, 2019 15:39:27 Helpful(0) Helpful(0)

Posted by jason_hu at 2019-10-21 14:42 Hi@fgrepCreate a non-dynamic address pool:1.Run ip pool pool-name [ bas { local | remote } [ rui-sla ...
Exactly ...

From my understanding of the manual you can set a gateway ip-address for each pool with different subnets OR use gateway unnumbered interface to not waste IPs.


2.Run gateway ip-address mask

Or run gateway unnumbered interface interface-type interface-number
. This command allows the loopback address of the device to be used as the gateway address for all users. This prevents IP addresses from being wasted in each address pool.

  • x
  • convention:

chenhui
chenhui Admin Created Oct 22, 2019 01:34:03 Helpful(0) Helpful(0)

Posted by fgrep at 2019-10-21 15:39 Exactly ...From my understanding of the manual you can set a gateway ip-address for each pool with ...
@fgrep hello,
yes, gateway with unnumbered interface could save IP address, but it should be pointed out the gateway ip address and the user addresses should be on the same network segment.
As you configured the loopback interface ip address with mask 32 bit, which cannot be on the same network segment with the user addresses.
you are kindly advised to modify the mask to 24.
  • x
  • convention:

fgrep
fgrep Created Oct 22, 2019 19:31:08 Helpful(0) Helpful(0)

Posted by chenhui at 2019-10-22 01:34 @fgrep hello,yes, gateway with unnumbered interface could save IP address, but it should be pointe ...
I still dont get. How could it save IP address if I have to use an IP address as a gateway in the same subnet? Thats the same as not using gateway unnumbered interface.


Anyway changing LoopBack IP to be on the same subnet doen't work.

[~rtr01]interface LoopBack 1
[~rtr01-LoopBack1]dis this
#
interface LoopBack1
 ip address 10.20.150.1 255.255.255.0
 access gateway unnumbered
#
return

[~rtr01]ip pool test bas local
Info: It's successful to create an IP address pool
[~rtr01-ip-pool-test]gateway unnumbered interface LoopBack 1
[~rtr01-ip-pool-test]commit
[~rtr01-ip-pool-test]section 0 10.20.150.2 10.20.150.254
 Error: Please configure the gateway first
[~rtr01-ip-pool-test]gateway 10.20.150.1 24
 Error: The subnet of the pool cannot be overlapped with that of interface



  • x
  • convention:

fgrep
fgrep Created Oct 22, 2019 19:43:04 Helpful(0) Helpful(0)

This is a quote from:




Usage Scenario

When you configure a gateway in an address pool, the gateway address and user address must be in the same network segment. In addition, the gateway address cannot be allocated to the user. This will waste many IP addresses. After the gateway unnumbered command is run, the loopback address of the NE40E is used as the gateway address for all user IP addresses, the gateway address and user address may not be in the same network segment preventing IP addresses from being wasted.


  • x
  • convention:

12
Back to list

Comment

Reply
You need to log in to reply to the post Login | Register

Notice 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 " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Login and enjoy all the member benefits

Login and enjoy all the member benefits

Login