|
From: <no...@so...> - 2002-04-13 15:17:22
|
Feature Requests item #492600, was opened at 2001-12-13 15:10 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=410646&aid=492600&group_id=34096 Category: None Group: None Status: Open Priority: 5 Submitted By: Heiko Zuerker (smiley73) Assigned to: Nobody/Anonymous (nobody) Summary: routing (route.conf) Initial Comment: write a script, which is reading /etc/route.conf and set's the routes for an example look at the SuSE distribution. ---------------------------------------------------------------------- >Comment By: Heiko Zuerker (smiley73) Date: 2002-04-13 10:17 Message: Logged In: YES user_id=112133 moved it back to the feature requests, because we shouldn't just use a script from another distribution, that's not "nice". But Friedl had a pretty good idea, here is his email from the mailing list: Ok, then why don't we add the routing entries to the /etc/sysconfig/nic/ files? Eg: /etc/sysconfig/nic/ifcfg-eth0 DHCP=no #DHCP=yes #DHCP=server ONBOOT=yes DEVICE=eth0 IP=10.90.1.200 NETMASK=255.255.255.0 #BROADCAST=10.90.1.255 MODULE=pcnet32 Suggested additions: DHCP=no #DHCP=yes #DHCP=server ONBOOT=yes DEVICE=eth0 IP=10.90.1.200 NETMASK=255.255.255.0 #BROADCAST=10.90.1.255 MODULE=pcnet32 DEFAULT=10.90.1.1 NETWORKS="10.90.2.0/24 10.1.0.0/16:10.90.1.30" This would produce (just from my mind, but it should work this way): # LANG=en netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 10.90.1.0 0.0.0.0 255.255.255.0 U 40 0 0 eth0 10.90.2.0 0.0.0.0 255.255.255.0 U 40 0 0 eth0 10.1.0.0 10.90.1.30 255.255.0.0 UG 40 0 0 eth0 0.0.0.0 10.90.1.1 0.0.0.0 UG 40 0 0 eth0 That should be all we need, shouldn't it? BTW someone please read the LSB if they have something to say about this matter. -- MfG / Regards Friedrich Lobenstock ---------------------------------------------------------------------- Comment By: Heiko Zuerker (smiley73) Date: 2002-04-11 17:43 Message: Logged In: YES user_id=112133 Arne provided a running script. Needs just to be checked and included. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=410646&aid=492600&group_id=34096 |