Cisco Catalyst 3750E-48PD Logo
Anonymous Posted on Feb 01, 2009

Sending DHCP request across diffrent vlans

Hi i need help routing dhcp packets across a diffrent vlan, The switch connected to dhcp server(vlan 8 ) is cisco 3750 and the host is connected into vlan 2,
Hosts in vlan 8 can get dhcp address, but not the ones in vlan 2.

following is the config of vlan 8 and 2

interface Vlan2
ip address 172.16.0.1 255.255.255.0
ip helper-address 10.20.8.12 (dhcp server address )

interface Vlan8
ip address 10.20.8.1 255.255.252.0

# ip routing is enabled,

I can ping between vlan 2 and vlan 8.

Any help would be higly appreciated.


2 Answers

Steve Rand

Level 2:

An expert who has achieved level 2 by getting 100 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Novelist:

An expert who has written 50 answers of more than 400 characters.

  • Expert 210 Answers
  • Posted on Feb 05, 2009
Steve Rand
Expert
Level 2:

An expert who has achieved level 2 by getting 100 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Novelist:

An expert who has written 50 answers of more than 400 characters.

Joined: Aug 20, 2008
Answers
210
Questions
0
Helped
45064
Points
458

Hmm... on your DHCP server, try setting the "default router" IP for each pool to be the VLAN ID on the switch.

scope 172.16.0.0 /24
router 172.16.0.1

scope 10.20.8.0 /22
router 10.20.8.1

I think the DHCP replies aren't going back where they should. I've never done this without a router doing all the DHCP, but it does work and i've done it many times. Your config looks spot on for the switch.

NETBOY

Level 1:

An expert who has achieved level 1.

Night Owl:

An expert who has answered 10 or more questions between 12 midnight and 6am on the same day.

Corporal:

An expert that has over 10 points.

Problem Solver:

An expert who has answered 5 questions.

  • Contributor 18 Answers
  • Posted on Apr 01, 2009
NETBOY
Contributor
Level 1:

An expert who has achieved level 1.

Night Owl:

An expert who has answered 10 or more questions between 12 midnight and 6am on the same day.

Corporal:

An expert that has over 10 points.

Problem Solver:

An expert who has answered 5 questions.

Joined: Apr 01, 2009
Answers
18
Questions
1
Helped
11531
Points
52

You have 172 network and dhcp in 10 network.
To get ip address from different subnet you should configure DHCP RELAY AGENT on the dhcp server.

Ad

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

0helpful
2answers

How to configure VLANS and Tagging

https://m.youtube.com/watch?v=krE16IRIHw4
Watch this video for switch port access . You will need to be in global config interface mode.
0helpful
1answer

How to stop user privately setting up a static IP address?

Huawei S2300/3300/5300 series switch although no H3C switches am user-bind command, but through the DHCP Snooping function can also be realized IP+MAC+ port binding to prevent users set up a static IP address. For example, if the request port Ethernet0/0/1 in addition to the static IP address for the 1.1.1.2, MAC address for the 001c-2309-9aa7 corresponding to the user, all other static IP users can not access the internet. Configuration is as follows:
Configure the device DHCP Snooping
# enable the global DHCP Snooping function.
[Quidway] DHCP snooping enable
# configure user side interface of VLAN.
[Quidway] VLAN 100
[Quidway-vlan100] quit
[Quidway] interface Ethernet 0/0/1
[Quidway-Ethernet0/0/1] port default VLAN 100
[Quidway-Ethernet0/0/1] quit
# enable VLAN DHCP Snooping function.
[Quidway] VLAN 100
[Quidway-vlan100] DHCP snooping enable
# configuration interface for packet inspection at the user side
[Quidway] interface Ethernet 0/0/1
[Quidway-Ethernet0/0/1] DHCP snooping check ARP enable
[Quidway-Ethernet0/0/1] DHCP snooping check IP enable
[Quidway-Ethernet0/0/1] quit
# configuration static binding table entry
[Quidway] VLAN 100
[Quidway-vlan100] DHCP snooping bind-table static IP-address 1.1.1.2 mac-address 001c-2309-9aa7 interface Ethernet 0/0/1
0helpful
1answer

7940G IP Phone: how to solve the protocol application invalid prob...

Hi

This happens when you IP phone communicated with the Voice vlan with the IP address of data vlan.

To solve it manually enter the IP address of the TFTP server and option 150 on the DHCP server.
remove the voice vlan from the switch port and reboot the phone
again add the voice vlan and reload the phones
0helpful
1answer

Trying to Configure HP ProCurve 2524 24x10/100 Mbps Networking Switch as DHCP and creating a VLAN and connecting Linksys access points to that VLAN

This switch will not function as a DHCP server itself. You will need to have a DHCP server on the VLAN with the access points to give out IP's to the wireless users.
HP has free design and configuration services http://www.procurve.com/customercare/services/design-center/index.htm
0helpful
1answer

3 vlans, data,1; data 2,;voip,5. Ports carry voice tagged, and data. currently Windows 2000 DHCP server lives on Vlan 1 (AND WORKS). Need to upgrade. When we test the new servers we are unable to make both...

Here's what you need to do:

First, be sure to assign an ip address(in the proper subnet) to each VLAN.

Second, use the ip helper-address command in the context of each VLAN, the address used should be the address of the DHCP server

Third, Add a scope for each additional VLAN on the DHCP server.

The switch will route the DHCP request to the proper server based on the ip helper-address command parameter and based on the ip address of the VLAN that is passed tot he server, a DHCP address in the proper subnet is automatically configured.

Here is a sample:

ProCurve Switch 3500yl-24G-PWR# configure
ProCurve Switch 3500yl-24G-PWR(config)# vlan 33
ProCurve Switch 3500yl-24G-PWR (vlan-33)#ip address 192.168.33.254/24
ProCurve Switch 3500yl-24G-PWR (vlan-33)# ip helper-address 10.1.2.250
0helpful
1answer

Connection error

can you clarify the switch configuration, by default it will have all ports as untagged in the default vlan 1 with a bootp/dhcp address, I assume you will need to perform some kind of routing ie; default gateway, ip-helper address or static route to point to your routing device ADSL router etc try the following;

1~ configure an ip helper address on vlan 1 to point to what ever is supplying dhcp

2~ create a defualt route on the switch ie; 0.0.0.0 0.0.0.0 to next hop / routing device

3~ configure a default gateway ie; ip default-gateway x.x.x.x where x= routing device

the above can be accomplished via a serial connection to the switch using hyperterminal with the following settings

bits per second 9600
data bits 8
parity none
stop bits 1
flow control none

let me know if this resolves the issue
0helpful
2answers

IP Addressing by dhcp for vlans

tell each vlan about DHCP server using

ip helper <DHCP servers ip adddress>.

in config mode.
10helpful
3answers

Routing vlans on 3com switch 4500

i can't set ip address over 4 vlans. the 3com switch 4500 always give error message "there's not enough routing resources available".please help....
Not finding what you are looking for?

3,905 views

Ask a Question

Usually answered in minutes!

Top Cisco Computers & Internet Experts

Brad Brown

Level 3 Expert

19187 Answers

Grand Canyon Tech
Grand Canyon Tech

Level 3 Expert

3867 Answers

Sean Wright
Sean Wright

Level 3 Expert

2045 Answers

Are you a Cisco Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...