On Sun, Nov 24, 2002 at 07:23:06PM +0100, Carlo Malfatti wrote: > > Now I can connect with: > pptp 10.0.0.138 > route del default gw `route -n|awk '$1=="0.0.0.0" {print $2}'|head -1` > route add default gw `ifconfig ppp0|grep "P-t-P"|awk '{print $3}'|cut -d > ':' -f 2`
I have this in my /etc/rc.d/rc.local ip route del default pptp 10.0.0.138 A question for the list at large: Is it possible to do this in a cleaner way? I imagine you can change the default route from eth0 to ppp0 but I didn't find out when I read the docs. > And disconnect (if I need) with: > killall pppd ; killall pptp ; rm -rf /var/run/pptp/ "pptp stop" will do just as well, I think. > I've found some hint in a french article on the web and, considering I > don't speak French, I still need to figure out the particulars. If you need any translation help, email me off-list and I'll lend a hand. Emmanuel -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list