If my reading of the /etc/rc.d/init.d/network script is correct, the
ifconfig commands should be taken care of by the ifcfg* files in
/etc/sysconfig/network-scripts, and additional route commands are produced
with the help of /etc/sysconfig/static-routes. Both types of file are
produced by linuxconf, if that's what you use to help set up networking.
For example, the static-routes file is made or changed with linuxconf -->
Routing and gateways --> Set routes to alternate local nets. Or you
can edit static-routes yourself. The following is an example I made
of a file that unlike what linuxconf makes is self-explanatory,
but which, perhaps unlike what linuxconf makes, may have mistakes.
I haven't tried it out.
------------------------------------
Lines that don't begin with "any" are ignored. Consider them comments.
For example, the next line is a comment but the line after it should cause
/sbin/route add -net 161.73.54.7 netmask 255.255.255.0 eth0
any net 161.73.54.7 netmask 255.255.255.0 eth0
any host 161.75.55.8 eth1
Because of the two lines beginning with "any", if this file is
/etc/sysconfig/static-routes, the command "/etc/rc.d/init.d/network start"
(or restart) will produce two "/sbin/route ..." commands, in addition
to the ones it would produce without the file.
------------------------------------
On Thu, 9 Aug 2001, LinuxKH wrote:
> Hello List Members!
>
> I'm trying to manage the routing of a gateway. I have two network cards.
> I did the fresh install of SeaWolf. These cards drivers are loaded OK,
> when doing 'cat /etc/modules.conf' I saw them.
>
> When I used 'ifconfig' and 'route' to set routing. The problem is that I
> can't make them save for the next reboot. I also made changes manually in
> 'network', 'ifcfg-eth0' and 'ifcfg-eth1'.
> After rebooting, everything has gone. I know one way to add the commands
> at the end of 'rc.local', but I don't like this method. Because doing
> 'service network restart' I'll get lost the setting again. :-[
>
> What can I do else ? Any suggestions ?
>
> TIA.
>
> LinuxKH
> -------
> "Please, correct me if I'm wrong. THANKS!"
>
>
>
> _______________________________________________
> Seawolf-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/seawolf-list
>
--
Steven Yellin
_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list