SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
the ipconfig command gives the correct output, as does route print. I know the cable works, casue i've used it already for a few hours this morning. I'm beginning to doubt the network card in the linux machine - its a 3com etherlink III ISA card
Well, basically you shouldn't need to setup the gateway by hand with route add. If you need it then something is wrong with your installation.
Try:
/etc/rc.d/rc.inet1 stop
/etc/rc.d/rc.inet1 start
then try:
route -n
which should list all of your routes, including a default route (Destination 0.0.0.0) going via eth0. If this is not the case (it means that your installation is not ok and) you shold try with
route add default gw eth0
I'm not sure this last command has correct syntax and I can't check it at the moment, just read 'man route' and play a bit with 'dev' 'netmask' 'gw' and so on. Basically you should have at the end:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 1 0 0 eth0
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.