Switches, Hubs, and Modems
cancel
Showing results for 
Search instead for 
Did you mean: 

3500yl VLAN And Routing

Sean Miller_1
Occasional Visitor

3500yl VLAN And Routing

All, Please bear with me as I try to figure this one out. I have only dabbled in VLAN's, but now trying to test a scenario and can't seem to figure it out. Here is my current setup.

DATA Network
2 HP 4108's Subnet 192.168.30.0 255.255.254.0 GW(FW to internet 192.168.30.254)

VOIP Network
3 HP 3500yl's Subnet 192.168.40.0 255.255.255.0 (no gateway assigned yet)

Single cable on port 43 (3500 switch #3) connected to E7 (4108 switch #2)

DHCP Server on 192.168.30.0. DHCP Scope on standby to serve 192.168.40.0

Since my networks will tied together I have created a VLAN for the VOIP Network (VLAN ID 2) and moved all ports on each 3500yl to this VLAN. I assumed that I can keep the default_VLAN (ID 1) to setup my routing between the 3500 switches and the 4108's because there is no need for any VLAN'ing on the 4108's.

Most of the work I have done is on the last 3500yl in my network, assuming that I could tag both VLANS to port 43, and just enable ip routing, and dhcp-relay to pass the traffic back and forth. But I can't seem to get it working.

What I am missing here? Thanks for your help ahead of time!
3 REPLIES
Mohieddin Kharnoub
Honored Contributor

Re: 3500yl VLAN And Routing

Hi

Assume that you have both vlans created on the 3500 switch #3, Vlan2(Voice)-192.168.40.0 and Vlan1(Data)-192.168.30.0 and enabled routing on this Switch, then UNTAG port 43 (3500 switch #3) that goes to E7 (4108 switch #2) with Vlan1
and on 4108 switch #2 just add this line :

4100(config)#ip default-gateway a.b.c.d (where a.b.c.d is the Vlan1 ip address on the 3500 switch#3).

and on the 3500 swithces add to Vlan2 this command:
3500(config)#vlan 2 ip helprer-address (DHCP server ip address) --- for each switch.

on 3500 #1 & #2 switches you have to add also
3500(config)#ip default-gateway a.b.c.d (where a.b.c.d is the Vlan1 ip address on the 3500 switch#3).

Now Routing is done on the 3500 swtich#3, and 4100 switches serve the data network and PCS get their IP addresses from the DHCP server, and Voice devices get their IP from DHCP also.

Now for internet connectivity, you can use a static route on the 3500#3 points to the Internet gateway/fw:
3500(config)#ip route 0.0.0.0 0.0.0.0 192.168.30.254

And on the FW to internet add a static route to serve vlan2 :

FW(config)#ip route 0.0.0.0 0.0.0.0 a.b.c.d (where a.b.c.d is the Vlan1 ip address on the 3500 switch#3).

Don't forget to assign points.

Good Luck !!!
Science for Everyone
Sean Miller_1
Occasional Visitor

Re: 3500yl VLAN And Routing

Ok. I have everything configured properly. A few questions though.

Each switch can ping address across each V-Lan. Should I be able to ping from a workstation on VLAN 1 to VLAN 2? My workstations don't need to see VLAN 2, but I will have some devices on VLAN 2 that will need to talk to VLAN2 and vice versa.

Regarding DHCP, my DHCP server IP is 192.168.30.201, but will handle two scopes. 192.168.30.x & 192.168.40.x. I'm I correct to assume that DHCP-Relay on the switches is enabled and I don't have to configure option 82? Or do I need to add another IP of 192.168.40.201 to the DHCP server for VLAN2. (Making my ip helper-address 192.168.40.201)

Almost there.

Thanks!
Mohieddin Kharnoub
Honored Contributor

Re: 3500yl VLAN And Routing

Hi

- If you want to prevent stations on vlan1 to access vlan2 except some of them, then you need to apply some Access Control Lists on the Routing switch 3500#3, like :

3500(config)# access list 102 permit ip any 192.168.30.254 -- allow internet
3500(config)# access list 101 permit ip any 192.168.30.xx -- allow DHCP
3500(config)# access list 101 permit ip any 192.168.30.yy -- allow Management1...
3500(config)# access list 101 deny ip 192.168.40.0 0.0.0.255 any -- deny vlan1
3500(config)# access list 101 permit ip any any -- aloow other traffic

3500(config)# vlan 2 ip access-group 102 in

now this will prevent vlan1 station from accessing vlan2 except, internet + dhcp and some other stations you need.


- For the DHCP, its correct, you add 2 Scopes, first one with subnet 192.168.30.0 255.255.254.0 and gateway (router option) is Vlan1 ip address of the routing swtich 3500#3.

Second one with subnet 192.168.40.0 255.255.255.0 and gateway (router option) is Vlan2 ip address of the routing swtich 3500#3.

Now enable ip helper address in each vlan (previous post), and thats it.

Assign points to posts that helped you is the way to say thanks :)

Good luck !!!

Science for Everyone