Ubuntu 管理心得

搜尋此網誌

2021年4月18日 星期日

[SOLVED] Add nic for creating a subset, dns cannot works,networkmanager priority

sudo mv /etc/resolv.conf /etc/resolve.conf_orig
sudo ln -s /run/resolvconf/resolv.conf /etc/
 
 
The solution for me is to set the network interface priority by setting the metric. 

Edit 網路連線 -> 有線連線2 -> IPv4 -> 路由(R)…,設定度量(Metric)為 99999 :

route -n shows:

chiao@kpchiao9600k:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.50.1    0.0.0.0         UG    101    0        0 eno1
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 enp3s0
192.168.0.0     0.0.0.0         255.255.255.0   U     100    0        0 enp3s0
192.168.0.0     192.168.0.1     255.255.255.0   UG    99999  0        0 enp3s0
192.168.50.0    0.0.0.0         255.255.255.0   U     101    0        0 eno1
192.168.51.0    0.0.0.0         255.255.255.0   U     0      0        0 vmnet1
192.168.188.0   0.0.0.0         255.255.255.0   U     0      0        0 vmnet8

沒有留言:

張貼留言

網誌存檔