Linux Debian support - Static IP Config for Dummies (Me)

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > May 2006 > Static IP Config for Dummies (Me)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Static IP Config for Dummies (Me)
Dylan C

2006-05-01, 7:12 pm

I've just built a MythTV system running Knoppmyth R5B7, which is based
on Knoppix, which I believe is based on Debian. I would like to
configure the machine to use a static IP rather than DHCP, which it uses
currently. However, the nature of Knoppmyth is such that there are no
GUI interfaces to achieve this.

It is my understanding that the following command will assign a static IP:

ifconfig eth0 192.168.1.110 netmask 255.255.255.0 broadcast 192.168.1.255

This is assuming my router/gateway's address is 192.168.1.1

Where can I place this command so that it will be run at boot, rather
than using DHCP? If this command is incorrect or inefficient, what
would be a better way to make this work?

-Dylan C
VS

2006-05-01, 7:12 pm

Dylan C wrote:
> I've just built a MythTV system running Knoppmyth R5B7, which is based
> on Knoppix, which I believe is based on Debian. I would like to
> configure the machine to use a static IP rather than DHCP, which it uses
> currently. However, the nature of Knoppmyth is such that there are no
> GUI interfaces to achieve this.
>
> It is my understanding that the following command will assign a static IP:
>
> ifconfig eth0 192.168.1.110 netmask 255.255.255.0 broadcast 192.168.1.255
>
> This is assuming my router/gateway's address is 192.168.1.1
>
> Where can I place this command so that it will be run at boot, rather
> than using DHCP? If this command is incorrect or inefficient, what
> would be a better way to make this work?
>
> -Dylan C


The interface can be configured in /etc/network/interfaces to use static
IP, so it will not attempt a DHCP broadcast on startup.

The syntax is something like:
iface eth0 inet static
address 192.168.1.110
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1


A 'man interfaces' will provide more information.

HTH.

Regards,
Vinay.
gregor herrmann

2006-05-01, 7:12 pm

On Mon, 01 May 2006 14:31:45 -0500, Dylan C wrote:

> I've just built a MythTV system running Knoppmyth R5B7, which is based
> on Knoppix, which I believe is based on Debian. I would like to
> configure the machine to use a static IP rather than DHCP, which it uses
> currently. However, the nature of Knoppmyth is such that there are no
> GUI interfaces to achieve this.
>
> It is my understanding that the following command will assign a static IP:
>
> ifconfig eth0 192.168.1.110 netmask 255.255.255.0 broadcast 192.168.1.255
>
> This is assuming my router/gateway's address is 192.168.1.1
>
> Where can I place this command so that it will be run at boot, rather
> than using DHCP? If this command is incorrect or inefficient, what
> would be a better way to make this work?


If your system works like Debian look at /etc/network/interfaces
Probably you have something there like
iface eth0 dhcp
try it with:

auto eth0
iface eth0 inet static
address 192.168.1.110
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

For further info read man interfaces.

HTH,
gregor
--
.''`. http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4
: :' : debian: the universal operating system - http://www.debian.org/
`. `' member of https://www.vibe.at/ | how to reply: http://got.to/quote/
`- NP: Ben Weaver: Rose Marie
Dylan C

2006-05-01, 7:12 pm

VS wrote:

> The interface can be configured in /etc/network/interfaces to use static
> IP, so it will not attempt a DHCP broadcast on startup.
>
> The syntax is something like:
> iface eth0 inet static
> address 192.168.1.110
> netmask 255.255.255.0
> broadcast 192.168.1.255
> gateway 192.168.1.1
>
>
> A 'man interfaces' will provide more information.
>
> HTH.
>
> Regards,
> Vinay.


Works flawlessly, thank you.

-Dylan C
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com