Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. root@Andromeda:~# nmcli con show "Wired connection 1" | grep -i routes
  2. ipv4.routes: --
  3.  
  4. root@Andromeda:~# nmcli con modify "Wired connection 1" +ipv4.routes "188.88.88.88/23 172.16.2.1"
  5. root@Andromeda:~# nmcli connection up "Wired connection 1"
  6. Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/8)
  7. root@Andromeda:~# nmcli con show "Wired connection 1" | grep -i routes
  8. ipv4.routes: { ip = 188.88.88.88/23, nh = 172.16.2.1 }
  9.  
  10. root@Andromeda:~# route
  11. Kernel IP routing table
  12. Destination Gateway Genmask Flags Metric Ref Use Iface
  13. default speedport-entry 0.0.0.0 UG 100 0 0 enp3s0
  14. 10.10.10.0 0.0.0.0 255.255.255.240 U 0 0 0 br-f8186d7831df
  15. link-local 0.0.0.0 255.255.0.0 U 1000 0 0 enp3s0
  16. 172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
  17. 192.168.1.0 0.0.0.0 255.255.255.0 U 100 0 0 enp3s0
  18. root@Andromeda:~# ip route
  19. default via 192.168.1.1 dev enp3s0 proto dhcp metric 100
  20. 10.10.10.0/28 dev br-f8186d7831df proto kernel scope link src 10.10.10.1 linkdown
  21. 169.254.0.0/16 dev enp3s0 scope link metric 1000
  22. 172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
  23. 192.168.1.0/24 dev enp3s0 proto kernel scope link src 192.168.1.6 metric 100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement