Page 1 of 1

Global ETH0 and Global Secondary ETH0 IP Addresses

Posted: Fri Dec 18, 2015 1:47 pm
by Brooks
Hello,

When the VM for our Nagios installatation got configured we configured the ip address for one static ip address. I just noticed the following outputwhen I enter the command ==>ip addr show (Note these are not actual ip addresses - just using these 2 addresses as an example)

(below ip address is the static address I configured)
inet 192.168.10.30/23 brd (broadcast ip address) scope global eth0
(not sure how the below DHCP address got assigned)
inet 192.168.10.50/23


- The question is this a normal ip address configuration (static ip address for the website) or did I miss something during the configuration? I would like to use static for both.

Thanks,
Bob

Re: Global ETH0 and Global Secondary ETH0 IP Addresses

Posted: Fri Dec 18, 2015 2:05 pm
by rkennedy
Brooks wrote:Hello,
- The question is this a normal ip address configuration (static ip address for the website) or did I miss something during the configuration? I would like to use static for both.
I'm a bit confused about what you're asking. When you say 'website' are you referring to your Nagios XI? What do you mean by 'I would like to use static for both' - both what?

Can you post the full output of ifconfig for us to look at?

Re: Global ETH0 and Global Secondary ETH0 IP Addresses

Posted: Fri Dec 18, 2015 2:10 pm
by Brooks
yes, sorry about that. The nagiosxi web interface is the static ip address that I set during the installation. I was assuming that this would be the only ip address configured. But there appears to be 2 ip addresses. I'm just wondering how the 2nd address got configured. Both ip addresses get me to the webgui.

Re: Global ETH0 and Global Secondary ETH0 IP Addresses

Posted: Fri Dec 18, 2015 2:12 pm
by Brooks
I should display what the 2nd address shows:
(below ip address is the static address I configured)
inet 192.168.10.30/23 brd (broadcast ip address) scope global eth0
(not sure how the below DHCP address got assigned)
inet 192.168.10.50/23 (broadcast ip address) scope global secondary eth0


- So, how did the secondary eth0 get configured with an ip address?

Re: Global ETH0 and Global Secondary ETH0 IP Addresses

Posted: Fri Dec 18, 2015 2:14 pm
by rkennedy
I don't believe Nagios makes any changes to interface configuration, so I'm not sure how the 2nd address got configured either.

Was the system a fresh install? Is anything else on the machine?

Once again, can you please post the output of ifconfig for us to take a look at?

Re: Global ETH0 and Global Secondary ETH0 IP Addresses

Posted: Fri Dec 18, 2015 2:25 pm
by Brooks
the configuration was from a preconfigurable virtual machine (VMWARE) that I downloaded from the site. I followed installation instructions to get everything up and running. the ifconfig output shows only the 2nd address I noted

Re: Global ETH0 and Global Secondary ETH0 IP Addresses

Posted: Fri Dec 18, 2015 2:41 pm
by Brooks
disregard. I did a reboot and now I see the one static ip address from the command ==>ip addr show

- sorry for the false alarm. Not sure what I did (perhaps I triggered some action from the web interface that did something funky with an ip function).

You can close this case.

Thanks for the response.

Re: Global ETH0 and Global Secondary ETH0 IP Addresses

Posted: Fri Dec 18, 2015 2:42 pm
by jolson
Please run the following and get the information back to us:

Code: Select all

ls /etc/sysconfig/network-scripts/ifcfg-e*
cat /etc/sysconfig/network-scripts/ifcfg-e*

Re: Global ETH0 and Global Secondary ETH0 IP Addresses

Posted: Fri Dec 18, 2015 2:45 pm
by Brooks
thanks for the reply Jolson but i'm all set now. If I see this same issue again I will note some of the commands and post the output in another post.

Thanks again,
Bob