cancel
Showing results for 
Search instead for 
Did you mean: 

dhcp ip allocation for particular vlan

dhcp ip allocation for particular vlan

sumeet
New Contributor
hi , we have extreme networks summit x460-24t switch . I want to do the following
switch should assign ip to dhcp client for particular vlan . All packet IP's unknown to switch should be passed from port 1 .

example in cisco we had

ip dhcp pool vlan200
network 172.16.120.0 255.255.255.0
dns-server 196.1.105.47
default-router 172.16.120.1
lease infinite
!
interface Vlan34
ip address 192.168.0.11 255.255.255.0
!
interface GigabitEthernet0/1
switchport access vlan 34
mls qos vlan-based
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.0.1

I tried following in extreme

create vlan "vlan200"
configure vlan vlan131 tag 200
configure vlan vlan200 ipaddress 10.10.10.1 255.255.255.0
configure vlan vlan200 dhcp-address-range 10.10.10.2 - 10.10.10.10

Where am I going wrong ?
15 REPLIES 15

sumeet
New Contributor
this time , i connected a laptop to port 11 & another to port 3 which have vlan 10 (test) & 34 untagged respectively .
They got ip 192.168.1.2 & 192.168.0.2 respectively.
Still one laptop could not ping another .
Also 'enable loopback-mode vlan vlan34' did not cause 192.168.1.2 to ping 192.168.0.1

Here is the log for laptop with ip 192.168.1.2
[log]
C:\Users\neha>ipconfigWindows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IPv4 Address. . . . . . . . . . . : 192.168.1.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
C:\Users\neha>ping -t 192.168.0.2
Pinging 192.168.0.2 with 32 bytes of data:
PING: transmit failed. General failure.
PING: transmit failed. General failure.
PING: transmit failed. General failure.
[/log]

rbrt
Contributor
Is there anything connected to port 11? If not, no port in VLAN 34 will be online, which will in effect mean that the IP interface is down as well. To force VLAN 34 to be online you can do a "enable loopback-mode vlan vlan34".

sumeet
New Contributor
hi Robert Weiler ,
I meant 'configure vlan vlan200 tag 200' as you have pointed out .

NOW , I have following configuration in cisco
* X460-24t.2 # create vlan test
* X460-24t.3 # configure vlan "test" tag 10
* X460-24t.4 # configure vlan "Default" delete ports 1-10
* X460-24t.5 # configure vlan "test" add ports 1-10
* X460-24t.8 # configure vlan test ipaddress 192.168.1.1/24
IP interface for VLAN test has been created.
* X460-24t.9 # enable dhcp ports 1-10 vlan "test"
* X460-24t.10 # configure vlan "test" dhcp-address-range 192.168.1.2 - 192.168.1.20
* X460-24t.12 # enable ipforwarding vlan test
* X460-24t.14 # create vlan vlan34
* X460-24t.15 # configure vlan vlan34 ipaddress 192.168.0.1/24
IP interface for VLAN vlan34 has been created.
* X460-24t.16 # configure vlan "Default" delete ports 11
* X460-24t.17 # configure vlan "vlan34" add ports 11
* X460-24t.18 # configure iproute add default 192.168.0.1
* X460-24t.19 # enable ipforwarding vlan vlan34

Currently what happens is
a PC attached directly to any port among 1-10 gets ip 192.168.1.[2-20] . it is able to ping 192.168.1.1 but not 192.168.0.1 .

What I want is
Firstly , i will connect a system to any one port among 1-10 which will take vlan tagged packets (in this case vlan 10) . The system passes the packet to attached multiple PC's after removing vlan 10 . Similiarly , it attaches vlan 10 to packets coming from PC's towards x460-24t.
Secondly , as paul russo has said to add default gateway of 192.168.0.1 for every vlan so that pc is able to ping 192.168.0.1 even though it is out of its subnet . How can I do that ?

Thanks robert weiler , sumit tokle , paul russo .

Paul_Russo
Extreme Employee
hello Sumeet

A few things, first you may want to add the default gateway option to the DHCP so the end devices have their default route out of the VLAN. Second the ports to the end stations should not be tagged because their DHCP requests will be untagged, and finally you need to enable the DHCP on the ports using the command enable dhcp ports port_list vlan vlan_name

Let us know if that helps.
P

Sumit_Tokle
Contributor
create vlan testconfigure vlan "test" tag 10
configure vlan "Default" delete ports 1-10
configure vlan "test" add ports 1-10
configure vlan test ipaddress 192.168.1.1/24
enable dhcp ports 1-10 vlan "test"
configure vlan "test" dhcp-address-range 192.168.1.2 - 192.168.1.20

In my example, if the request is coming from vlan 10 then only switch would be able to release IP address from 192 subnet.
GTM-P2G8KFN