Setting Static IP Address

mascenzimascenzi Posts: 1New Member

Hello,
New to the forum. I'm having some issues regarding setting a static IP Address running Ubilinux.

here's where I'm at.

The general information that I've found has said that by editing /etc/network/interfaces with an address, mask, and gateway it is all that really needs to be done. However, no matter what directions I follow it never uses the IP address I assign. It always defaults to the dhcp address.

here is the current configuration of /etc/network/interfaces

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 enp1s0
iface enp1s0 inet static
address 10.4.0.253
netmask 255.255.255.0
gateway 10.4.0.1

I also followed here https://linuxconfig.org/how-to-setup-a-static-ip-address-on-debian-linux with no success.

I've never attempted to make the changes with the GUI, as I need to make it work via the cmdline as I won't have access to the UI at all.

Anyone, any ideas????

Comments

  • ccaldeccalde Posts: 172New Member, Emutex mod

    Hi @mascenzi ,

    Did you try to restart your service?
    sudo systemctl restart isc-dhcp-server

    Cheers!

Sign In or Register to comment.