cancel
Showing results for 
Search instead for 
Did you mean: 

Static IP is not working

 
WW288996
Frequent Advisor

Static IP is not working

We are trying to set static IP address on RHEL 5.5, but it says the following error message when we restarted the network service.

"Bringing up interface eth0: Error, some other host already uses address 10.58.121.251"

But this IP is not assigned to any other machine.

The interesting thing is we are able to set this IP using a DHCP server.

Could some help me in this regard.

Thanks in advance.
4 REPLIES
Steven Schweda
Honored Contributor

Re: Static IP is not working

> "Bringing up interface eth0: [...]

Is that the only interface on this system?

> [...] some other host already uses address
> 10.58.121.251"

If this system is down, can any other system
communicate with (ping, Telnet, ...)
10.58.121.251?

> But this IP is not assigned to any other
> machine.

You know this how, exactly?

> The interesting thing is we are able to set
> this IP using a DHCP server.

What, exactly, does this mean?

If there's a DHCP server which is handing out
this address, then how much sense does it
make for you to give it to anyone as a static
address? I thought that a DHCP server
normally used a pool of addresses which were
_not_ used as static addresses on the
network.

How many DHCP servers do you have?
Steven Schweda
Honored Contributor

Re: Static IP is not working

Is this a recurring problem?

http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1428694

> May 17, 2010 07:24:23 GMT 1 pts

That looked to me like good advice. (Better
that you thought it was, certainly.)
Steven E. Protter
Exalted Contributor

Re: Static IP is not working

Shalom,

The IP address may not be assigned, but some other machine is using it.

shut down this system go to another and try ping 10.58.121.251

Bet you get an answer.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
WW288996
Frequent Advisor

Re: Static IP is not working

I have 2 DHCP servers in the same network, But all our machines are reserved in the DHCP conf file with MAC address.

Even though I have 2 DHCP servers the hostname and IP Addresses in dhcpd.conf file is not duplicated.

Please find my DHCP conf file below for your reference.

#default-lease-time 3600;
#max-lease-time 86400;
ignore unknown-clients;
ddns-update-style none;
boot-unknown-clients off;
ddns-domainname "oesblr.nsn-rdnet.net";
one-lease-per-client on;

# Log to local3 syslog-facility because messages is for important things
log-facility local3;

subnet 10.58.131.0 netmask 255.255.255.0 {
interface eth0;
option routers 10.58.131.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.58.131.255;
option domain-name-servers 10.58.131.246;
}
group {
filename "pxelinux.0";
next-server 10.58.131.100;
host pm131x238 {
hardware ethernet 00:1A:64:CF:6D:B2;
fixed-address 10.58.131.238;
}

}
subnet 10.58.121.128 netmask 255.255.255.128 {
interface eth1;
option routers 10.58.121.129;
option subnet-mask 255.255.255.128;
option broadcast-address 10.58.121.255;
option domain-name-servers 10.58.131.246;
}
group {
filename "pxelinux.0";
next-server 10.58.121.135;
host pm121x251 {
hardware ethernet 00:1A:64:F6:19:58;
fixed-address 10.58.121.251;
}


}
subnet 10.58.190.0 netmask 255.255.255.0 {
interface eth2;
option routers 10.58.190.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.58.190.255;
option domain-name-servers 10.58.131.246;
}
group {
filename "pxelinux.0";
next-server 10.58.190.100;
host pm190x183 {
hardware ethernet 00:21:5E:2E:3E:6A;
fixed-address 10.58.190.183;
}
}
subnet 10.58.186.0 netmask 255.255.255.0 {
interface eth3;
option routers 10.58.186.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.58.186.255;
option domain-name-servers 10.58.131.246;
}
group {
filename "pxelinux.0";
next-server 10.58.186.100;
host pm186x172{
hardware ethernet 00:21:5E:98:07:48;
fixed-address 10.58.186.172;
}
}
________________________________________

please find ifconfig on DHCP server below,

# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1C:C4:7B:95:8A
inet addr:10.58.131.100 Bcast:10.58.131.255 Mask:255.255.255.0
inet6 addr: fe80::21c:c4ff:fe7b:958a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6880808962 errors:0 dropped:1368977 overruns:0 frame:0
TX packets:3932672906 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6349018956360 (5.7 TiB) TX bytes:2726012476016 (2.4 TiB)
Interrupt:185 Memory:f8000000-f8012800

eth1 Link encap:Ethernet HWaddr 00:1C:C4:7B:95:0C
inet addr:10.58.121.135 Bcast:10.58.121.255 Mask:255.255.255.128
inet6 addr: fe80::21c:c4ff:fe7b:950c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:43610182 errors:0 dropped:0 overruns:0 frame:0
TX packets:3679549055 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10633154069 (9.9 GiB) TX bytes:5550761732726 (5.0 TiB)
Interrupt:98 Memory:fa000000-fa012800

eth2 Link encap:Ethernet HWaddr 00:23:7D:FC:C1:79
inet addr:10.58.190.100 Bcast:10.58.190.255 Mask:255.255.255.0
inet6 addr: fe80::223:7dff:fefc:c179/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10487549 errors:0 dropped:0 overruns:0 frame:0
TX packets:4006389819 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2989565258 (2.7 GiB) TX bytes:6035011287816 (5.4 TiB)
Memory:fdde0000-fde00000

eth3 Link encap:Ethernet HWaddr 00:23:7D:FC:C1:78
inet addr:10.58.186.100 Bcast:10.58.186.255 Mask:255.255.255.0
inet6 addr: fe80::223:7dff:fefc:c178/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6376955 errors:0 dropped:0 overruns:0 frame:0
TX packets:838327087 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:591709012 (564.2 MiB) TX bytes:1269769409697 (1.1 TiB)
Memory:fdce0000-fdd00000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:57294 errors:0 dropped:0 overruns:0 frame:0
TX packets:57294 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:19497192 (18.5 MiB) TX bytes:19497192 (18.5 MiB)
___________________________________________



please find netstat -nr command output on my dhcp server below,

# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.58.121.128 0.0.0.0 255.255.255.128 U 0 0 0 eth1
10.58.190.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
10.58.186.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3
10.58.131.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth3
0.0.0.0 10.58.131.1 0.0.0.0 UG 0 0 0 eth0