Static IP address setup

Issues related to configuring your network
Post Reply
ironarmchad
Posts: 3
Joined: 2015/05/28 18:57:42

Static IP address setup

Post by ironarmchad » 2015/05/28 19:41:11

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.
The attachment netConfigEditted.png is no longer available
Attachments
netConfigEditted.png
netConfigEditted.png (39.76 KiB) Viewed 1419 times

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Static IP address setup

Post by TrevorH » 2015/05/28 20:44:17

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

ironarmchad
Posts: 3
Joined: 2015/05/28 18:57:42

Re: Static IP address setup

Post by ironarmchad » 2015/06/01 16:29:35

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

igsmigs88
Posts: 29
Joined: 2014/07/23 20:46:29

Re: Static IP address setup

Post by igsmigs88 » 2015/06/03 07:57:20

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

ironarmchad
Posts: 3
Joined: 2015/05/28 18:57:42

Re: Static IP address setup

Post by ironarmchad » 2015/06/03 18:32:50

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.

Post Reply