Setting a Static IP

It all happens before the Login Prompt

Setting a Static IP

Postby jbv » Mon Nov 19, 2012 11:13 pm

It has come to my attention that the method of setting a Static IP is not mentioned anywhere.

FoxyRoxyLinux does support a Static IP although there is a slight trick to it.

To configure/set a Static IP ...
You need to put another option/parameter on the syslinux kernel boot line:

The option is "ip="
If you leave this option blank with no parameters, the system will use the contents of /etc/network/interfaces

Alternatively, you can specify the network parameters as follows ...
Code: Select all
ip=eth0:192.168.1.50:255.255.255.0:192.168.1.1
<where>
ip=[interface]:[IP_address]:[netmask]:[gateway]

Summary: To configure a static IP using /etc/network/interfaces
Code: Select all
<Below is an extract of a typical syslinux.cfg file>

label live-bigmem
   menu label Live 686-BigMem
   kernel /live/vmlinuz3
   append initrd=/live/initrd3.img boot=live config persistent ip= max_loop=128 quickreboot noprompt noautologin

<Below is a copy of a typical /etc/network/interfaces file>

auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet static
  address 192.168.0.50
  gateway 192.168.0.1
  netmask 255.255.255.0
  network 192.168.0.0
  broadcast 192.168.0.255
  dns-nameservers 192.168.0.1


If you are using 05-FoxyConfig. I suggest you drop /etc/network/interfaces in there.
This is easy enough to do using the 05-load and 05-save scripts.
jbv
 
Posts: 600
Joined: Sat Jul 14, 2012 2:02 am
Location: Sydney, Australia

Return to System Startup



Who is online

Users browsing this forum: No registered users and 1 guest

cron