From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199701090155.JAA00433@tapa.admu.edu.ph> Date: Thu, 9 Jan 1997 09:55:03 +0800 (PST) From: Pablo Manalastas Subject: /sbin/route and 2.1.20 kernel 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