[Nottingham] Fixed IP

Danny King danny at rootshell.be
Mon Jan 10 00:58:36 GMT 2005


Thank you! That was the key I needed!

For those interested I needed:

DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.1.255
NETWORK=192.168.1.0
IPADDR=192.168.1.100
NETMASK=255.255.255.0
ONBOOT=yes

And then I needed to setup the gateway So that data from outside 
192.168.0.* could be recieved:

route add default gw 192.168.1.253

thanks again

Mike Cardwell wrote:
> On Mon, 10 Jan 2005, Danny King wrote:
> 
>> Sorry, Information about the computer I wish to assign the fixed IP to:
>> It runs TSL linux which is based on RedHat.
> 
> 
> Don't know about TSL linux, but it's probably the same as Redhat. There 
> are a bunch of files in: /etc/sysconfig/network-scripts/
> 
> For instance, you'll probably see a file called ifcfg-eth0
> 
> In this example your machine has an IP of 192.168.0.1 on a 192.168.0.0/24.
> Edit that file, and stick the following in it:
> 
> DEVICE=eth0
> BOOTPROTO=static
> IPADDR=192.168.0.1
> NETMASK=255.255.255.0
> ONBOOT=yes
> 
> Take the interface down with "ifdown eth0" as root, and bring it back up 
> with "ifup eth0"
> 



More information about the Nottingham mailing list