LAN Routing
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: HP 1920-24g JG924A No Internet In Vlan

 
Highlighted
Occasional Collector

HP 1920-24g JG924A No Internet In Vlan

Hello Everyone Hope that you all doing well.
I Have hp 1920-24g JG924A switch That I want to have internet access to a vlan.

I create Vlan 2 with IP 192.168.10.1
My Internet Router IP Is 10.43.1.1
I set a static route : 0.0.0.0 0.0.0.0 10.43.1.1
i connected the router to switch on port 1 and i set that port as access on vlan 2.
But No Internet In My Vlan 2.
can Anyone help Please.

Thanks,

6 REPLIES 6
Highlighted
Honored Contributor

Re: HP 1920-24g JG924A No Internet In Vlan


@Networker13 wrote: I create Vlan 2 with IP 192.168.10.1
My Internet Router IP Is 10.43.1.1
I set a static route : 0.0.0.0 0.0.0.0 10.43.1.1
i connected the router to switch on port 1 and i set that port as access on vlan 2.

That's wrong.

How can your Router to communicate on a port untagged member (access) of VLAN 2 if its IP Address falls on 10.43.1.0/24 subnet which, probably, is part of another VLAN id?

In other terms you need to connect your Router 10.43.1.1/32 on a access port of your HP 1920-24G which is member of the correct VLAN id (VLAN id 1? or whatever else it is...).

Please provide the full picture. VLAN ids used, IP Assigned to all VLAN ids involved.

Plus the Router need to have a static route to route back the traffic with destination on the other VLAN ids (VLAN 2 I suppose). Something like: destination 192.168.10.0/24 mask 255.255.255.0 via 10.43.1.x where x is the IP Address of the VLAN id where the Router is directly connected to (VLAN id 1? or whatever else it is...).

On the HP 1920-24 the Route of Last Resort (0.0.0.0/0.0.0.0 via Next Hop Gateway) is OK provided that, as written above, the VLAN id assignment of the port connected to the Router is correct (as you described, actually it isn't).

Highlighted
Occasional Collector

Re: HP 1920-24g JG924A No Internet In Vlan

thanks Alot for your response.
I m sorry because i didn't give all informations My vlan 1 IP is 10.43.1.100 he is in the same subnet as the router and internet works fine on Vlan 1. But I want to have internet on both vlans vlan 1 and vlan 2. did i can do intervlan routing or something else to achive that. I only have one gateway the : 10.43.1.1.

Maby Thanks.

Highlighted
Honored Contributor

Re: HP 1920-24g JG924A No Internet In Vlan

I'm quite sure that your gateway 10.43.1.1 lacks of the necessary static route that is necessary to route back to VLAN 2 (192.168.10.0/24) subnet. As written on my first reply you should verifiy - and if absent to add - a static route on your gateway like: destination 192.168.10.0/24 mask 255.255.255.0 via 10.43.1.100 where 10.43.1.100 is the IP Address of the VLAN 1 where the Router is directly connected into. IP Routing on the switch is enabled automatically for every defined VLAN id with a SVI (IP Address) so, actually, both your VLAN 1 and VLAN 2 are routed each others, as said the issue is probably on your gateway.

Highlighted
Occasional Collector

Re: HP 1920-24g JG924A No Internet In Vlan

Okay sir, I have a linksys router as gateway i can find the routing option i will add a route to 192.168.10.0/24 via 10.43.1.100.

So basically the port from the gateway that connected to switch should  be in vlan 1 and i need to set the route you mentioned in my router, and i am also set ips for both vlans 1 and 2 in switch. That's should do it right.

Another thing yo says that routing is enabled if my vlans have ip set but i can't ping vlan 1 from vlan 2.

NOTE : My Switch Is HPE OfficeConnect 1920 Switch Series 

Thanks Again For your time.

Best Regards,

Honored Contributor

Re: HP 1920-24g JG924A No Internet In Vlan


@Networker13 wrote: Okay sir, I have a linksys router as gateway i can find the routing option i will add a route to 192.168.10.0/24 via 10.43.1.100. So basically the port from the gateway that connected to switch should  be in vlan 1 and i need to set the route you mentioned in my router, and i am also set ips for both vlans 1 and 2 in switch. That's should do it right.

Exactly. That's it. Since your Gateway (call it Router or Next Hop Gateway) is directly connected on VLAN 1 (SVI 10.43.1.100) and it has IP Address 10.43.1.1 it's clear that it should be instructed how to reach other VLANs behind your Switch through its SVI on VLAN 1 (so the requirement of having a static route to let it to know how to reach VLAN 2).


@Networker13 wrote:; Another thing yo says that routing is enabled if my vlans have ip set but i can't ping vlan 1 from vlan 2.

OK, do few tests:

  • from an Host on VLAN 1 (OS Firewall disabled or configured accordingly to let/accept ICMP Ping) try to ping VLAN 2 SVI.
  • from an Host on VLAN 1 (OS FIrewall disabled or configured accordingly to let/accept ICMP Ping) try to ping an Host on VLAN 2 (with OS Firewall disabled or configured accordingly to let/accept ICMP Ping).
  • from an Host on VLAN 2 (OS Firewall disabled or configured accordingly to let/accept ICMP Ping) try to ping VLAN 1 SVI.
  • from an Host on VLAN 2 (OS FIrewall disabled or configured accordingly to let/accept ICMP Ping) try to ping an Host on VLAN 1 (with OS Firewall disabled or configured accordingly to let/accept ICMP Ping).
  • from an Host on VLAN 1 (OS Firewall disabled or configured accordingly to let/accept ICMP Ping) try to ping the Router IP Address (10.43.1.1).
  • from an Host on VLAN 2 (OS Firewall disabled or configured accordingly to let/accept ICMP Ping) try to ping the Router IP Address (10.43.1.1).
  • from an Host on VLAN 1 (OS Firewall disabled or configured accordingly to let/accept ICMP Ping) try to ping www.google.com (I suppose the FQDN www.google.com gets resolved correctly).
  • from an Host on VLAN 2 (OS Firewall disabled or configured accordingly to let/accept ICMP Ping) try to ping www.google.com (I suppose the FQDN www.google.com gets resolved correctly).

Report back Go/No-Go for each test.

I'm pretty sure that simply creating the VLAN ids (as you did) and then add to them the IPv4 addresses (as you already did) automatically enables the Layer-3 functionality and let your swich to act as a IPv4 Router. Double check IP Addressing on hosts belonging to VLAN 1 and VLAN 2. They should use, respectively, VLAN 1 SVI and VLAN 2 SVI as their Default Gateway.

Highlighted
Occasional Collector

Re: HP 1920-24g JG924A No Internet In Vlan

Thanks For your reply Sir I will try that and let you know.

 

Many Thanks