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

Re: Setting IP address not working



On Wednesday 15 June 2005 17:52, Kent West wrote:

> followed by editing the interfaces file to a static IP so it looks like:
>
> # The loopback network interface
>
> >auto lo
> >iface lo inet loopback
> >
> ># The primary network interface
> >auto eth0
> >iface eth0 inet static
> >    address 192.168.0.21
> >    netmask 255.255.0.0  (or 255.255.255.0, or whatever it's supposed to
> > be on your network)
>
> and then
>   /etc/init.d/networking start
>
> and report the output.
>
>

root@kanger alan # /etc/init.d/networking start
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces...ifup: interface lo already configured
RTNETLINK answers: Cannot assign requested address
done.
root@kanger alan # 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:95788 errors:0 dropped:0 overruns:0 frame:0
          TX packets:60961 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:109984491 (104.8 MiB)  TX bytes:4796355 (4.5 MiB)
          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:213 errors:0 dropped:0 overruns:0 frame:0
          TX packets:213 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:42880 (41.8 KiB)  TX bytes:42880 (41.8 KiB)

root@kanger alan # more /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.0.21
        netmask 255.255.255.0
root@kanger alan #


-- 
Alan Chandler
http://www.chandlerfamily.org.uk



Reply to: