From: Pablo Manalastas <pmana@tapa.admu.edu.ph>
Subject: /sbin/route and 2.1.20 kernel
Date: Thu, 9 Jan 1997 09:55:03 +0800 (PST) [thread overview]
Message-ID: <199701090155.JAA00433@tapa.admu.edu.ph> (raw)
After playing around with the /sbin/route command under the new
2.1.20 kernel, I think I have been able to properly configure
networking for a host connected to a router that is connected to the
Internet.
(a) For a i486 box running the 2.1.20 kernel:
/sbin/ifconfig lo 127.0.0.1 up
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 dev lo
/sbin/ifconfig eth0 $IPADDR up netmask $NETMASK broadcast $BROADCAST
/sbin/route add -net $NETWORK netmask $NETMASK dev eth0
/sbin/route add default gw $GATEWAY metric 1 netmask 0.0.0.0 dev eth0
the new kernel seems to require the /sbin/route command to specify
the netmask option. If the netmask is not supplied to the /sbin/route
command, a warning is issued.
(b) For a Jensen alpha box running the 2.1.20 kernel:
/sbin/ifconfig lo 127.0.0.1 up
/sbin/ifconfig eth0 $IPADDR up netmask $NETMASK broadcast $BROADCAST
/sbin/route add default gw $GATEWAY metric 1 netmask 0.0.0.0 dev eth0
This time, the 'route add -net' commands for the alpha produced the
warnings: 'SIOCADDRT: option not supported by device', and so I
decided to take them out.
In both cases (i386 and alpha), the routing table produced by the plain
'route' command gave the following entries:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
165.220.4.0 * 255.255.255.0 U 32767 0 0 eth0
default phnet1.admu.edu 0.0.0.0 UG 0 0 0 eth0
These seem to be the proper entries for a 'leaf node' connected to a
router, which in turn is connected to the Internet.
I want to thank those who responded to my earlier postings. Please tell
me if I am on the right track now. I believe I am, since these two machines
a functioning properly as internet hosts at present.
-Pablo-
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1997-01-09 1:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-01-09 1:55 Pablo Manalastas [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-01-08 2:23 /sbin/route and 2.1.20 kernel Przemek Klosowski
1997-01-08 1:12 Ben Goodwin
1997-01-07 23:54 Pablo Manalastas
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox