Advertisement
plirof2

linux /etc/network/intefaces

Jun 6th, 2023
1,096
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.58 KB | None | 0 0
  1. #Sample file to assign multiple IPs on a local schsrv PC. This helps when you have multiple routers on same LAN
  2. # interfaces(5) file used by ifup(8) and ifdown(8)
  3. # Include files from /etc/network/interfaces.d:
  4. source /etc/network/interfaces.d/*
  5. allow-hotplug eth0
  6. iface eth0 inet static
  7.     address 192.168.1.200/24
  8. iface eth0 inet static
  9.     address 10.131.19.200/24
  10. iface eth0 inet static
  11.     address 10.131.19.199/24
  12. iface eth0 inet static
  13.     address 192.168.1.199/24
  14.  
  15.  
  16. # The loopback network interface
  17. auto lo
  18. iface lo inet loopback
  19.  
  20. # The primary network interface
  21. allow-hotplug eth0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement