iDxMan
12-16-2000, 12:02 AM
I'm having problems with wvdial (or perhaps pppd) setting the correct route when I dialup.
By default windows sets a new default route, so all activity goes through the modem, but Linux does not.
Here's an example.
my ip: 10.20.211.21
destination ip: 10.20.50.1
route:
Destination Gateway Genmask Flags Metric Ref Use Iface
10.20.211.21 * 255.255.255.255 UH 0 0 0 ppp0
I can of course manually delete this route then add my own via:
route add -net 10.0.0.0 netmask 0.0.0.0 dev ppp0
But how can I have the correct route set upon dialup? (without the extra setup of typing these commands, or running a shell script)
-r
By default windows sets a new default route, so all activity goes through the modem, but Linux does not.
Here's an example.
my ip: 10.20.211.21
destination ip: 10.20.50.1
route:
Destination Gateway Genmask Flags Metric Ref Use Iface
10.20.211.21 * 255.255.255.255 UH 0 0 0 ppp0
I can of course manually delete this route then add my own via:
route add -net 10.0.0.0 netmask 0.0.0.0 dev ppp0
But how can I have the correct route set upon dialup? (without the extra setup of typing these commands, or running a shell script)
-r