Help routing
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 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help routing
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 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help routing
[Please keep freebsd-questions in the CC] warren maxwell wrote: - Original Message - From: Bill Moran [EMAIL PROTECTED] 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. Well i added the route command like this, route add -net 192.168.2 localhost 255.255.255.0, this allowed me to ping the 192.168.2.2 side of things but the 192.168.2.3 gave me this error, ping: sendto: Network dropped connection on reset Any ideas? Thanks once again in advance, I am a newbie at this linux stuff, but the one thing I love about is all the help from the community. Thanks :) Bryan Please send the complete output of 'ifconfig' and 'netstat -rn'. I'm wondering if there is a config problem elsewhere that is causing problems with the routing. -- Bill Moran Potential Technologies http://www.potentialtech.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help routing
Warren, Please user reply-all to keep [EMAIL PROTECTED] in the loop, partially for the sake of the mailing list archives, partially in case I get busy and don't have time/energy to answer your quetion myself. warren maxwell wrote: Please send the complete output of 'ifconfig' and 'netstat -rn'. I'm wondering if there is a config problem elsewhere that is causing problems with the routing. -- Bill Moran Potential Technologies http://www.potentialtech.com Ok doke here is ifconfig first, lp0: flags=8810pointopoint,simplex,multicast mtu 1500 lo0: flags=8049up,loopback,running,multicast mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 inet 127.0.0.1 netmask 0xff00 ppp0: flags=8010pointopoint,multicast mtu 1500 sl0: flags=a011up,pointopoint,link1,multicast mtu 52 inet 192.168.2.2--192.168.2.3 netmask 0xff00 faith0: flags=8002broadcast,multicast mtu 1500 Here is my netstat -rn InternetGateway Flags Ref Use NetifExpire Destination 127.0.0.1127.0.0.1 UH1 3 lo0 192.168.2 127.0.0.1 UGSc 0 3lo0 192.168.2.3192.168.2.2 UH0 5sl0 I'm not 100% sure, but try this: route delete 192.168.2.0/24 route add 192.168.2.0/24 192.168.2.3 Remember also that 192.168.2.3 must be properly set up as a gateway. If it's not, you can tweak this machine's config forever and never get anywhere. It got a little screwed up in the transmission, i hope this is a little easier to look at. If you turn off the automatic line mangling^H^H^H^H^H^H^H^Hwrapping in Outlook Express, you'll be much better off. -- Bill Moran Potential Technologies http://www.potentialtech.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]