[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

route: SIOCADDRT: Invalid argument



When I type
ifconfig lo 127.0.0.1
route add -net 127.0.0.0
I get 
SIOCADDRT: Invalid argument

When I type 
IPADDR=192.168.0.4
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
GATEWAY=192.168.0.4
ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
route add -net ${NETWORK}

I get the same error

but my network works fine.

if I type
ping 192.168.0.1 it works

Any help will be appreciated.

What is the equivalent of these commands when using IP_ALIAS

Thanks
Oz Dror
-- 
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
NAME   Oz Dror, Los Angeles, California   
EMAIL  dror@earthlink.net                     <<Linux  since 8/15/94>>
PHONE  Fax (310) 474-3126
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

                    


Reply to: