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:56] – ↷ Page name changed from linux:debian:static-ip-address to linux:debian:static-ip-address-route Zyzonixlinux:debian:static-ip-address-route [2024/12/27 22:22] (current) – [Static route] Zyzonix
Line 21: Line 21:
  
 //Sourced from [[https://wiki.debian.org/NetworkConfiguration|wiki.debian.org/NetworkConfiguration]]// //Sourced from [[https://wiki.debian.org/NetworkConfiguration|wiki.debian.org/NetworkConfiguration]]//
 +
 +==== Static route ====
 +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>
 +Example:
 +''ip route add 10.205.0.0/24 gw 10.0.0.3''
 +
  
 ==== Static route for LXC ==== ==== Static route for LXC ====
Line 33: 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.1735307790.txt.gz
  • Last modified: 2024/12/27 14:56
  • by Zyzonix