Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: name server comments

...

Code Block
languagebash
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
# Second IP
auto eth0:1
iface eth0:1 inet static
address 64.73.220.111
gateway 64.73.220.1
netmask 255.255.255.0
# To test if really necessary.
# ns-nameservers 216.15.129.205 216.15.129.206

Based on my home server work, I might need a name server entry, but I am not convinced I do based on my readings. I understand resolv.conf is supposed to be the source for the name serve entrie and even the static ip entry will use it.entries are required for static entries. But in this this case, it is a second entry and resolv.conf has the name servers listed from the first dhcp assigned network card. Will test how this pans out without name server first then update here if needed.

References

Best article yet - https://www.garron.me/en/linux/add-secondary-ip-linux.html

...