Switches, Hubs, and Modems
1821414 Members
2503 Online
109633 Solutions
New Discussion юеВ

PCs on vlan not able to ping router

 

PCs on vlan not able to ping router

Hello I need some help setting up a vlan. I can not ping the router from the new vlan.
My current configuration is 2 HP procurve 8000m switchs that are connected to each other. The first switch is also connected to a Cisco 2400 router. The vlan is setup on switch 2. It looks sort of like a daisy chain.
In order for pcs connected to vlan 100 Guest to ping the router, the packet will have to travel through 2 hops. 1st is to Switch 2, 2nd to switch 1, 3rd to the router.
Switch 2 is configured to have both the default_vlan and the new vlan 100, Guest.
The network IP address is 192.168.0.0.
IP address for the new Vlan is 192.168.10.0
On switch 2, there is 1 blade of 8 ports that is un_tagged for vlan 100, guest. The rest is un_tagged for default_vlan.
The default gateway for both default_vlan and vlan 100 guest and is 192.168.0.1
I can not ping the router from any ports that is connected to Vlan 100, Guest. The PCs on vlan 100, guest can ping each other.

I am a bit stuck and am not sure what to do? Please help. Thank you.


Andrew
6 REPLIES 6
Usaia Tawakevou
Valued Contributor

Re: PCs on vlan not able to ping router

You need to tagged the port that is linking both switch to both VLAN's. e.g, if both switch are connected via port 1 on each switch than tagged port 1 on vlan 1 and vlan 100 on both switch. And for a traffic from a VLAN to reach the other VLAN, you need to deploy intervlan routing using the Cisco 2400 as the inter-vlan router

HTH
Pieter 't Hart
Honored Contributor

Re: PCs on vlan not able to ping router

>>> The default gateway for both default_vlan and vlan 100 guest and is 192.168.0.1 <<<

that's not correct!

you need to split your network (192.168.0.0 /16 ?) into smaller subnets.
Each vlan should have it's own subnet, like
192.168.0.0 /24 and 192.168.1.0 /24
Each vlan should have it's own default-gateway like 192.168.0.1 /24 and 192.168.1.1.


If you want your switches do do only layer-2 (vlan's) and the router layer-3 (tcp/ip)
than you need to reconfigure your router.

does the router has multiple physical itnerfaces you can use?

Re: PCs on vlan not able to ping router

Hello,

Thanks guys for replying back to my question. The router only have one port available to connect to the network. This connection is connected to Port J1 on the first switch and then Port H1 is connected to the 2nd switch. I already tagged both H1 and H1 for switch 1. I also tagged port j1 of switch 2 because it is the port that is directly connected to switch one.
In order to connect to the internet/ping the router from Vlan 100 Guest, the traffic needs to go through J1 of switch one so, will all the PCs connected to Default_vlan and vlan 100 need to set their default gateways to 192.168.0.1?
Pieter 't Hart
Honored Contributor

Re: PCs on vlan not able to ping router

same answer as before!

Both vlans need to be on a separate subnet.
Each subnet each it's own default gateway.
So both cann NOT be 192.168.0.1.


more specific:
If the router only has one interface, you can tag both vlan's on the switch port connected to the router.
Then create subinterfaces (same like vlan interface ion switch) on the router for each vlan.
next give each subinterface an ip address in the corresponding subnet.
and let the router route between these subnets.
the clients on vlan1 needt ip-adress1 of the router as default-gateway
the clients on vlan100 need ip-address-100 as default gateway.

alternatively you can configure switch-1 to route between vlan-1 and vlan-100, and forward all non-local adresses to the router.
this case the switch needs a similar config as the router above.

Re: PCs on vlan not able to ping router

Hello. Thank you for your help. I do not have access to the router and can not make changes. The only option for me is to make changes to the switch.
I was wondering how do you setup switch-1 to router between vlan-1 and vlan-100, and forward all non-local address to the router? Is there something I can read up on?
The switch is a procurve 8000m.

Your help is appreciated.
Pieter 't Hart
Honored Contributor

Re: PCs on vlan not able to ping router

>>> Is there something I can read up on? <<<

did you searched for it?
there are many posts on this forum where you can find the necessary steps.

here is a previous post.
http://h30499.www3.hp.com/t5/Switches-Hubs-Modems-Legacy-ITRC/Help-with-routing-VLANS/m-p/4745483/