Flushing the IP routing table
Chris Norman
cnorman at rnibncw.ac.uk
Thu Jan 12 23:34:42 UTC 2006
Hi.
I set a default route for the hole system in /etc/sysconfig/network with:
gateway=192.168.0.1 below the hostname line, then restarted the network
service.
But even now when I try and telnet to freeshell.org on port 23 I get the
message:
freeshell.org/telnet: Temporary failiar in name resolution. Why am I still
getting this problem? I had it working last term, and I still can't get the
192.168.0.0 and 169.254.0.0 lines out of the table, but there is a default
line below it.
Cheers.
Chris Norman
<!-- chris.norman4 at ntlworld.com -->
Selling cheap but functional shell accounts.
----- Original Message -----
From: "Craig McLean" <craig at fukka.co.uk>
To: "For users of Fedora Core releases" <fedora-list at redhat.com>
Sent: Thursday, January 12, 2006 7:38 AM
Subject: Re: Flushing the IP routing table
-----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-----
--
fedora-list mailing list
fedora-list at redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
More information about the fedora-list
mailing list