[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

static ip address is being reset constantly



Hello,
A question for networking gurus:
My ip address keeps on being set to null at my workplace.

I use my laptop at home and work.
At home, I use DHCP to get an ip address from my ISP. No problems.
At work, when I use
#dhclient eth0
it looks for  DHCP leases but finds none.

So, I have a little script which I use to set a static address (I have
been given one to use):

ifconfig eth0 XXX.YYY.ZZZ.WWW netmask 255.255.255.0  up

route add default gw  XXX.YYY.ZZZ.1

echo "nameserver XXX.YYY.AAA.BBB" >> /etc/resolv.conf


I run this script, but after approx 20 seconds the connection is gone
and when I run

# ifconfig eth0

eth0      Link encap:Ethernet  HWaddr 00:15:ZZ:AA:BB:CC

          inet6 addr: fe71::205:c5ff:fecc:9284/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:5729 errors:0 dropped:0 overruns:0 frame:0

          TX packets:9435 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:4332002 (4.1 MiB)  TX bytes:1830420 (1.7 MiB)

          Interrupt:18


Some daemon is resetting the NIC address to null.

I tried editing /etc/network/interfaces and /etc/init.d/networking restart.

I also ensured that my wireless was turn off.

What could be causing this?

John


Reply to: