So I have been trying to set-up a static IP for a server that I am running CentOS 7 for. I have tried several different set-up guides using and not using Network Manager but all I have managed to do so far is to either nothing (dhcp assigns IP and nothing changes on the system) or removed internet access. Could anyone give me any tips on what might be going wrong. The current set-up is based on this guide: http://ask.xmodulo.com/configure-static ... ntos7.html, using the "Configure Static IP Address without Network Manager". I have tried with Network Manager as well to no avail. I have also attached the configuration file (with some of the computer/network specific things edited out).
Any help is appreciated.
Static IP address setup
-
- Posts: 3
- Joined: 2015/05/28 18:57:42
Static IP address setup
- Attachments
-
- netConfigEditted.png (39.76 KiB) Viewed 1420 times
Re: Static IP address setup
Congratulation, you managed to mask out from your picture all useful information that anyone might have used to help you.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 3
- Joined: 2015/05/28 18:57:42
Re: Static IP address setup
I am not sure why you need the specific values as they are system specific but here they are:
HWADDR=b8:97:5a:87:b3:90
IPADDR=128.143.18.28
NETMASK=255.255.255.0
NAME=enp2s0
UUID=db4372cc-305b-4d08-8c32-b0225330d07d
HWADDR=b8:97:5a:87:b3:90
IPADDR=128.143.18.28
NETMASK=255.255.255.0
NAME=enp2s0
UUID=db4372cc-305b-4d08-8c32-b0225330d07d
Re: Static IP address setup
hi,
..
just do it
# systemctl stop NetworkManager
# systemctl disable NetworkManager
i dont see GATEWAY=something like 192.168.1.1 --in your conf (ip from router)
also in /etc/resolv.conf put
nameserver 8.8.8.8
# systemctl restart network.service
done
..
just do it
# systemctl stop NetworkManager
# systemctl disable NetworkManager
i dont see GATEWAY=something like 192.168.1.1 --in your conf (ip from router)
also in /etc/resolv.conf put
nameserver 8.8.8.8
# systemctl restart network.service
done
-
- Posts: 3
- Joined: 2015/05/28 18:57:42
Re: Static IP address setup
Seems to have worked. Thanks. Given the things I have tried and in different combinations the key here was hard disabling NetworkManager (if anyone is following in my footsteps). Thanks igsmigs88.