[求助]双网卡,特定网站走特定网卡。
Tofloor
poster avatar
qq420100523
deepin
2018-09-12 18:03
Author
本帖最后由 qq420100523 于 2018-9-12 10:04 编辑

wifi连接的是公司的公网wifi,有一些网络访问不了,手机使用usb连接电脑,识别为有线网卡,现在的情况是双网卡,我希望默认走公司wifi,特定网站走有线网络。
  1. zwei@zwei-PC:~$ route -n
  2. Kernel IP routing table
  3. Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  4. 0.0.0.0         172.20.10.1     0.0.0.0         UG    100    0        0 eth0
  5. 0.0.0.0         192.168.103.254 0.0.0.0         UG    600    0        0 wlp2s0
  6. 172.20.10.0     0.0.0.0         255.255.255.240 U     100    0        0 eth0
  7. 192.168.100.0   0.0.0.0         255.255.252.0   U     600    0        0 wlp2s0
  8. zwei@zwei-PC:~$ ip route show
  9. default via 172.20.10.1 dev eth0 proto dhcp metric 100
  10. default via 192.168.103.254 dev wlp2s0 proto dhcp metric 600
  11. 172.20.10.0/28 dev eth0 proto kernel scope link src 172.20.10.10 metric 100
  12. 192.168.100.0/22 dev wlp2s0 proto kernel scope link src 192.168.102.203 metric 600
  13. zwei@zwei-PC:~$ ifconfig -a
  14. enp1s0: flags=4099  mtu 1500
  15.         ether 54:e1:ad:0d:c2:6a  txqueuelen 1000  (Ethernet)
  16.         RX packets 0  bytes 0 (0.0 B)
  17.         RX errors 0  dropped 0  overruns 0  frame 0
  18.         TX packets 0  bytes 0 (0.0 B)
  19.         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

  20. eth0: flags=4163  mtu 1500
  21.         inet 172.20.10.10  netmask 255.255.255.240  broadcast 172.20.10.15
  22.         inet6 fe80::5b88:bb1c:de1b:3a93  prefixlen 64  scopeid 0x20
  23.         ether 92:3c:92:0f:df:61  txqueuelen 1000  (Ethernet)
  24.         RX packets 41  bytes 5175 (5.0 KiB)
  25.         RX errors 0  dropped 1  overruns 0  frame 0
  26.         TX packets 55  bytes 6298 (6.1 KiB)
  27.         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

  28. lo: flags=73  mtu 65536
  29.         inet 127.0.0.1  netmask 255.0.0.0
  30.         inet6 ::1  prefixlen 128  scopeid 0x10
  31.         loop  txqueuelen 1000  (Local Loopback)
  32.         RX packets 92  bytes 7080 (6.9 KiB)
  33.         RX errors 0  dropped 0  overruns 0  frame 0
  34.         TX packets 92  bytes 7080 (6.9 KiB)
  35.         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

  36. wlp2s0: flags=4163  mtu 1500
  37.         inet 192.168.102.203  netmask 255.255.252.0  broadcast 192.168.103.255
  38.         inet6 fe80::55c6:6aad:c9f1:f48b  prefixlen 64  scopeid 0x20
  39.         ether c8:3d:d4:a3:96:7b  txqueuelen 1000  (Ethernet)
  40.         RX packets 49990  bytes 17803177 (16.9 MiB)
  41.         RX errors 0  dropped 0  overruns 0  frame 0
  42.         TX packets 12742  bytes 1814622 (1.7 MiB)
  43.         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Copy the Code
Reply Favorite View the author
All Replies

No replies yet