Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't set route table when NetworkManager is enabled
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
zenglanmu
n00b
n00b


Joined: 29 Oct 2009
Posts: 4

PostPosted: Wed Feb 25, 2015 7:01 am    Post subject: Can't set route table when NetworkManager is enabled Reply with quote

Hello everyone,

Currently I use the NetworkManager tool for configure my wire connection. It works fine expect when I trys to setup a VPN connection. Here is my ifconfig output:

Code:
enp5s0f2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 59.66.90.84  netmask 255.255.255.0  broadcast 59.66.90.255
        inet6 fe80::82fa:5bff:fe00:ebf1  prefixlen 64  scopeid 0x20<link>
        inet6 2402:f000:9:5a81:82fa:5bff:fe00:ebf1  prefixlen 64  scopeid 0x0<global>
        ether 80:fa:5b:00:eb:f1  txqueuelen 1000  (Ethernet)
        RX packets 10182  bytes 6053124 (5.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 6438  bytes 967511 (944.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 10  bytes 656 (656.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 10  bytes 656 (656.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vpn_vpn: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.7.109  netmask 255.255.255.0  broadcast 192.168.7.255
        inet6 fe80::2ac:22ff:feb8:613d  prefixlen 64  scopeid 0x20<link>
        ether 00:ac:22:b8:61:3d  txqueuelen 500  (Ethernet)
        RX packets 24  bytes 2052 (2.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 54  bytes 4483 (4.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

The interface "vpn_vpn" is created by the vpn client (Using Softether VPN because I need ipv6 support and it is easy to configure) and the ip address for vpn_vpn is obtained by using "dhcpcd vpn_vpn".

And here it is the route table output:
Code:

hasee-k670 vpnclient # route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         59.66.90.1      0.0.0.0         UG    100    0        0 enp5s0f2
default         192.168.7.1     0.0.0.0         UG    205    0        0 vpn_vpn
59.66.90.0      0.0.0.0         255.255.255.0   U     0      0        0 enp5s0f2
59.66.90.0      0.0.0.0         255.255.255.0   U     100    0        0 enp5s0f2
192.168.7.0     0.0.0.0         255.255.255.0   U     205    0        0 vpn_vpn


It can be seen that exists a default gateway entry for gw 59.66.90.1 and iface enp5s0f2. And the network traffic is still go through the enp5s0f2 interface rather than the vpn_vpn, which is not desired for me.

I had tried to use the "route del default gw 0.0.0.0 dev enp5s0f2" command to delete the default gateway. It works when I configure the enp5s0f2 manually (ifconfig enp5s0f2 up, dhcpcd .. etc). However, when the NetworkManager tool is enabled, the route table didn't see any change no matter how many times I type the command...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum