How do I create a static route in Linux?

Nam Phong

New member
How do I create a static route in Linux?
Answer
To do this, you need to add a static route.
  1. 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. …
  2. Add a permanent static route. …
  3. If you lose your internet connection.
 

Tìm kiếm

Back
Top