Aruba & ProVision-based
1752810 Members
5930 Online
108789 Solutions
New Discussion

How to Bind mac address in HP 2920-24G-PoE+ Switch (J9727A)

 
sunilkumar19
Advisor

How to Bind mac address in HP 2920-24G-PoE+ Switch (J9727A)

How to Bind mac address in HP 2920-24G-PoE+ Switch (J9727A)

we have created 4 vlans in the switch i want to bind one particular mac address to one specific IP for one vlan which is not in DHCP range.

Please help me...Thanks id advance.

 

 

6 REPLIES 6
GuruP
Valued Contributor

Re: How to Bind mac address in HP 2920-24G-PoE+ Switch (J9727A)

Creating a dhcp-server static-bind pool in 2920 : and enabling dhcp-server in that vlan should bind IP-to-MAC , config below

dhcp-server pool "test"
   lease infinite
   static-bind ip 192.168.100.10 255.255.255.0 mac 001871-80b914
   exit

vlan 1
   name "DEFAULT_VLAN"
   no untagged 1/1
   untagged 1/2-1/48,2/1-2/48
   ip address 192.168.100.2 255.255.255.0
   dhcp-server
   exit

 

Hope this helps!

 

sunilkumar19
Advisor

Re: How to Bind mac address in HP 2920-24G-PoE+ Switch (J9727A)

Thanks For your reply.

when i ran the first line commane getting below message ?


DHCP server should be disabled before changing the configuration.

Do i really need to disable the DHCP pool before changing the confguration.

 

 

GuruP
Valued Contributor

Re: How to Bind mac address in HP 2920-24G-PoE+ Switch (J9727A)

Yes, If the DHCP-server is running then it needs to be disabled before making any changes in DHCP. To check the DHCP server status:->

HP-Stack-2920# sh dhcp-server

 Configuration and Status - DHCP Server

  DHCP Server Enabled       : No 
  DHCPv4 Operational Status : Disabled     
  Traps Enabled             : Yes
  Persistent Lease Database : No   
  Conflict Logging Enabled  : No 
  DHCP VLAN Interfaces      :          

HP-Stack-2920#

sunilkumar19
Advisor

Re: How to Bind mac address in HP 2920-24G-PoE+ Switch (J9727A)

Getting below error while trying the bind command.

Cannot configure static bind address when network address or range is configured.

can someone help on this?

 

Natunoemi
New Member

Re: How to Bind mac address in HP 2920-24G-PoE+ Switch (J9727A)

I have the same issue, can anyone help please?

static-bind ip 192.168.114.225 255.255.255.0 mac aabbcc-112233
Cannot configure static bind address when network address or range is configured.

 

this is my dhcp config

dhcp-server pool "MGMT"
default-router "192.168.114.1"
dns-server "192.168.0.3,192.168.0.4"
domain-name "test.local"
network 192.168.114.0 255.255.255.0
range 192.168.114.100 192.168.114.200
exit

E-AA
Member

Re: How to Bind mac address in HP 2920-24G-PoE+ Switch (J9727A)

Ran into this old thread seeking answer to a whole'nother thing and tought I'd be the one giving an answer for a change, in case someone else ends up here looking for the answers asked here:

In my experience, you need to define a separate pool for each individual static bind even if all other parameters (gw, dns, etc) are the same (go figure why HP chose that approach cause is a real pain the $$ if you have a bunch of statics).