Operating System - Linux
1754832 Members
4910 Online
108825 Solutions
New Discussion юеВ

Re: Unable to make static IP address on one subnet

 
WW288996
Frequent Advisor

Unable to make static IP address on one subnet

Hi All,

Currently I am unable to make one IP as static, but if I make it from DHCP it works.

When I make IP as static and start network service then it shows the following error,

Error, some other host already uses address 10.58.190.100

I have total 4 NIC interfaces and all static, but only i am getting this error on 10.58.190.X network.

Please help me in this regard
5 REPLIES 5
Michal Kapalka (mikap)
Honored Contributor

Re: Unable to make static IP address on one subnet

hi,

couls you please send the output of :

ifconfig -a && netstat -nr

mikap
Matti_Kurkela
Honored Contributor

Re: Unable to make static IP address on one subnet

Your (unspecified) Linux distribution apparently has a feature that tests the IP address before using it. Your DHCP server may then respond to the test with a DHCP NAK packet to tell your system "I control this segment and haven't given you a valid DHCP lease, stop using that address".

If the addresses in your subnet are controlled by the DHCP server, the right ways to make a static IP are either:

1.) exclude that IP from the pool of allocatable addresses on the DHCP server
(so the DHCP server won't care about that address at all)

or

2.) specify a permanent MAC address <-> IP mapping for the static address on the DHCP server
(with a permanent IP reservation configured, the DHCP server should not care if it's used unannounced, as long as the system using the IP has the correct MAC address)

Once either 1) or 2) is done, it should be possible to configure the IP address as static.

MK
MK
WW288996
Frequent Advisor

Re: Unable to make static IP address on one subnet

[root@delhi ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1C:C4:7B:95:8A
inet6 addr: fe80::21c:c4ff:fe7b:958a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3009 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:218462 (213.3 KiB) TX bytes:462 (462.0 b)
Interrupt:185 Memory:f8000000-f8011100

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:27429 errors:0 dropped:0 overruns:0 frame:0
TX packets:14040 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2260865 (2.1 MiB) TX bytes:978366 (955.4 KiB)
Interrupt:193 Memory:fa000000-fa011100

eth2 Link encap:Ethernet HWaddr 00:23:7D:FC:C1:79
inet addr:10.58.131.100 Bcast:10.58.131.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:999385 errors:0 dropped:0 overruns:0 frame:0
TX packets:633260 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:682640802 (651.0 MiB) TX bytes:85019601 (81.0 MiB)
Base address:0x5000 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:127140 errors:0 dropped:0 overruns:0 frame:0
TX packets:802310 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10189539 (9.7 MiB) TX bytes:1106240241 (1.0 GiB)
Base address:0x5020 Memory:fdce0000-fdd00000



[root@delhi ~]# 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.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth4
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth5
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 eth2
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth5
0.0.0.0 10.58.186.1 0.0.0.0 UG 0 0 0 eth3
WW288996
Frequent Advisor

Re: Unable to make static IP address on one subnet

I am using RHEL4.7 and RHEL5.4.

Currently I am having this issue in all machines which is in 10.58.190.x VLAN.

In my DHCP Server i have all these machine entries with MAC address rserved and when I try from DHCP it is allocating IP and working fine.

But when I make IP as static then it throws the following error,

Error, some other host already uses address 10.58.190.XXX
WW288996
Frequent Advisor

Re: Unable to make static IP address on one subnet

This was working fine till last week.

I have attached the error screenshot as well.

Please find the machine details in the DHCP server.
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.199;

host panaji {
hardware ethernet 00:1A:64:32:D8:F6;
fixed-address 10.58.190.124;
}
}