935 B
935 B
Procedure
-
Sign in as root user
-
Open
/etc/network/interfaces
with nano, e.g.nano /etc/network/interfaces
-
Ensure something similar to the following exists for the primary adapter:
allow-hotplug eth0 iface eth0 inet static address 192.168.1.100/24 gateway 192.168.1.1 dns-nameservers 192.168.1.1
!!! info "Note"
Substitute `eth0` for the true interface name of the device that will connect you to the LAN
-
The
/24
is the CIDR format of having a netmask of255.255.255.0
. The non-CIDR equivalent is:address 192.168.1.100 netmask 255.255.255.0 # .../16 = 255.255.0.0 # .../21 = 255.255.248.0
-
-
Save and run
systemctl restart networking && ifup eth0
-
Run
ip address
and inspect the output for changes