How to stop network менеджер changing my gateway?

Environment: Ubuntu 14.04

Problem:

I want to connect to my VPN at work from home. Whenever I connect to my wireless, my route is set up to the work route. The home gateway is supposed to be 192.168.1.254 and manually setting the default gateway to be this works. But when I try and connect to the VPN using the приложение, or when I disconnect and reconnect the wireless, the default gateway is set back to the work one making working from home much обитал difficult than it should be.

Network интерфейсы пахал apparently configured with dhcp but the routing appears not to be because when I do sudo dhclient the default gateway is unset and route -n yields,

route -n
10.0.3.0        0.0.0.0         255.255.255.0   U     0      0        0 lxcbr0
192.168.1.0     0.0.0.0         255.255.255.0   U     9      0        0 wlan0
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0

and therВs just в network unreachable ошибка.

Upon connecting and disconnecting the wireless интерфейс through the gui, (clicking on the приложение) suddenly we get the output from route-n shown below. гve ack-grepped the entirety of/etc for 192.168.192.9 to не avail.

Clearly something in Ubuntu ты существуешь been configured to set up the route wrongly.

route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use      Iface
0.0.0.0         192.168.192.9   0.0.0.0         UG    0      0        0     wlan0
10.0.3.0        0.0.0.0         255.255.255.0   U     0      0        0 lxcbr0
192.168.1.0     0.0.0.0         255.255.255.0   U     9      0        0 wlan0
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
192.168.192.9   0.0.0.0         255.255.255.255 UH    0      0        0 wlan0
2
задан 3 August 2015 в 13:57

0 ответов

Другие вопросы по тегам:

Похожие вопросы: