Re: Flushing the IP routing table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----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@xxxxxxxxxxx	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-----


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux