Re: ifconfig and route in a shell script

2002-05-25 Thread Aditya
your default gateway should be on a directly connected network; 10.0.2.1 is not in 10.0.1.0/24 and so your machine doesn't know how to get to it -- your default gateway needs to be of the form 10.0.1.x, probably 10.0.1.1 Aditya On Sat, May 25, 2002 at 09:36:17AM -0700, Vinod wrote: > i had some

ifconfig and route in a shell script

2002-05-25 Thread Vinod
i had some problems with a script of mine. #!/bin/sh ifconfig wi0 10.0.1.5 netmask 255.255.255.0 route delete default route add default 10.0.2.1 i get a host 10.0.2.1 unreachable message when i run this script.then i put the ifconfig in a seperate script and ran it first and then the route co