Aruba & ProVision-based
1752710 Members
5962 Online
108789 Solutions
New Discussion

Routing between two subnets

 
E-Fexs
Collector

Routing between two subnets

I have two HP layer 3 switches,

One with the config (SWITCH1):

ip routing
vlan 1
   name "DATA"
   untagged 1-7,9-24
   ip address 192.168.200.78 255.255.255.0
   no untagged 8
   exit
vlan 2
   name "WIRELESS"
   untagged 8
   ip address 192.168.210.254 255.255.255.0
   exit
ip route 0.0.0.0 0.0.0.0 192.168.200.100
snmp-server community "public" unrestricted
no autorun
password manager
password operator


And the other with the config (SWITCH2):

ip routing
vlan 1
   name "WIRELESS"
   untagged 2-24
   ip address 192.168.210.100 255.255.255.0
   no untagged 1
   exit
vlan 2
   name "DATA"
   untagged 1
   ip address 192.168.200.64 255.255.255.0
   exit
snmp-server community "public" unrestricted
no autorun


They are connected via port 8 on Switch1 and port 1 on Switch2.

When I try to ping anything in the 192.168.210.0/24 range from Switch1 I get no response and when I try to ping anything in the 192.168.200.0/24 range from Swtich2 I get no response.

This is the first time I've tried using switches to route between subnets and I don't know if I'm missing something fundamental.

Any help would be appreciated.

3 REPLIES 3
E-Fexs
Collector

Re: Routing between two subnets

This is now fixed, with some help from the Spiceworks community I was able to see that I'd switched the vlan IDs and not tagged the switch to switch ports properly.

Packet-Ghost
Occasional Advisor

Re: Routing between two subnets

I think also you are missing a default route on switch2.

 

K.

paulgear
Esteemed Contributor

Re: Routing between two subnets

Thanks for reporting back your answer. Keeping VLAN ids consistent is quite important.

I suggest also having some sort of fixed mapping of VLAN ids to subnet ids in your IP addressing scheme. This will help you a lot as your network grows. In my environment, i use a /16 for the whole network, and i use the VLAN id as the 3rd octet of the IP address, e.g. VLAN 200 == 172.16.200.0/24.
Regards,
Paul