Re: 2.1.x problems

Marc Duponcheel (mduponch@cisco.com)
Fri, 21 Mar 1997 11:49:36 +0100


> Hi there,
>
> I have been experiencing the following problems with all kernels of
> 2.1.X, every time I boot linux I get the following message(s):
>
> SIOCADDRT: no such device
> route forgot to specify route netmask
> SIOCADDRT: invalid argument =20
> SIOCADDRT: no such device
>
> I don't have any of those problems whith 2.0.27, and because of those
> problems, I don't have any loopback or ethernet devices.
>
> I believe that I have updated everything accorting to the readme files
> in the source files.
>
> Any help would be appreciated
>
> regards,

I use iproute for it, It allows a 'professional' way to specify routes.
Here is how I get off the LAN (171.68.128/24)
=========================================================================
#!/bin/sh

# loopback device
ifconfig lo 127.0.0.1
iproute add 127/8 dev lo

# ethernet device
IPADDR=171.68.128.13
NETMASK=255.255.255.0
BROADCAST=171.68.128.255
ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
NETWORK=171.68.128/24
iproute add ${NETWORK} dev eth0
DEFAULT=0.0.0.0/0
GATEWAY=171.68.128.1
iproute add ${DEFAULT} gw ${GATEWAY} metric 1 dev eth0
=========================================================================
Note the $DEFAULT which was 0.0.0.0/24 when I used
=========================================================================
#!/bin/sh

ifconfig lo 127.0.0.1 netmask 255.0.0.0 broadcast 127.255.255.255
route add -net 127.0.0.0 netmask 255.0.0.0 dev lo

IPADDR=171.68.128.13
NETMASK=255.255.255.0
NETWORK=171.68.128.0
BROADCAST=171.68.128.255
GATEWAY=171.68.128.1

ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
route add -net ${NETWORK} netmask ${NETMASK} dev eth0
route add default gw ${GATEWAY} netmask ${NETMASK} metric 1
=========================================================================

For one reason or another this did not work.

Greetings,

-- marc. \|||/
(o o)
--------------------ooO-(.)-Ooo------------------------------------
| | Cisco Systems Belgium |
| | | | Complex Antares |
| ||| ||| | 71, Avenue des Pleiades |
| ||||| ||||| | B-1200 Brussels |
| ..:|||||||:..:|||||||:.. | --------------- |
| | BELGIUM EUROPE |
|-------[ Cisco Systems ]---------- --------------------------------|
| Advanced Customer Support | alias: tacsuns@cisco.com |
| | e-mail: mduponch@cisco.com |
| | tel: +32 2 778 42 40 |
| Marc Duponcheel | GSM/cell: +32 75 46 46 13 |
| MIS analyst | beep/pager: +32 72 53 30 01 |
| | mduponch.pager@cisco.com |
----------------------------->8------------------------------------