How to configure Subnet-based DHCP

How to configure Subnet-based DHCP
Purpose: To Configure Subnet-Based DHCP and Assign the DHCP Lease from the Subnet
of Your Choice.
To assign a subnet-based DHCP IP address, based on specific switch port, you would need to
have a VLAN or RFC1493 compatible switch connected to the subscriber side. In this example
we are using a VLAN switch that is already configured with VLAN tagging.
Note: For instructions on how to configure VLAN tagging on your switch please refer to your
user’s manual for that switch.
Step 1: Add a new pool
By default, DHCP is enabled and configured on the NSE. Login to the NSE and select
Configuration/DHCP to view the settings.
Note: You may change the default pool to any other desired network/subnet
(192.168.1.0 For example) by clicking on the DHCP Server IP link, make the changes and click
“Modify”
To add a new pool click on “Add”, specify the IP addresses for the new pool then click on
“Add”.
How to configure Subnet-based DHCP (updated 1/23/17)
1
Step 2: Enable Subnet-based DHCP.
In the main DHCP Configuration Page enable Subnet-based, check Save to enable.
Step 2: Enable VLAN tagging in the NSE
Under Configuration/Port-Location enable 802.1Q two-way and click Save. You do not have to
reboot the NSE.
How to configure Subnet-based DHCP (updated 1/23/17)
2
There are 3 ways of assigning Subnet-based DHCP addresses to subscribers
a. Using the Port-Location table
b. Using the Radius Nomadix-Subnet attribute
c. Manually configuring the subscriber’s internal database entry
A. Assign Subnet-based DHCP Using Port-Location
Click on “Add” in the Port-Location folder. Configure the Location, Port and Subnet that is used
to lease out the IP addresses for this port, Description, State and click on Add.
Note: Location is the actual room which is used when charging to PMS.
Port is the VLAN ID that is configured on the switch. Description is optional, State “No Charge” means subscriber
will not be prompted with the login and/or billing screens, where “Charge for use” will.
In the above configuration a subscriber will obtain an IP address from the 192.168.1.0 subnet
added in the first section of this document.
Note: Depending on the subnet mask the Subnet ID could be different
How to configure Subnet-based DHCP (updated 1/23/17)
3
In the Subscriber Administration/Current screen you can check to see the user gets an IP address
from the 192.168.1.0 subnet.
B. Assign the Subnet-based IP Using the Nomadix-Subnet Attribute on a Radius Server
When using the Nomadix-Subnet attribute to assign the DHCP pool, you must first configure the
default DHCP pool to have a short lease time. The reason for this is that the user will obtain a
lease from the default pool prior to logging in via Radius. Once the client machine renews its
lease, which is done automatically when 50% of their current DHCP lease elapses, the user will
receive a lease from the designated subnet pool.
Configure the User and the Dictionary files on your Radius server to include the NomadixSubnet Attribute
Dictionary
ATTRIBUTE Nomadix-Subnet
6
string (1, 0)
User’s database
"test" Auth-Type := Local, User-Password == "test"
Nomadix-Subnet = "192.168.1.0",
Note: The above example is based on a Free Radius configuration for Linux
How to configure Subnet-based DHCP (updated 1/23/17)
4
Enable “Radius Subnet Attribute” in Configuration/Radius Client folder, under Miscellaneous
Options.
In the Subscriber Administration/Current screen you can check to see the user gets an IP address
from the 192.168.1.0 subnet.
How to configure Subnet-based DHCP (updated 1/23/17)
5
C. Manually Configure Subscriber’s MAC Address for Subnet-based IP
In the Subscriber Administration folder click on “Add” and type the MAC address plus the
subnet ID as shown in the example below then click on “Add”.
In the Subscriber Administration/Current screen you can check to see the user gets an IP address
from the 192.168.1.0 subnet.
How to configure Subnet-based DHCP (updated 1/23/17)
6
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertising