How do I permanently add a route in Linux?

Khánh Đoan

New member
How do I permanently add a route in Linux?
Answer
To do this, you need to add a static route.
  • Add a temporary static route. If you wish to add one temporarily, simply run the ip route add command with the right network information: ip route add 172.16.5.0/24 via 10.0.0.101 dev eth0.
  • Add a permanent static route.
  • If you lose your internet connection.
 

Tìm kiếm

Back
Top