Wired Intelligent Edge (Campus Switching and Routing)

Reply
Highlighted
New Contributor

ArubaOS-CX DHCP-Server Initial Setup

I'm having some trouble getting DHCP-Server up and running on an OS-CX switch, a 6405. Running OS 10.05.0001.

 

I lend my experience from AOS/Comware, where a dhcp pool is defined then attached to a VLAN/Interface.

 

In OS-CX, that construct seems to have moved to VRF (at least what I've learned from the docs).

 

I've created a dhcp-server for the default vrf (where a few VLANs live that I want to offer DHCP), created a pool with appropriate options, but clients are not getting addresses in said VLAN.

 

Here are some config snippets:

 

 

dhcp-server vrf default
pool vlan965
range 10.207.5.201 10.207.5.220 prefix-len 24
default-router 10.207.5.1
lease 00:10:00
exit
authoritative
enable

interface vlan 965
ip address 10.207.5.1/24

interface 1/5/2
no shutdown
no routing
vlan access 965

 

 

There is a ToR switch downstream, along with a host and VM. The VM can communicate with a static IP, but a second NIC will not get a DHCP offer.

 

I feel like I'm missing that "attach dhcp to vlan" bit like Comware/AOS.

 

I don't want to separate these VLANs into seperate VRFs just to run DHCP on the switch. Is there another way to accomplish this? Is VRF the only way?

 

Thanks!

 


Accepted Solutions
Highlighted
New Contributor

Re: ArubaOS-CX DHCP-Server Initial Setup

OK, here is the latest config:

 

 

VRF Name           : default
DHCP Server        : enabled
Operational State  : operational
Authoritative Mode : true

Pool Name          : vlan965
Lease Duration     : 00:10:00

DHCP dynamic IP allocation
----------------------------
Start-IP-Address           End-IP-Address             Prefix-Length
-----------------          ---------------            -------------
10.207.5.201               10.207.5.251               24
10.207.5.201               10.207.5.220               *


DHCP Server options
---------------------
***************************************************
Note:DHCP Server well known option number mapping:
default-router(3), Dns-server(6), Domain-name(15),
Netbios-name-server(44), Netbios-node-type(46)
***************************************************
Option-Number       Option-Type          Option-Value
--------------      ------------         -------------
 3                  ip                   10.207.5.1


DHCP Server static IP allocation
----------------------------------
DHCP Server static host is not configured.


BOOTP Options
---------------
Boot-File-Name            TFTP-Server-Name               TFTP-Server-Address
---------------           -----------------              ---------------------
*                         *                              *

 

 

 

I also *just* realized this switch has an ACL applied to this VLAN.

 

I added a "permit udp any any eq 67" ACE and thought I was on my way.

 

However it still wasn't working, even though I was getting hits on the ACE. Turns out, I forgot to enable the dhcp-server after changing the pool. duuuuh

 

*Now* its working! Thanks to all for assistance!

 

Moral of the story, sometimes we're our own worst enemies  

View solution in original post


All Replies
Highlighted
Regular Contributor II

Re: ArubaOS-CX DHCP-Server Initial Setup

Do you have any ip-helper / relay on the switch?

CX does not support DHCP serer and relay on the same switch.

Highlighted
New Contributor

Re: ArubaOS-CX DHCP-Server Initial Setup

No DHCP helper/relay configured on the switch globally (entire environment is strictly statically assigned).

Highlighted
MVP Guru

Re: ArubaOS-CX DHCP-Server Initial Setup

Could you share the output of show dhcp-server vrf default  ?

Highlighted
New Contributor

Re: ArubaOS-CX DHCP-Server Initial Setup

Sure, thanks!

 

VRF Name           : default
DHCP Server        : enabled
Operational State  : operational
Authoritative Mode : true

Pool Name          : vlan965
Lease Duration     : 00:10:00

DHCP dynamic IP allocation
----------------------------
Start-IP-Address           End-IP-Address             Prefix-Length
-----------------          ---------------            -------------
10.207.5.201               10.207.5.220               24


DHCP Server options
---------------------
***************************************************
Note:DHCP Server well known option number mapping:
default-router(3), Dns-server(6), Domain-name(15),
Netbios-name-server(44), Netbios-node-type(46)
***************************************************
Option-Number       Option-Type          Option-Value
--------------      ------------         -------------
 3                  ip                   10.207.5.1


DHCP Server static IP allocation
----------------------------------
DHCP Server static host is not configured.


BOOTP Options
---------------
Boot-File-Name            TFTP-Server-Name               TFTP-Server-Address
---------------           -----------------              ---------------------
*                         *                              *

 

Highlighted
MVP Guru

Re: ArubaOS-CX DHCP-Server Initial Setup

Please putting these 2 lines:

range 10.207.5.201 10.207.5.220

range 10.207.5.201 10.207.5.254 prefix-len 24

 

Highlighted
New Contributor

Re: ArubaOS-CX DHCP-Server Initial Setup

OK, here is the latest config:

 

 

VRF Name           : default
DHCP Server        : enabled
Operational State  : operational
Authoritative Mode : true

Pool Name          : vlan965
Lease Duration     : 00:10:00

DHCP dynamic IP allocation
----------------------------
Start-IP-Address           End-IP-Address             Prefix-Length
-----------------          ---------------            -------------
10.207.5.201               10.207.5.251               24
10.207.5.201               10.207.5.220               *


DHCP Server options
---------------------
***************************************************
Note:DHCP Server well known option number mapping:
default-router(3), Dns-server(6), Domain-name(15),
Netbios-name-server(44), Netbios-node-type(46)
***************************************************
Option-Number       Option-Type          Option-Value
--------------      ------------         -------------
 3                  ip                   10.207.5.1


DHCP Server static IP allocation
----------------------------------
DHCP Server static host is not configured.


BOOTP Options
---------------
Boot-File-Name            TFTP-Server-Name               TFTP-Server-Address
---------------           -----------------              ---------------------
*                         *                              *

 

 

 

I also *just* realized this switch has an ACL applied to this VLAN.

 

I added a "permit udp any any eq 67" ACE and thought I was on my way.

 

However it still wasn't working, even though I was getting hits on the ACE. Turns out, I forgot to enable the dhcp-server after changing the pool. duuuuh

 

*Now* its working! Thanks to all for assistance!

 

Moral of the story, sometimes we're our own worst enemies  

View solution in original post

Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: