Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interface misconfigured after successful restore #460

Closed
kruntas opened this issue Sep 17, 2014 · 4 comments
Closed

interface misconfigured after successful restore #460

kruntas opened this issue Sep 17, 2014 · 4 comments
Assignees
Milestone

Comments

@kruntas
Copy link

kruntas commented Sep 17, 2014

Hi,

I have rear installed on RHEL 6 and experiencing the following issue:

in ip_addresses I have configured
eth0 192.168.80.100/18

restore finishes fine but in the ifcfg-eth0 it leaves me with:
IPADDR='192.168.80.100/18'
NETMASK=''

When I do a reboot it can't bring the eth0 interface up, because of misconfigured ifcfg-eth0 file.

Some insight would be appreciated.

Thanks

@gdha gdha self-assigned this Sep 18, 2014
@gdha
Copy link
Member

gdha commented Sep 18, 2014

@kruntas Are you sure it should be eth0? The syntax looks correct to me. Perhaps, remove the ' and restart network.

@kruntas
Copy link
Author

kruntas commented Sep 22, 2014

Hi,

original syntax that Red Hat requires is:

TYPE=Ethernet
ONBOOT=yes
BOOTPROTO='static'
IPV6INIT=no
USERCTL=no
IPADDR='192.168.80.100'
NETMASK='255.255.192.0'

After I do a recover, rear changes that file (ifcfg-eth0) and rewrites it with:
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO='static'
IPV6INIT=no
USERCTL=no
IPADDR='192.168.80.100/18'
NETMASK=''

when I do a reboot, red hat cannot bring up the interface because it does not expect
IPADDR='192.168.80.100/18'
NETMASK=''

Regards

@gdha gdha added the enhancement Adaptions and new features label Oct 13, 2014
@gdha
Copy link
Member

gdha commented Oct 13, 2014

@kruntas ok - seems like RHEL6 is still using old style (RHEL7/Fedora) can cope with the new style.

gdha added a commit that referenced this issue Dec 24, 2014
…r issue #460;

When using /etc/rear/mappings/ip_addresses IPADR/cidr must be translated into IPADR and NETMASK (for RHEL 5,6,...)
@gdha gdha added this to the Rear v1.17 milestone Dec 24, 2014
@gdha
Copy link
Member

gdha commented Feb 16, 2015

added to the release notes so we can close this issue

@gdha gdha closed this as completed Feb 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants