How to set static IP when installing coreos from USB-stick?

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

 



Hi,
I'm trying to install fedora coreos on my server. I do not have a DHCP-server available but used static IP before (project atomic).
When booting coreos from USB-stick it is looking for a DHCP-server. When not found it fails. After a while it retries to get an IP-address.
I have tried to add a lease command to /etc/dhclient.conf like:

lease {
  interface "eth0";
  fixed-address 192.168.5.50;
  option subnet-mask 255.255.255.0;
  option routers 192.168.5.10;
  option domain-name-servers 192.168.5.10;
}

Then I killed the dhclient process and restarted it with same parameters as it was run before:
dhclient -4 -q -cf /etc/dhclient.conf -pf /tmp/dhclient.eth0.pid -lf /tmp/dhclient.eth0.lease eth0

But dhclient does not use the static configuration I have made and fails with a message like:
Could not find a valid lease.

What am I doing wrong here? Is there an easier way to force a static IP address? Can I stop the boot process and give some commands when loading the kernel?

Any ideas appreciated.
Best regards,
Jonny
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux