Help routing

Bill Moran wmoran at potentialtech.com
Thu Jun 12 12:02:41 PDT 2003


warren maxwell wrote:
> Im setting up a serial line connection and i am unable to ping because it says no host. How do i set up my base local address to be 192.168.2.1? The commands i am running are as follows,
> slattach -h -l -n -s 19200 /dev/cuaa0
> ifconfig sl0 192.168.2.2 192.168.2.3 up
> 
> Do i need to add a route command like this?
> route add -net 192.168.2 192.168.2.0 255.255.255.0
> 
> Thanks for all the help in advance guys, much appreciated.
> Bryan

Check 'netstat -rn' and see if an appropriate route is in
there, if not you'll probably have to add it manually each
time you connect.  It seems that some types of interfaces
create a route automatically (ethernet, for example) while
others don't.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com



More information about the freebsd-questions mailing list