1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Two differen Subnets for Linux/Windows - how to configure?

Discussion in 'Networking Issues' started by df1paw, Aug 5, 2005.

  1. df1paw

    df1paw Network Guru Member

    Hallo!
    I'm using different PCs on my Network. Windows for Private and Linux for company issues.
    The Windows PCs get their IPs via DHCP from the WRT54G in 192.168.1.* range. The Linux mashines are configured using fixed IPs in the 10.1.0.* Range.
    How do I configure the Linux mashines to use the Router for connecting the internet without beeing in the same IP Range as the Windows PCs?
    The Router is the standard gateway on 192.168.1.1
    I thought
    route add -host 192.168.1.1 eth0
    route add -net 0/0 gw 192.168.1.1
    on the Linux PCs would solve the problem - but it didn't work...

    I think I have to add a route to the WRT54's "Advanced Routing" option, too.

    I hope anyone can provide me the correct settings for both: the linux and the router.


    Regards,
    Andreas Weller
     
  2. SankarDada

    SankarDada Network Guru Member

    changing the Ip address of router

    your linux computers is having an Ip address range 10.1.0.* range. just logon into the router setup page using windows pc by typing 192.168.1.1 on IE,and in the basic setup page change the LAN ip address of touter to the default gate way of your linux computers i.e 10.1.0.1. Then windows pc also will get an ip address in the same range as linux computer is having .so all the computers will be able to access the internet and all the computers will be in the same N/W so that you can communicate with eact other computers.
     
  3. RTSAnime

    RTSAnime Network Guru Member

    i think he wants the windows and the linux to have different subnets. You could use 2 routers, 1 for linux, 1 for windows
     
  4. df1paw

    df1paw Network Guru Member

    That's exactly what I wish to do:
    The IPs of Windows / Linux should not be altered.

    Regards,
    Andreas Weller
     
  5. ReDFlaG

    ReDFlaG Network Guru Member

    You must set up one of your linux box or one of your windows machine to act as a router: so you need to have a machine with 2 NIC. One NIC linked to 192.x.x.x. and other one to 10.x.x.x
    You have software solution on both system to filters incoming/outgoing packet to protect your subnets.

    That's the less expensive solution and the one that will offers you the finest packet filtering imho.

    If money isn't a matter then you can buy another router.
     
  6. df1paw

    df1paw Network Guru Member

    Hi!
    I think there must be a way doing this without two NICs because the two IP Ranges are applied to the same physical Network. There aren't two different physical nets.


    Regards,
    Andreas Weller
     
  7. Fluxor

    Fluxor Network Guru Member

    If you have one of the non-stock firmwares on the WRT54G you can probably create another vlan for your linux PC's and add another 10 range IP to that vlan and solve your problem that way.
     

Share This Page