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

static IP and live-initramfs (man page wrong?)



Now that I've got the serial console working, I've been trying to get a static IP set up. It seems the man pages list the ip=  arguments in the wrong order.

Now I have a static IP, eth0 is UP but not RUNNING. Looking at dmesg I have:

ADDRCONF(NETDEV_UP): eth0: link is not ready

My network connection worked fine with dhcp. Any Ideas?

-Ryan

P.S.

Here are more details on figuring out static IPs

From the live-initramfs man pages:

  ip=**[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF] [,[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF]]***::

Let you specify the name(s) and the options of the interface(s) that should be configured at boot time. Do not specify this if you want to use dhcp (default).
It will be changed in a future release to mimick official kernel boot param specification (e.g. ip=10.0.0.1::10.0.0.254:255.255.255.0::eth0,:::::eth1:dhcp).

What I'm using in my live.cfg file:

label live-686-pae persistence serial staticIP
        menu label ^Live (686-pae) persistence serial staticIP
        menu default
        linux /live/vmlinuz2
        initrd /live/initrd2.img
        append boot=live live-getty console=tty0 console=ttyS0,115200n8 ip=152.119.xxx.63::152.19.xxx.1:255.255.254.0:debian_live:eth0: persistence config quiet splash

After I'm booted, networking isn't running. The contents of /etc/network/interfaces is:

auto lo
iface lo inet loopback

allow-hotplug 152.19.xxx.63
iface 152.19.xxx.63 inet static
    address
    netmask 152.19.xxx.1
    gateway 255.255.254.0

Which is all scrambled. I changed the line in live.cfg to read

ip=A:B:C:D:E:F:G

Which gave me an interfaces file like this:

allow-hotplug A
iface A inet static
 address B
    netmask C
    gateway D

and /etc/resolv.conf was:
nameserver E

So I re-ordered my arguments to:
ip=eth0:<my IP address>:<my netmask>:<gateway IP>:8.8.8.8::

and now eth0 is UP with the right values, but not RUNNING.

-Ryan
begin:vcard
fn:Ryan Neve
n:Neve;Ryan
org:University of North Carolina Insititute of Marine Sciences;Luettich Lab
adr:;;3431 Arendell St;Morehead City;NC;28557;USA
email;internet:neve@email.unc.edu
tel;work:252 726-6841
tel;cell:252 515-0012
x-mozilla-html:TRUE
url:ims.unc.edu
version:2.1
end:vcard


Reply to: