[SLE] Netmask error /sbin/route
Hi guys, I'm in the process of installing a lan based on SuSE Linux 6.2. I'm using one of the computers as a gateway to the Internet on a dialup connection. When I start up a client machine on the network I get the boot time error message: Error while executing: /sbin/rout add -net 192.168.0.1 netmask 255.255.255.0 dev eth0 route: netask doesn't match rout address Failed services in runlevel 2: route 1. Does this mean that I have to change the netmask to 255.255.255.255? 2. Or something else? 3. Whose netmask do have I to change? 4. Where do I change the netmaks entry? TIA, Elan -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hi Elan and all,
I'm in the process of installing a lan based on SuSE Linux 6.2. I'm using one of the computers as a gateway to the Internet on a dialup connection.
When I start up a client machine on the network I get the boot time error message: Error while executing: /sbin/rout add -net 192.168.0.1 netmask 255.255.255.0 dev eth0 route: netask doesn't match rout address Failed services in runlevel 2: route
OK, I'm not sure what you're trying to do here. For a start, like it says, the netmask doesn't match the route address. The route command you have given has the -net flag, and the right netmask for a network, but the IP address given is that of a specific computer. If you really want this route command to point at the computer 192.168.0.1 then issue this command: /sbin/route add -host 192.168.0.1 netmask 255.255.255.255 eth0 If this command was trying to point to network (most likely), then replace the 1 at the end of the IP address with a 0 to give: /sbin/route add -net 192.168.0.0 netmask 255.255.255.0 eth0 Finally, if the computer 192.168.0.1 is the gateway, then the command you want is: route add default gw 192.168.0.1 eth0 I'm afraid that's all the help I can give without knowing more about what you are trying to do with that command. Hope that helps, Chris -- __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hi Elan, On Mon, 29 Nov 1999, Elan wrote: icimjs > Hi guys, icimjs > icimjs > I'm in the process of installing a lan based on SuSE Linux 6.2. I'm using icimjs > one of the computers as a gateway to the Internet on a dialup connection. icimjs > icimjs > When I start up a client machine on the network I get the boot time error icimjs > message: icimjs > Error while executing: /sbin/rout add -net 192.168.0.1 icimjs > netmask 255.255.255.0 dev eth0 icimjs > route: netask doesn't match rout address icimjs > Failed services in runlevel 2: route icimjs > icimjs > 1. Does this mean that I have to change the netmask to 255.255.255.255? icimjs > 2. Or something else? icimjs > 3. Whose netmask do have I to change? icimjs > 4. Where do I change the netmaks entry? icimjs > icimjs > TIA, icimjs > 192.168.0.1 is NOT a network!: it's a host. If you type 'man route' you will realize that either you want to add a network to the kernel routing table (then /sbin/route add -net 192.168.0.0 netmask 255.255.255.0 dev eth0 is mandatory) or a host (/sbin/route add -host 192.168.0.1 netmask 255.255.255.255 dev eth0). You can try from the console (just type the former lines and 'route del' as applicable) and later, you can see what it happens (netstat -r, ping,). Once you will be sure what the config you desire is, write it to "/etc/route.conf" note: be careful about the order you write the default route and outer network route: (here it is mine) 193.xxx.xxx.xxx 0.0.0.0 255.255.255.0 eth0 default 193.xxx.xxx.1 good luck jl icimjs > Elan icimjs > icimjs > icimjs > -- icimjs > To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com icimjs > For additional commands send e-mail to suse-linux-e-help@suse.com icimjs > Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/ icimjs > icimjs > ========== ____<E-MAILS>_____________________________ Jose Luis Garcia Pacheco | jlgp@jlgarciapacheco.virtualave.net | | jgarciay@supelec-rennes.fr | \|||||||/ |___<WEBS>_______________________________| < o o > | http://jlgarciapacheco.virtualave.net | \ o / |----------------------------------------| ---oOOo-------oOOo--- | 6, Av. de Belle Fontaine.Logement C-209| *ETSI. Telecom. Univ | 35510 Cesson-Sevigne. France. | Politecnica UPM. SPAIN |___<Tf.>________________________________| *SUPELEC (ISR). FRANCE |(33) [0]2-99-84-47-27 (local: 3209) | +----------------------------------------+ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (3)
-
chris.reeves@iname.com
-
icimjs@loop.com
-
jgarciay@supelec-rennes.fr