Advertisement
jpdborgna

/etc/network/interfaces

Sep 17th, 2021
1,372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.61 KB | None | 0 0
  1. # This file describes the network interfaces available on your system
  2. # and how to activate them. For more information, see interfaces(5).
  3.  
  4. source /etc/network/interfaces.d/*
  5.  
  6. # The loopback network interface
  7. auto lo
  8. iface lo inet loopback
  9.  
  10. # The primary network interface
  11. allow-hotplug enp1s0
  12. auto enp1s0
  13. iface enp1s0 inet static
  14.     address 192.95.7.XX
  15.     netmask 255.255.255.252
  16.     post-up ip route add 192.95.7.254 dev enp1s0
  17.     gateway 192.95.7.254
  18.  
  19. # The primary network interface
  20. allow-hotplug enp7s0
  21. auto enp7s0
  22. iface enp7s0 inet static
  23.     address 192.168.0.XX
  24.     netmask 255.255.255.0
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement