networking - Ubuntu Server 12.10 3g modem connection established but not used -


our server has lan (dhcp) connection internal network , 3g (via usb dongle) internet. internet access should not exposed internal network , vice versa.

to able use 3g modem followed 2 manuals:

https://askubuntu.com/questions/143989/3g-usb-modem-not-working-in-12-04

http://forums.gentoo.org/viewtopic-t-766982.html

now when wvdial provider_name connection established. interface , has ip, dns etc setup according ifconfig

however whenever try ping public internet server still trying use lan network , not ppp interface.

how can solve it?

ps: i've tried following - put auto ppp0 iface ppp0 inet wvdial /etc/network/interfaces before auto eth0 , on start brings ppp0 interface up, unplug cable lan , restart, after works fine, if restart server lan cable plugged in, still using eth0 gateway default!

the output ip route show:

default via 192.168.1.1 dev p2p1  10.64.64.64 dev ppp0  proto kernel  scope link  src 172.30.50.98  192.168.1.0/24 dev p2p1  proto kernel  scope link  src 192.168.1.109  

i know there way use route2 load balance between interfaces, in manuals find use static ip , dns, whereas in case of 3g connection not possible do...

ok, found it. command setting default routing interface is:

$ route add default dev %interface_name% 

the issue setting ppp interface default should done after interface can take time. solution created upstart task runs after else done , sets default interface


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -