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

Connecting two LAN

SOLVED
Go to solution
Francebia
Visitor

Connecting two LAN

Hi everyone,

 

I have to connect two LANs via an HP 1910-24g switch.

 

The LAN1 is 10.0.0.x/24, the LAN2 is 192.168.17.x/24. The ports 1-23 of the switch belong to LAN1, while port 24 belongs to LAN2.

Following the user guiede, I have created two VLANs and two VLAN interfaces (one for each LAN).

 

Each LAN has its own default gateway to access internet.

 

The switch auto discovered the routing table is the following:

 

Destination        Mask                         Protocol       Preference      Next hop                   Interface

.....

10.0.0.0               255.255.225.0     Direct            0                          10.0.0.235               Vlan-interface1

.....

192.168.17.0     255.255.225.0     Direct            0                          192.168.17.235    Vlan-interface2

.....

 

(10.0.0.235 and 192.168.17.235 are the Vlan-interface1 and Vlan-interface2 IP address respctively)

 

From any 10.0.0.x device I can ping only 192.168.17.235 on the other LAN.

From any 192.168.17.x device I can ping only 10.0.0.235 on the other LAN.

 

I tried to ping another address from a LAN to the other with no success. Is there some other configuation options to set to let the networks work?

 

Many thanks

Francesco

3 REPLIES
EricAtHP
Esteemed Contributor

Re: Connecting two LAN

The symptoms you describe indicate that routing is not properly configured.

 

There are three options:

  1. The devices on your network should use the 1910 as their default gateway and the 1910 would have a default gateway for one of your internet routers. And then follow step two as well.
  2. If you keep your network devices pointed to your internet routers as their default gateway, you need to add static routes to your internet routers that point back to the 1910 for the remote subnet: on the 192.168.17.0 router set 10.0.0.0/24 to 192.168.17.235 and on the 10.0.0.0 router set 192.168.17.0/24 to 10.0.0.235.
  3. Add static routes on each device that point to the other subnet through the 1910. For example, on windows use the "route -p add 10.0.0.0 mask 255.255.255.0 192.168.17.235" or "route -p add 192.168.17.0 mask 255.255.255.0 10.0.0.235"

 

Vince-Whirlwind
Honored Contributor
Solution

Re: Connecting two LAN

and

4. Windows firewall will block ICMP from a different subnet.

Francebia
Visitor

Re: Connecting two LAN

Hi Vince,

 

# 4 is the solution!

 

Many thanks

Francesco