Re: Setting IP address not working
On Monday 20 June 2005 14:28, Andrew Schulman wrote:
> What does ifup -avn say?
root@kanger alan # ifup -avn
ifup: interface lo already configured
ifup: interface eth0 already configured
root@kanger alan # /etc/init.d/networking stop
Deconfiguring network interfaces...done.
root@kanger alan # ifup -avn
ifup: interface lo already configured
Configuring interface eth0=eth0 (inet)
run-parts --verbose /etc/network/if-pre-up.d
dhclient -e -pf /var/run/dhclient.eth0.pid -lf /var/run/dhclient.eth0.leases
eth0
run-parts --verbose /etc/network/if-up.d
After bring the network up again with /etc/init.d/networking start I can do
root@kanger run # ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:DA:CF:A5:06
inet addr:169.254.50.3 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80::250:daff:fecf:a506/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2385 errors:0 dropped:0 overruns:0 frame:0
TX packets:2324 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1853301 (1.7 MiB) TX bytes:280107 (273.5 KiB)
Interrupt:5 Base address:0xd400
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:121 errors:0 dropped:0 overruns:0 frame:0
TX packets:121 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7280 (7.1 KiB) TX bytes:7280 (7.1 KiB)
root@kanger run # more dhclient.eth0.leases
lease {
interface "eth0";
fixed-address 192.168.0.21;
option subnet-mask 255.255.255.0;
option routers 192.168.0.20;
option domain-name-servers 192.168.0.20;
option domain-name "home";
option dhcp-lease-time 21600;
option dhcp-message-type 5;
option dhcp-server-identifier 192.168.0.20;
renew 1 2005/6/20 21:02:31;
rebind 1 2005/6/20 23:17:31;
expire 2 2005/6/21 00:02:31;
}
... (above repeated but with times a few seconds later)
--
Alan Chandler
http://www.chandlerfamily.org.uk
Reply to: