Networking Forums

Networking Forums > Computer Networking > Linux Networking > ifconfig... /etc/network/interfaces

Reply
Thread Tools Display Modes

ifconfig... /etc/network/interfaces

 
 
shawn modersohn
Guest
Posts: n/a

 
      01-03-2005, 04:56 PM
I am trying to assign a linux box a static ip address. I ifconfig eth0
192.168.1.102 but it won't stick after a reboot. I notice in the
/etc/network/interfaces file, the following entry. iface eth0 inet dhcp .
There is also a comment stating this entry was created by the Debian
installation.

I assume that I simply need to edit this file to create a permenant static
ip address for eth0. What is the syntax? Thanks.


 
Reply With Quote
 
 
 
 
repo
Guest
Posts: n/a

 
      01-03-2005, 05:03 PM
On Mon, 03 Jan 2005 17:56:44 GMT, shawn modersohn wrote:
> I am trying to assign a linux box a static ip address. I ifconfig eth0
> 192.168.1.102 but it won't stick after a reboot. I notice in the
> /etc/network/interfaces file, the following entry. iface eth0 inet dhcp .
> There is also a comment stating this entry was created by the Debian
> installation.
>
> I assume that I simply need to edit this file to create a permenant static
> ip address for eth0. What is the syntax? Thanks.
>
>


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

--
Chaos, panic & disorder - my work here is done
http://beginnerslinux.org
 
Reply With Quote
 
Andrew Schulman
Guest
Posts: n/a

 
      01-03-2005, 05:41 PM
> I am trying to assign a linux box a static ip address. I ifconfig
eth0
> 192.168.1.102 but it won't stick after a reboot. I notice in the
> /etc/network/interfaces file, the following entry. iface eth0 inet dhcp .
> There is also a comment stating this entry was created by the Debian
> installation.
>
> I assume that I simply need to edit this file to create a permenant static
> ip address for eth0. What is the syntax? Thanks.


man interfaces

--
To reply by email, replace "deadspam.com" by "alumni.utexas.net"
 
Reply With Quote
 
auser
Guest
Posts: n/a

 
      01-04-2005, 09:26 AM
On 2005-01-03 11:41:59 -0700, Andrew Schulman <(E-Mail Removed)> said:

>> I am trying to assign a linux box a static ip address. I ifconfig

> eth0
>> 192.168.1.102 but it won't stick after a reboot. I notice in the
>> /etc/network/interfaces file, the following entry. iface eth0 inet dhcp .
>> There is also a comment stating this entry was created by the Debian
>> installation.
>>
>> I assume that I simply need to edit this file to create a permenant static
>> ip address for eth0. What is the syntax? Thanks.

>
> man interfaces


depending on the distro you are using, you could always use: netconfig

it's a simple gui based command tool

--
a_user

-----------------------------
inapinch(at)gmail.com
-----------------------------

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
interfaces on network switch Mark Linux Networking 13 12-17-2009 10:11 PM
[/etc/network/interfaces]Syntax somewhere?? universalbitmapper Linux Networking 8 04-25-2006 06:32 AM
how can i bridge 2 network interfaces? Christos Panagiotakis Linux Networking 2 07-20-2004 10:02 AM
Can't restore network after ifconfig down Tron Thomas Linux Networking 4 12-18-2003 09:28 PM
dhcpd and two network interfaces Andre Nottenkaemper Linux Networking 3 10-23-2003 07:24 AM



1 2 3 4 5 6 7 8 9 10 11