Wired Intelligent Edge

 View Only
  • 1.  Routing between two subnets

    Posted Nov 01, 2012 11:35 AM

    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.


    #vlans
    #routing
    #switches
    #Networking
    #subnets


  • 2.  RE: Routing between two subnets

    Posted Nov 01, 2012 01:33 PM

    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.



  • 3.  RE: Routing between two subnets

    Posted Nov 01, 2012 05:10 PM

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

     

    K.



  • 4.  RE: Routing between two subnets

    Posted Nov 01, 2012 07:58 PM
    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.