I'm trying to assign a static IP address to my new server. The server is up and running, and connected to the network with a dynamic (DHCP) address.
I modified my /etc/network/interfaces file to contain the following:
Code: Select all
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
#
source /etc/network/interfaces.d/*
#
# The loopback network interface
auto lo
iface lo inet loopback
#
# The primary network interface
auto enp46s0
iface enp46s0 inet static
address 192.168.1.101/24
gateway 192.168.1.1
I am simply missing what is wrong with this file.
Any help would be appreciated.