Advertisement
awalece

Interface Configuration of Ubuntu Server

Apr 16th, 2019
573
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.54 KB | None | 0 0
  1. vim /etc/network/interfaces
  2.  
  3. # Dual-stack WAN Interface
  4. auto enp1s0
  5. # IPv4 Config
  6. iface enp1s0 inet static
  7.         address 192.168.34.49
  8.         netmask 255.255.255.128
  9.         gateway 192.168.34.126
  10. # IPv6 Config
  11. iface enp1s0 inet6 static
  12.         autoconf 0
  13.         accept_ra 0
  14.         address 2401:ed80:1000::2
  15.         netmask 64
  16.         gateway 2401:ed80:1000::1
  17. ###########
  18. # IPv6-only LAN Interface
  19. auto enp2s0
  20. iface enp2s0 inet6 static
  21.         autoconf 0
  22.         accept_ra 0
  23.         address 2401:ed80:1000:7::1
  24.         netmask 64
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement