Networking Forums

Networking Forums > Computer Networking > Linux Networking > [/etc/network/interfaces]Syntax somewhere??

Reply
Thread Tools Display Modes

[/etc/network/interfaces]Syntax somewhere??

 
 
universalbitmapper
Guest
Posts: n/a

 
      04-24-2006, 08:48 AM
Hi,

I have a pc_debian and a pc_xp nicely telneting at the end of a
somewhat plug-and-play network setup through an ISP-provided
ADSL/router box and a switch.
Both pc s see the Web.
However I'd like to beef up my knowledge of the conf-iguration files,
zeroing on /interfaces.
I did a "interfaces syntax" search on Google, which returns a mix of
threads and posts.

Here is how mine looks like at the moment:
================================================== =
acerdebian:/etc/network# cat interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian
installatio
auto iface eth0
iface eth0 inet dhcp
acerdebian:/etc/network#
================================================== =
It looks nice *except* I don't see "dhcp" within the "ps aux" output???

I've hardcoded the mac addresses in the ISP/ADSL/dhcp/Router page

So I need help to study the /interfaces file syntax

 
Reply With Quote
 
 
 
 
R12y
Guest
Posts: n/a

 
      04-24-2006, 08:57 AM
On Mon, 24 Apr 2006 01:48:42 -0700, universalbitmapper wrote:

> It looks nice *except* I don't see "dhcp" within the "ps aux" output???


The dhcp process is only active when requesting to the dhcp server.
Once the IP adress is assigned, there is no dhcp process anymore.
If you want to look how did it work, grep for dhcp in the
/var/log/messages file.

--
Debian/apt Repo: http://locataire-serveur.info/sectio...ian-repository
Fedora/yum Repo: http://locataire-serveur.info/sectio...edora-core-yum

 
Reply With Quote
 
R12y
Guest
Posts: n/a

 
      04-24-2006, 09:09 AM
On Mon, 24 Apr 2006 01:48:42 -0700, universalbitmapper wrote:

> auto iface eth0


auto eth0

no "iface" needed

--
Debian/apt Repo: http://locataire-serveur.info/sectio...ian-repository
Fedora/yum Repo: http://locataire-serveur.info/sectio...edora-core-yum

 
Reply With Quote
 
universalbitmapper
Guest
Posts: n/a

 
      04-24-2006, 09:25 AM
Hi R12y, thanks for your reply.

I tried "tail -f" on the /var/log/messages file, there is no entry for
dhcp.

Actually I've been advised on my ISP/Adsl/box forum not to hard code
mac addresses, but to set the pc_debian domain name to "workgroup", as
it's the default one for the pc_xp, because then I could set up DNS.
I'd like to know in which "conf" file I can hard-code this domain name?

 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      04-24-2006, 05:03 PM
universalbitmapper wrote:
> Hi,
>
> I have a pc_debian and a pc_xp nicely telneting at the end of a
> somewhat plug-and-play network setup through an ISP-provided
> ADSL/router box and a switch.
> Both pc s see the Web.
> However I'd like to beef up my knowledge of the conf-iguration files,
> zeroing on /interfaces.


Try

man 5 interfaces

--

Tauno Voipio
tauno voipio (at) iki fi
 
Reply With Quote
 
R12y
Guest
Posts: n/a

 
      04-24-2006, 05:40 PM
On Mon, 24 Apr 2006 02:25:56 -0700, universalbitmapper wrote:

> I tried "tail -f" on the /var/log/messages file, there is no entry for
> dhcp.


$ grep dhcp /var/log/messages

--
Debian/apt Repo: http://locataire-serveur.info/sectio...ian-repository
Fedora/yum Repo: http://locataire-serveur.info/sectio...edora-core-yum

 
Reply With Quote
 
Bill Marcum
Guest
Posts: n/a

 
      04-24-2006, 08:10 PM
On 24 Apr 2006 02:25:56 -0700, universalbitmapper
<(E-Mail Removed)> wrote:
> Hi R12y, thanks for your reply.
>
> I tried "tail -f" on the /var/log/messages file, there is no entry for
> dhcp.
>
> Actually I've been advised on my ISP/Adsl/box forum not to hard code
> mac addresses, but to set the pc_debian domain name to "workgroup", as
> it's the default one for the pc_xp, because then I could set up DNS.
> I'd like to know in which "conf" file I can hard-code this domain name?
>

Windows domain names and DNS domain names are not the same thing. In
/etc/samba/smb.conf you should find these lines:

# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = MSHOME



--
It's a recession when your neighbour loses his job; it's a depression
when you lose yours.
-- Harry S. Truman
 
Reply With Quote
 
Christoph Scheurer
Guest
Posts: n/a

 
      04-25-2006, 05:49 AM
Am Montag, den 24.04.2006, 10:57 +0200 schrieb R12y:
> On Mon, 24 Apr 2006 01:48:42 -0700, universalbitmapper wrote:
>
> > It looks nice *except* I don't see "dhcp" within the "ps aux" output???

>
> The dhcp process is only active when requesting to the dhcp server.
> Once the IP adress is assigned, there is no dhcp process anymore.
> If you want to look how did it work, grep for dhcp in the
> /var/log/messages file.
>

Maybe the dhcp-executable is called pump

Greets
Chris Scheurer

 
Reply With Quote
 
universalbitmapper
Guest
Posts: n/a

 
      04-25-2006, 06:32 AM
Hi Tauno,

You really made my day :-)

I typed (this might help a newbie):

leonardo$ man 5 interfaces | col -b > /tmp/interfaces_man.txt

gmailed the file, now it's printed.

These work too in man 5: inetd.conf, hosts

I'll try them all

Many thanks to all the nethelpers :-)

J.B.

 
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
ifconfig... /etc/network/interfaces shawn modersohn Linux Networking 3 01-04-2005 09:26 AM
how can i bridge 2 network interfaces? Christos Panagiotakis Linux Networking 2 07-20-2004 10:02 AM
dhcpd and two network interfaces Andre Nottenkaemper Linux Networking 3 10-23-2003 07:24 AM
nis server with 2 network interfaces IVANYI Ivan Linux Networking 0 07-17-2003 09:01 AM



1 2 3 4 5 6 7 8 9 10 11