routing configuration

Discussion in 'Installation/Configuration' started by dimas, Aug 3, 2006.

  1. dimas

    dimas Member

    please help - i'm stuck with my routing configuration!

    i have 3 computers - 2 linux suse 10.1 and 1 windows xp pro. all computers have two network cards. one network card of each computer is used for Internet access, while the second card in each computer is connected to a switch. my goal is to set up a local network between these three computers so that the ips allocated to these second network cards are not 'visible' from the outside (the truth is, all computers are part of a bigger local network of my isp). the 'first' network cards have ips like 85.249.xxx.xxx (netmask 255.255.248.0 and default gateway is 85.249.237.1), and i allocated the 'second' cards ips 172.16.0.10, 172.16.0.20 and 172.16.0.30 with netmask 255.240.0.0.

    well, on each linux pc i made two files ifroute-<config-name> - where config-name are the names of my network interfaces - and placed them in /etc/sysconfig/network (at the same time i deleted the 'routes' file there).

    the 'first' internet interface has this entry in this config:
    default 85.249.237.1 - -

    and what should i write in the 'second' local interface config?

    I tried many things, but they always returned errors on boot...
     
  2. falko

    falko Super Moderator ISPConfig Developer

    What's in /etc/sysconfig/network?
     
  3. dimas

    dimas Member

    the usual stuff, i guess:
    config
    dhcp
    ifcfg-<config-name1>
    ifcfg-<config-name2>
    ifcfg-lo
    ifcfg.template
    ifroute-lo
    ifroute-<config-name1>
    ifroute-<config-name2>
    routes.YAST2save

    basically i just don't understand what should be written in the 'second' (non-internet) route interface config.
     

Share This Page