Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:debian:static-ip-address-route [2024/12/27 14:57] – [Static route for LXC] Zyzonixlinux:debian:static-ip-address-route [2024/12/27 22:22] (current) – [Static route] Zyzonix
Line 23: Line 23:
  
 ==== Static route ==== ==== Static route ====
-Just run:+To show static routes: 
 +<code bash>ip route</code> 
 + 
 +To add a static route run:
 <code bash>ip route add <network>/<netmask> via <gateway></code> <code bash>ip route add <network>/<netmask> via <gateway></code>
 Example: Example:
Line 40: Line 43:
  
 //→ tested with a Proxmox CT// //→ tested with a Proxmox CT//
 +
 +
 +//Sourced from [[https://forum.proxmox.com/threads/lxc-container-and-static-route.43411/|forum.proxmox.com  LXC Container and static route]]//
  • linux/debian/static-ip-address-route.1735307838.txt.gz
  • Last modified: 2024/12/27 14:57
  • by Zyzonix