Got it

PC Get Wrong IP Pool

Created: Dec 11, 2020 18:37:23Latest reply: Dec 12, 2020 01:57:10 365 2 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

DHCP Relay


PROBLEMS: PC2 get wrong subnet

I create 2 ip pools in SW1

pool20a 20.0.0.0/25

pool20b 20.0.0.128/25

the problem is, PC2 always get 20.0.0.0/25 subnet instead of 20.0.0.128/25


QUESTIONS:
1. what steps I miss

tq


Software Info:

eNSP

both switch S5700


SW1

sysname SW1
vlan batch 10 20
dhcp enable
ip pool pool20a
gateway-list 20.0.0.1
network 20.0.0.0 mask 255.255.255.128
lease day 7 hour 0 minute 0
dns-list 1.1.1.1
domain-name ngtrain.com
ip pool pool20b
gateway-list 20.0.0.129
network 20.0.0.128 mask 255.255.255.128
lease day 7 hour 0 minute 0
dns-list 1.1.1.1
domain-name ngtrain.com
interface Vlanif10
ip address 10.0.0.1 255.255.255.0
interface Vlanif20
ip address 20.0.0.1 255.255.255.128
dhcp select global
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20

ip route-static 0.0.0.0 0.0.0.0 10.0.0.2


SW2
sysname SW2
vlan batch 10 20
dhcp enable
interface Vlanif10
ip address 10.0.0.2 255.255.255.0
interface Vlanif20
ip address 20.0.0.129 255.255.255.128
dhcp select relay
dhcp relay server-ip 10.0.0.1
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20
interface GigabitEthernet0/0/2
port link-type access
port default vlan 20

ip route-static 0.0.0.0 0.0.0.0 10.0.0.1

Featured Answers

Best answer

Recommended answer

chenhui
Admin Created Dec 12, 2020 01:57:10

Hi,
You configure the vlanif 20 on SW1 in the wrong IP address.

As your configuration below:

interface Vlanif20

    ip address 20.0.0.1 255.255.255.128
    dhcp select global

the IP address of interface vlanif 20 is in the range of network 20.0.0.0/25, so that it will choose the ip pool 

pool20a as the DHCP IP pool.

View more
  • x
  • convention:

All Answers
Thanks for contacting the Huawei community! We are checking your question and will provide an answer to you shortly...
View more
  • x
  • convention:

Hi,
You configure the vlanif 20 on SW1 in the wrong IP address.

As your configuration below:

interface Vlanif20

    ip address 20.0.0.1 255.255.255.128
    dhcp select global

the IP address of interface vlanif 20 is in the range of network 20.0.0.0/25, so that it will choose the ip pool 

pool20a as the DHCP IP pool.

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.