Reserved ip in 192.168.x.x range for CenOS 5 (Samba Server)
loses samba clients due to eth0 losing it's ip.
eth0 Link encap:Ethernet HWaddr 00:04:61:72:AB:98 inet addr:169.254.66.122 Bcast:169.254.255.255 Mask:255.255.0.0 inet6 addr: fe80::204:61ff:fe72:ab98/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1 RX packets:60058 errors:0 dropped:0 overruns:0 frame:0 TX packets:66564 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:11387965 (10.8 MiB) TX bytes:45451041 (43.3 MiB) Interrupt:193
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:23 errors:0 dropped:0 overruns:0 frame:0 TX packets:23 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2340 (2.2 KiB) TX bytes:2340 (2.2 KiB)
frankly3d-centos wrote:
Reserved ip in 192.168.x.x range for CenOS 5 (Samba Server)
loses samba clients due to eth0 losing it's ip.
Sounds like your using DHCP. If you've reserved an IP then set it statically on the server, as the dhcp client doesn't appear to be able to renew the lease when it expires. You can check the logs on the server to see if you can see why it cannot renew the lease if you want as well.
nate
On Fri, 2008-02-01 at 07:35 -0800, nate wrote:
frankly3d-centos wrote:
Reserved ip in 192.168.x.x range for CenOS 5 (Samba Server)
loses samba clients due to eth0 losing it's ip.
Sounds like your using DHCP. If you've reserved an IP then set it statically on the server,
For the moment have assigned the server a static ip.
as the dhcp client doesn't appear to be able to renew the lease when it expires. You can check the logs on the server to see if you can see why it cannot renew the lease if you want as well.
Will also check the logs later.
Thanks for all replies.
Frank
On Feb 1, 2008 6:08 AM, frankly3d-centos frankly3d-centos@utvinternet.com wrote:
Reserved ip in 192.168.x.x range for CenOS 5 (Samba Server)
loses samba clients due to eth0 losing it's ip.
eth0 Link encap:Ethernet HWaddr 00:04:61:72:AB:98 inet addr:169.254.66.122 Bcast:169.254.255.255 Mask:255.255.0.0 inet6 addr: fe80::204:61ff:fe72:ab98/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1 RX packets:60058 errors:0 dropped:0 overruns:0 frame:0 TX packets:66564 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:11387965 (10.8 MiB) TX bytes:45451041 (43.3 MiB) Interrupt:193
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:23 errors:0 dropped:0 overruns:0 frame:0 TX packets:23 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2340 (2.2 KiB) TX bytes:2340 (2.2 KiB)
What is your system setup? Is it a LAN on the inside of a router? Do the systems exist inside and outside the router?
Need more information for this to be useful.
mhr
On Fri, 2008-02-01 at 13:20 -0800, MHR wrote:
On Feb 1, 2008 6:08 AM, frankly3d-centos frankly3d-centos@utvinternet.com wrote:
Reserved ip in 192.168.x.x range for CenOS 5 (Samba Server)
loses samba clients due to eth0 losing it's ip.
eth0 Link encap:Ethernet HWaddr 00:04:61:72:AB:98 inet addr:169.254.66.122 Bcast:169.254.255.255 Mask:255.255.0.0 inet6 addr: fe80::204:61ff:fe72:ab98/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1 RX packets:60058 errors:0 dropped:0 overruns:0
<snip>
What is your system setup? Is it a LAN on the inside of a router? Do the systems exist inside and outside the router?
If you control the DHCP server, you should be able to set the reserved range. Also, you should be able to extend the lease/renewal times to a *very* long interval. If you don't ... I'm lucky, IPCop is my friend.
Regardless, if it's losing the IP and not getting re-assigned another (or same) one, something else must be wrong somewhere.
Keeping in mind that I'm really ignorant about this stuff, if it were my unit I would be looking to see if I had conflicting setups somewhere. Like maybe booting into a static private IP address default configuration and yet having a DHCP client active. I don't know if that's possible or rational, but like I said, I don't know much.
Did you use system-config-network for initial setup? If so, I would think subsequent diddling would be the screw-up. If not, initial diddling probably the culprit.
Need more information for this to be useful.
AMEN brother! (No religious injection intended here: simply an exclamatory reaffirmation shamelessly stolen from revival meetings I've seen on the boob-tube - as opposed to you-tube).
mhr
<snip sig stuff>
frankly3d-centos wrote:
Reserved ip in 192.168.x.x range for CenOS 5 (Samba Server)
loses samba clients due to eth0 losing it's ip.
eth0 Link encap:Ethernet HWaddr 00:04:61:72:AB:98 inet addr:169.254.66.122 Bcast:169.254.255.255 Mask:255.255.0.0
....
whack, 169.254.x.x is the 'auto-IP' range of self assigned IPs used if a system can't reach the DHCP server. I wasn't aware Linux did this, I've only seen it on MS Windows.
On Fri, 2008-02-01 at 16:53 -0800, John R Pierce wrote:
frankly3d-centos wrote:
Reserved ip in 192.168.x.x range for CenOS 5 (Samba Server)
loses samba clients due to eth0 losing it's ip.
eth0 Link encap:Ethernet HWaddr 00:04:61:72:AB:98 inet addr:169.254.66.122 Bcast:169.254.255.255 Mask:255.255.0.0
....
whack, 169.254.x.x is the 'auto-IP' range of self assigned IPs used if a system can't reach the DHCP server. I wasn't aware Linux did this, I've only seen it on MS Windows.
It threw me for a loop first time I ever saw it. Especially when (for a brief moment IIRC) that *and* my IP was assigned to the same device.
I guess that means the OP should check the logs for the DISCOVER... messages to see what is going on. He'll probably see the OFFERED rejected somewhere?
<snip sig stuff>
John R Pierce wrote:
frankly3d-centos wrote:
Reserved ip in 192.168.x.x range for CenOS 5 (Samba Server)
loses samba clients due to eth0 losing it's ip.
eth0 Link encap:Ethernet HWaddr 00:04:61:72:AB:98 inet addr:169.254.66.122 Bcast:169.254.255.255 Mask:255.255.0.0
....
whack, 169.254.x.x is the 'auto-IP' range of self assigned IPs used if a system can't reach the DHCP server. I wasn't aware Linux did this, I've only seen it on MS Windows.
It is called zeroconf and can be turned off, but is on by default (in most linux distros and M$ Windows).
All you ever wanted to know about zeroconf: http://www.zeroconf.org/
How to disable it (if you prefer): http://www.brandonhutchinson.com/Hardening_RHEL_3_(Taroon).html
Thanks, Johnny Hughes