Flushing the IP routing table

Craig McLean craig at fukka.co.uk
Thu Jan 12 15:38:02 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris Norman wrote:
[snip]
> I want one to let me out of the network, that can be added. I did it last 
> time, but I've restarted since and it's deleted it, any ideas why?

Check out /usr/share/doc/initscripts-8.11.1/sysconfig.txt (or similar).
There's a load of info in there.

In short, static routes can be added in many ways.

For complex multi-route solutions, routes can be added by using the
/etc/sysconfig/network-scripts/route-<interfacename> file using:
ADDRESSn=<network address>
NETMASKn=<network mask>
GATEWAYn=<gateway IP address>

The "n" can be any integer number, but is expected to be monotonically
increasing and counting starts from 0.

If you only have one default route on the whole system, it can be
specified in /etc/sysconfig/network using:

GATEWAY=<IP Address>
GATEWAYDEV=<Interface> <--- Optional interface to use for route

Default routes per-interface can be specified in
/etc/sysconfig/network-scripts/ifcfg-<interfacename> with:

GATEWAY=<IP Address>

Hope this helps,
C.

- --
Craig McLean		http://fukka.co.uk
craig at fukka.co.uk	Where the fun never starts
	Powered by FreeBSD, and GIN!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDxnfaMDDagS2VwJ4RAsSqAJ4rHixcfz1XWjsy41D3Km24vBwA9QCgy0YW
FMj4vsM532W6l6WKxLeee5Y=
=JjpV
-----END PGP SIGNATURE-----




More information about the fedora-list mailing list