Switches, Hubs, and Modems
1753326 Members
4584 Online
108792 Solutions
New Discussion юеВ

Re: VLAN, VOICE & DHCP

 
Pete13
Advisor

VLAN, VOICE & DHCP

I have a setup which, amongst other things, consists of 1 cisco router, 1 hp procurve switch (24p).

Behind the router there is a DHCP server (DHCP1) and a VOIP system with its own DHCP.

On DHCP1 I have defined 2 scopes to service IP range 192.168.10.0 (vlan10) and 192.168.20.0 (vlan 20).
The scope has the proper options set for the use of the VOIP system as well (options 125,128,129, etc).

What I have currently done on the switch is:
- Created 2 vlans, vlan 10 for data, vlan 20 for voice. I left the default vlan untouched.
- Port 1 on the switch goes to the router.
- Tagged ports 2-24 on vlan20.
- Untagged all ports on vlan10.
- Added the IP helper addres 192.168.30.200 to both vlans.

IP addresses:
DHCP server: 192.168.30.200
IP address router: 192.168.30.256
IP address switch: 192.168.30.210

How do I setup routing on that switch so that vlan 10 & 20 actually can see the DHCP which is on vlan 30.

Thanks
P.
2 REPLIES 2
Shadow13
Respected Contributor

Re: VLAN, VOICE & DHCP

Why don't you make the cisco switch handle the routing, just create multiple sub-intefaces on the router's port that connects to the switch and assign each interface an ip address from vlan (vlan 10 and vlan 20)

and make the port trunk, also port 1 on the switch that connects to cisco router make it tagged on all vlans except the default vlan.


Or, if the switch that you have supports routing, then enable routing by issuing the command (ip routing) then create a default static route to the router's inteface.

Regards
Michael_Breuer
Esteemed Contributor

Re: VLAN, VOICE & DHCP

Hi Pete,

make sure that your HP switch supports routing. Then you can use the following config:

ip routing
vlan 10
ip address 192.168.10.254/24
ip helper 192.168.30.200
untagged 2-24
vlan 20
ip address 192.168.20.254/24
ip helper 192.168.30.200
tagged 2-24
vlan 30
ip address 192.168.30.210/24
untagged 1


Cheers,

Michael
Ingentive Networks GmbH