* Re: /sbin/route and 2.1.20 kernel
@ 1997-01-08 1:12 Ben Goodwin
0 siblings, 0 replies; 4+ messages in thread
From: Ben Goodwin @ 1997-01-08 1:12 UTC (permalink / raw)
I had this problem as well, and spent some time working on it.
I never really found out what.. but it looks like the kernel routing table
is now manipulated differently, and may need a new route binary. I posted
a message a week or two ago and got no response. Does anyone know of a fix?
I don't recall the actual command line I used to get around it.. You can,
if you play with the syntax a bit, get the routes added .. but it'll still
complain about it .. weird...
At 07:54 AM 1/8/97 +0800, you wrote:
>I compiled the new 2.1.20 kernel on both our Jensen box
>and our 486. The compiles succeeded without problems.
>On booting with the new kernel, the following 'route add'
>commands in the network setup scripts produced warning messages
>
> /sbin/ifconfig lo ...
>>>> /sbin/route add -net ...
> /sbin/ifconfig eth0 ...
>>>> /sbin/route add -net ...
>
>I am using RedHat 4.0 on our Jensen box, and Slackware 3.1
>on the 486. The warning messages are:
>
> SIOCADDRT: no such device
> route forgot to specify route netmask
>
>for each of the two 'route add' commands. So I decided to revise
>the route add commands as follows:
>
> /sbin/ifconfig lo ...
> /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 dev lo
> /sbin/ifconfig eth0 ...
> /sbin/route add -net a.b.c.0 netmask 255.255.255.0 dev eth0
>
>Now the warning messages disappeared on both the Jensen and the 486.
>But now I can only access hosts on our local net, but not hosts on
>the internet.
>
>I must be doing something wrong here. Please tell me. Thanks.
>
>-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
>
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* /sbin/route and 2.1.20 kernel
@ 1997-01-09 1:55 Pablo Manalastas
0 siblings, 0 replies; 4+ messages in thread
From: Pablo Manalastas @ 1997-01-09 1:55 UTC (permalink / 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
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: /sbin/route and 2.1.20 kernel
@ 1997-01-08 2:23 Przemek Klosowski
0 siblings, 0 replies; 4+ messages in thread
From: Przemek Klosowski @ 1997-01-08 2:23 UTC (permalink / raw)
/sbin/ifconfig lo ...
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 dev lo
/sbin/ifconfig eth0 ...
/sbin/route add -net a.b.c.0 netmask 255.255.255.0 dev eth0
Now the warning messages disappeared on both the Jensen and the 486.
But now I can only access hosts on our local net, but not hosts on
the internet.
You have to tell your computer how to reach the gateway to get to the
outside world:
/sbin/route add default gw your.gateway's.IP
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* /sbin/route and 2.1.20 kernel
@ 1997-01-07 23:54 Pablo Manalastas
0 siblings, 0 replies; 4+ messages in thread
From: Pablo Manalastas @ 1997-01-07 23:54 UTC (permalink / raw)
I compiled the new 2.1.20 kernel on both our Jensen box
and our 486. The compiles succeeded without problems.
On booting with the new kernel, the following 'route add'
commands in the network setup scripts produced warning messages
/sbin/ifconfig lo ...
>>> /sbin/route add -net ...
/sbin/ifconfig eth0 ...
>>> /sbin/route add -net ...
I am using RedHat 4.0 on our Jensen box, and Slackware 3.1
on the 486. The warning messages are:
SIOCADDRT: no such device
route forgot to specify route netmask
for each of the two 'route add' commands. So I decided to revise
the route add commands as follows:
/sbin/ifconfig lo ...
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 dev lo
/sbin/ifconfig eth0 ...
/sbin/route add -net a.b.c.0 netmask 255.255.255.0 dev eth0
Now the warning messages disappeared on both the Jensen and the 486.
But now I can only access hosts on our local net, but not hosts on
the internet.
I must be doing something wrong here. Please tell me. Thanks.
-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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1997-01-09 1:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-01-08 1:12 /sbin/route and 2.1.20 kernel Ben Goodwin
-- strict thread matches above, loose matches on Subject: below --
1997-01-09 1:55 Pablo Manalastas
1997-01-08 2:23 Przemek Klosowski
1997-01-07 23:54 Pablo Manalastas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox