LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-26-2009, 06:15 PM   #1
johncc
LQ Newbie
 
Registered: Dec 2006
Location: Dorset, UK
Distribution: Arch btw
Posts: 7

Rep: Reputation: 0
Zeroconf/Avahi needed?


I've setup a simple "server" type box with no X11 using Arch Linux. I've configured it to use DHCP when plugged into a network, which is fine.

I'm told the end user may sometimes want to connect it directly to a Windows PC (presumably in its default network configuration of using DHCP) with either a crossover cable or a hub, but no DHCP server. They want to access a few files on the box, currently shared with Samba.

I was thinking I could just install dhcpd and allow them to start and stop it, but it seems that dhcpd requires a statically configured IP on the interface which matches the subnet definition it has. It can't serve an address to the machine's own interface as the first client! (At least, I can't see how).

Is there a simple solution to this, or should I be looking at Avahi/Zeroconf? I have very little understanding of those so if people think they could be the right solution I need a couple of hints to narrow my research please.

Note, these shared files are text files not media files, in case it makes a difference.

Thanks!

Last edited by johncc; 01-26-2009 at 06:16 PM.
 
Old 01-27-2009, 03:10 PM   #2
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 270

Rep: Reputation: 38
Just use manual access

set the windows machine up to use

IP 192.168.1.1
NM 255.255.255.0
GW 192.168.1.2

then setup the linux machine to use

IP 192.168.1.2
NM 255.255.255.0
GW 192.168.1.1

This will work perfect.
 
Old 01-28-2009, 08:18 AM   #3
johncc
LQ Newbie
 
Registered: Dec 2006
Location: Dorset, UK
Distribution: Arch btw
Posts: 7

Original Poster
Rep: Reputation: 0
Hi Ken.. thanks for the suggestion, but the problem is that the end-user may plug this box into networks where DHCP is available, or they may try and link it directly to another single PC where no DHCP is available. I need it to work in both situations automatically, ideally without user intervention. Configuring network settings by hand is definitely out, although switching profiles or starting and/or stopping a daemon would be OK (I've created a text menu system for them).
 
  


Reply

Tags
avahi, dhcp, ip, network, zeroconf



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
zeroconf:/ Not working :( Cyhaxor Linux - Newbie 8 08-27-2007 06:38 PM
SMB conflict with Zeroconf / Avahi in Kubuntu 6.06 theGerbil Linux - Networking 0 09-02-2006 04:52 PM
be careful of zeroconf mp55 Debian 3 02-16-2006 01:13 PM
stubborn zeroconf BasK Mandriva 14 01-14-2004 04:26 PM
Zeroconf?? need help pleaaase! thandorias Linux - Networking 3 06-13-2003 11:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration