Comware

 View Only
  • 1.  Routing between VLAN's

    Posted Mar 03, 2008 08:46 AM
    Hi all,

    I have an HP 5412zl switch. I want to set up a number of VLANS and route between them.

    One VLAN has addresses of 10.1.0.1 and upwards.

    The next has addresses of 10.1.4.1 and upwards.

    The subnet mask is 255.255.252.0.

    How can I set these up to allow communication between each other? Is my config OK for this? I cannot ping at all between then. I have IP routing enabled but that is about the level of my knowledge at the moment!

    All help gratefully received, I am somewhat of a beginner!


  • 2.  RE: Routing between VLAN's

    Posted Mar 03, 2008 01:47 PM
    what ip addr do you have on the vlan interfaces?

    with ip routing enabled and ip addr on the vlan interfaces for each subnet, you will have local routing and pinging between those subnets will work (as long as at least 1 port is active for any given vlan interface)...

    hth...jeff


  • 3.  RE: Routing between VLAN's

    Posted Mar 03, 2008 01:56 PM
    Thanks Jeff,

    Indeed you are right, I had not assigned an address for each VLAN.

    So thanks for that, however I now come across another problem. I have a NAT server for my internet, and although I can communicate with all VLANS, I cannot get out on the internet from anywhere but this box!

    An example is one VLAN is on 10.1.4.1 with devices for e.g 10.1.4.2 etc. Another VLAN is on 10.1.7.1 etc

    My NAT server is on 10.1.242.2, with the VLAN IP of 10.1.252.253.

    All subnet masks are on 255.255.252.0

    I added a static route by: ip route 0.0.0.0 0.0.0.0 10.1.242.253

    Am I anywhere close?!

    Thanks in advance!


  • 4.  RE: Routing between VLAN's

    Posted Mar 03, 2008 02:07 PM
    glad to assist :-)

    you are very close!!

    you added the route to the nat box, now the nat box needs to know how to get back to the 5412...

    you should be able to add a route statement to the nat box to point all the appropriate 10. addr back to the 5412 for the return path...

    hth...jeff


  • 5.  RE: Routing between VLAN's

    Posted Mar 04, 2008 07:30 AM
    OK, I have done that, but we atill have a problem!

    Here is where Im at,

    I have 7 VLANS, each with a subnet of 255.255.252.0.

    I have a Windows 2000 server running NAT on my WAN VLAN on 10.1.254.254. My VLAN address for this is 10.1.252.1.

    I have a Windows 2003 Server on 10.1.1.115 on the VLAN address 10.1.1.1 with subnets of 255.255.252.0. This server runs DNS.

    I have another VLAN on 10.1.5.1 with a PC on 10.1.5.50. This PC can ping my server using its IP address, but cannot ping using the name, even though I have it as its primary DNS server.

    I also cannot get onto the internet using any machine that is not on the 10.1.252.1 VLAN.

    Maybe my static route is wrong, but Im not really sure what it should be.

    I have a static route of 0.0.0.0 0.0.0.0 10.1.254.254

    My default gateway on the switch is set to 10.1.254.254 (My NAT box) and each PC has the VLAN address set as its Gateway.

    I have tried ip dns server-address priority 1 10.1.1.115 but to no avail.

    I need to be able to resolve DNS names between my VLAN's and see the internet. I suspect I am not far off but just need a push in the right direction!

    Thanks in advance!


  • 6.  RE: Routing between VLAN's

    Posted Mar 05, 2008 03:26 AM
    questions and comments:

    1) you said: I have a Windows 2000 server running NAT on my WAN VLAN on 10.1.254.254. My VLAN address for this is 10.1.252.1.

    q - what is the def g/w for this srvr?

    2) you said: I have a Windows 2003 Server on 10.1.1.115 on the VLAN address 10.1.1.1 with subnets of 255.255.252.0. This server runs DNS.

    q - what is the def g/w for this srvr? it needs to be 10.1.1.1

    3) you said: Maybe my static route is wrong, but Im not really sure what it should be.

    I have a static route of 0.0.0.0 0.0.0.0 10.1.254.254

    c - this should be correct, all nets that the 5412 doesn't know about should goto the nat box

    4) you said: I also cannot get onto the internet using any machine that is not on the 10.1.252.1 VLAN.

    q - what does the static route in the nat box look like? it needs to know about all your 10. nets, in some fashion, and how to get to them which is via 10.1.252.1

    5) you said: My default gateway on the switch is set to 10.1.254.254 (My NAT box)

    c - this config parm doesn't matter as its not used after a switch has the 'ip routing' command...this is left over from when the switch was a layer 2 function

    i do believe its getting close...

    cheers...jeff


  • 7.  RE: Routing between VLAN's

    Posted Mar 05, 2008 06:56 AM
    Jeff, I didnt have the right static routes!

    Take a bow!

    Thanks