I have a 48 port HP managed layer 3 switch that I have separated 50/50 to 2 different VLANS, VLAN 1 (default vlan) and VLAN2. I am simply trying to get a host on vlan1 to talk to hosts on vlan 2. vlan 1 hosts have different subnet than hosts on vlan 2. how can I get them to talk/ping each other?

ip address for vlan 1 is 192.168.10.1 (untagged vlan1 1-24)
ip address for vlan 2 is 192.168.20.1 (untagged vlan2 25-48)

My company has a router in between these switches. The gateway for the HP switch is router A. The gateway for All workstations in the 192.168.10.x network is Router A as well.

In Router A I added this line “ip route 192.168.20.0 255.255.255.0 192.168.10.1”

The HP switch itself can now ping 192.168.20.1 and I can ping 192.168.20.1 from any workstation in network 192.168.10.x. However, when I plug a laptop (static ip 192.168.20.10) to vlan 2 ports I cannot ping 192.168.10.x network). Why is that?

If any one has insights to what might be wrong I would greatly appreciate it. I’m very new to networking, and I know my fundamentals are off here.

CJ

6 Spice ups

You only provided half the route- 20.x still has no idea how to talk to 10.x

3 Spice ups

Can you enable routing on the L3 Switch? It will be much faster if all packets are handled by the switch instead of relying on the single trunk to the router.

1 Spice up

yeah just config “ip routing” on l3 switch

I suspect your switch is not layer 3 if it has a default gateway.

If it has a default route configured e.g. ip route 0.0.0.0 0.0.0.0 a.b.c.d then it may be layer 3.

try the ‘ip routing’ command - if it is accepted then its layer 3. You would need to ensure that all devices in vlan 2 use the switch 192.168.20.1 as default gateway

However if the switch is not layer 3, you need to connect the new vlan to the existing router.
Either a new interface or you will need to trunk both vlans to the router and change the current config.

thanks guys,

this is a layer 3 switch, i don’t know why they made the default gateway to go to a router on the switch. I removed it. I will see what i have to do now to get the 2 networks to talk within the layer 3 switch.

also In cisco it makes more sense configuring each port as access or trunk ports, allowing multiple vlan traffic to pass through a trunk port. The trunk would go out to the router but i don’t know how to do that in HP. What is that tagged and untagged port? does untagged mean access port? I want vlan 1 & 2 traffic to go out port 48, am I doing it right here?

vlan 1
name “default_vlan”
untagged 1-24,48
ip address 192.168.10.1 255.255.255.0
no untagged 25-47
exit

vlan 2
name “accounting”
untagged 25-47
tagged 48
no ip address
exit

Printer sharing in multiple vlan

In our office setup, printer is in one vlan, pc’s are in other vlans. while pinging printer ip from pc, it is getting reply. But not able to send any request to printer. it is a 2950 cisco switch, cisco router, inter vlan communication is open to all vlan.

Hello ,

You have to put printer in a shared port where by it will be able to share