07-23-2021 11:38 PM
Here are my settings for vlan 113
configure vlan vlan113 tag 113
configure vlan vlan113 add ports 21-24 tagged
configure vlan vlan113 ipaddress 172.16.113.1 255.255.255.0
enable ipforwarding vlan vlan113
configure vlan vlan113 dhcp-address-range 172.16.113.2 - 172.16.113.200
configure vlan vlan113 dhcp-options default-gateway 172.16.113.1
configure vlan vlan113 dhcp-options dns-server 196.1.105.47
enable dhcp ports 21-24 vlan vlan113
as you can see that this allows my L2 devices dealing with tagged packets of vlan 113 to get automatic IP.
My understanding is that DHCP relay agent allows getting IP from DHCP server of another network.
How can I configure my vlan 114 so that devices in vlan 114 get IP from DHCP server of vlan 113 ?
Actually , once I verify DHCP relay feature in this switch then I will test DHCP relay feature of another device.
I guess verifying DHCP option 82 is same as DHCP relay agent.
Thanks.
07-25-2021 01:48 AM
actually , i don’t have a separate dhcp server .
i was hoping to use dhcp server of extreme switch itself .
is it possible to use one vlan (114) as dhcp relay and another vlan (113) as dhcp server ?
07-24-2021 03:59 PM
I am guessing server-vlan in your example is different from 113 and 114.
Yes, this is the VLAN where the DHCP-Server is located.
The IP-Address of the server, in your example 192.168.2.2.
In this case you don’t need this configuration:
configure vlan vlan113 dhcp-address-range 172.16.113.2 - 172.16.113.200
configure vlan vlan113 dhcp-options default-gateway 172.16.113.1
configure vlan vlan113 dhcp-options dns-server 196.1.105.47
enable dhcp ports 21-24 vlan vlan113
This configures a DHCP-Server on the switch itself, but in your Link the DHCP-Server is another device.
This is basically right. If the DHCP-Server is on VLAN113 you need to remove this configuration:
configure vlan vlan113 dhcp-address-range 172.16.113.2 - 172.16.113.200
configure vlan vlan113 dhcp-options default-gateway 172.16.113.1
configure vlan vlan113 dhcp-options dns-server 196.1.105.47
enable dhcp ports 21-24 vlan vlan113
and add this configuration
configure bootprelay add <IP-Address of DHCP-Server> vr VR-Default
enable bootprelay vlan VLAN113
enable bootprelay vlan VLAN114
Do you have a separate DHCP-Server already?
07-24-2021 03:26 PM
I am guessing server-vlan in your example is different from 113 and 114.
what is <ip-address> ?
My purpose is to verify DHCP relay functionality .
I want to execute setup shown in https://www.geeksforgeeks.org/dhcp-relay-agent-in-computer-network/ .
Suppose vlan 114 config is
configure vlan vlan114 tag 114
configure vlan vlan114 add ports 21-24 tagged
i thought that vlan 114 clients will get ip from dhcp pool of vlan 113 if i add dhcp relay in vlan 114 to point to dhcp server in vlan 113 . is that wrong ?
07-24-2021 12:03 PM
Hi,
I don’t really understand what you are trying to achieve.
You have DHCP-Server configured directly on your switch for VLAN113. And now you want to relay VLAN114 to this DHCP-Server? This won’t be possible I guess and also Clients on VLAN114 would receive the same IP-Addresses as on VLAN113!? Why don’t you configure DHCP-Server for VLAN114 directly on the switch like for VLAN113?
DHCP Relay is used to forward DHCP packets to an “external” (e.g. Windows Server) DHCP-Server, that is on another VLAN than the clients.
This would be done like this:
configure bootprelay add <IP-Address> vr VR-Default
enable bootprelay vlan VLAN113
enable bootprelay vlan VLAN114
enable bootprelay vlan Server-VLAN