Hello, I want my CentOS 6.5 computer to have a static IP. Currently I get the IP I want because I have my router assign it on the basis of mac address. I placed the following file as: /etc/sysconfig/networking-scripts/eth0
DEVICE="eth0" BOOTPROTO=static HWADDR=00:1F:D0:9E:AE:67 ONBOOT=yes TYPE=Ethernet USERCTL=no IPV6INIT=no PEERDNS=yes NETMASK=255.255.255.0 IPADDR=192.168.0.99 GATEWAY=192.168.0.1 NM_CONTROLLED=no
I also disabled Network Manager with chkconfig.
It didn't work. When I rebooted I had no IP address for eth0. Should I leave all the other scripts in /etc/sysconfig/networking-scripts unchanged?
Suggestions would be appreciated.
Thank you, Joe
Not sure if the problem, but BOOTPROTO=static should be BOOTPROTO=none. Eric Falbe On 05/15, Joseph Hesse wrote:
Hello, I want my CentOS 6.5 computer to have a static IP. Currently I get the IP I want because I have my router assign it on the basis of mac address. I placed the following file as: /etc/sysconfig/networking-scripts/eth0
DEVICE="eth0" BOOTPROTO=static HWADDR=00:1F:D0:9E:AE:67 ONBOOT=yes TYPE=Ethernet USERCTL=no IPV6INIT=no PEERDNS=yes NETMASK=255.255.255.0 IPADDR=192.168.0.99 GATEWAY=192.168.0.1 NM_CONTROLLED=no
I also disabled Network Manager with chkconfig.
It didn't work. When I rebooted I had no IP address for eth0. Should I leave all the other scripts in /etc/sysconfig/networking-scripts unchanged?
Suggestions would be appreciated.
Thank you, Joe _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
I've always known the config file to be /etc/sysconfig/network-scripts/ifcfg-eth0
Sample: DEVICE=eth0 BOOTPROTO=static ONBOOT=yes TYPE=Ethernet IPADDR=xxx.xxx.xxx.xxx NETMASK=255.255.255.xxx DEFROUTE=yes IPV4_FAILURE_FATAL=yes IPV6INIT=yes NETWORKING_IPV6=yes NAME="System eth0" HWADDR=xx:xx:xx:xx:xx:xx
IP addresses changed to protect the guilty :)
Hopes this helps...
Richard
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Eric Falbe Sent: Thursday, May 15, 2014 3:47 PM To: CentOS mailing list Subject: Re: [CentOS] Set static IP
Not sure if the problem, but BOOTPROTO=static should be BOOTPROTO=none. Eric Falbe On 05/15, Joseph Hesse wrote:
Hello, I want my CentOS 6.5 computer to have a static IP. Currently I get the IP I want because I have my router assign it on the basis of mac address. I placed the following file as: /etc/sysconfig/networking-scripts/eth0
DEVICE="eth0" BOOTPROTO=static HWADDR=00:1F:D0:9E:AE:67 ONBOOT=yes TYPE=Ethernet USERCTL=no IPV6INIT=no PEERDNS=yes NETMASK=255.255.255.0 IPADDR=192.168.0.99 GATEWAY=192.168.0.1 NM_CONTROLLED=no
I also disabled Network Manager with chkconfig.
It didn't work. When I rebooted I had no IP address for eth0. Should I leave all the other scripts in /etc/sysconfig/networking-scripts unchanged?
Suggestions would be appreciated.
Thank you, Joe _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
_______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
----- Original Message -----
From: "Joseph Hesse" joehesse@gmail.com To: centos@centos.org Sent: Thursday, May 15, 2014 12:41:09 PM Subject: [CentOS] Set static IP
Hello, I want my CentOS 6.5 computer to have a static IP. Currently I get the IP I want because I have my router assign it on the basis of mac address. I placed the following file as: /etc/sysconfig/networking-scripts/eth0
DEVICE="eth0" BOOTPROTO=static HWADDR=00:1F:D0:9E:AE:67 ONBOOT=yes TYPE=Ethernet USERCTL=no IPV6INIT=no PEERDNS=yes NETMASK=255.255.255.0 IPADDR=192.168.0.99 GATEWAY=192.168.0.1 NM_CONTROLLED=no
I also disabled Network Manager with chkconfig.
It didn't work. When I rebooted I had no IP address for eth0. Should I leave all the other scripts in /etc/sysconfig/networking-scripts unchanged?
Suggestions would be appreciated.
Thank you, Joe
Did you also disable NetworkManager using service NetworkManager stop before making the change and rebooting. If you did not then those scripts were still under NetworkManager control and it would have removed your changes right away.
David Miller.
chkconfig network on; service network start
If your not using NetworkManager then you will need the vanilla network service running.
ta
Andrew
On 15 May 2014 21:41, Joseph Hesse joehesse@gmail.com wrote:
Hello, I want my CentOS 6.5 computer to have a static IP. Currently I get the IP I want because I have my router assign it on the basis of mac address. I placed the following file as: /etc/sysconfig/networking-scripts/eth0
DEVICE="eth0" BOOTPROTO=static HWADDR=00:1F:D0:9E:AE:67 ONBOOT=yes TYPE=Ethernet USERCTL=no IPV6INIT=no PEERDNS=yes NETMASK=255.255.255.0 IPADDR=192.168.0.99 GATEWAY=192.168.0.1 NM_CONTROLLED=no
I also disabled Network Manager with chkconfig.
It didn't work. When I rebooted I had no IP address for eth0. Should I leave all the other scripts in /etc/sysconfig/networking-scripts unchanged?
Suggestions would be appreciated.
Thank you, Joe _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Am 15.05.2014 um 21:41 schrieb Joseph Hesse joehesse@gmail.com:
I want my CentOS 6.5 computer to have a static IP. Currently I get the IP I want because I have my router assign it on the basis of mac address. I placed the following file as: /etc/sysconfig/networking-scripts/eth0
as stated before, the file name should be ifcfg-eth0.
-- LF
On 05/16/2014 10:35 PM, Leon Fauster wrote:
Am 15.05.2014 um 21:41 schrieb Joseph Hesse joehesse@gmail.com:
I want my CentOS 6.5 computer to have a static IP. Currently I get the IP I want because I have my router assign it on the basis of mac address. I placed the following file as: /etc/sysconfig/networking-scripts/eth0
as stated before, the file name should be ifcfg-eth0.
...and the directory network-scripts.
Peter