Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-30-2004, 04:28 AM   #1
LQ Newbie
Registered: Nov 2003
Posts: 5

Rep: Reputation: 0
Unable to get hostname by linksys BEFW11S4 router

I am new to the Linux networking.

I have two Linux boxes (L1 and L2) running Redhat Linux 9.0. They are on a LAN and getting their dynamic IP addresses from Linksys BEFW11S4 router. My problem is:

1. How can I provide hostname to each of the linux box? I am unable to ping L1 to L2 or vice-versa using hostname of box. Although I can ping them using IP addresses.

2. How can I share my files available on L1 from L2?

Thanks in advance.
Old 03-30-2004, 12:48 PM   #2
Registered: Jan 2004
Distribution: Slackware 10 ; Gentoo ; OpenBSD 3.6
Posts: 101

Rep: Reputation: 15
the simplest way is to add entries in your /etc/hosts file. Using this approach, the machines will need static ip addresses (or they need to be online frequently enough that their dhcp lease never expires).
have a look at:

For sharing files between two linux machines i would use nfs:

But if there are also windows machines on the network, then use samba:
Old 03-31-2004, 12:12 AM   #3
LQ Newbie
Registered: Nov 2003
Posts: 5

Original Poster
Rep: Reputation: 0

Thanks, but I don't know the IP addresses (as they are dynamically alloted by DHCP router). Is there any way I can enter hostname in /etc/hosts without IP address?

One more point I don't want to add entries in /etc/hosts for each linux box available on my network. Is there any way to do it?

Please help.
Old 04-08-2004, 01:57 AM   #4
LQ Newbie
Registered: Nov 2003
Posts: 5

Original Poster
Rep: Reputation: 0

No suggestions so far!

Should I change the netwrok architecture itself? Any suggestion.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Static IP trouble with linksys BEFW11S4 dizzutch Linux - Networking 8 01-17-2005 02:18 PM
router unable to determine hostname kodon Linux - Wireless Networking 0 09-08-2004 12:57 PM
Installation of Linksys BEFW11S4 Router deathboy Linux - Hardware 1 05-01-2004 07:37 PM
Redhat 9 No Ping to Win98 via Linksys BEFW11S4 rianjb Linux - Networking 1 11-09-2003 12:58 PM
Linksys BEFW11S4 without DSL possible (?) the_g Linux - Networking 0 06-02-2003 03:57 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:56 AM.

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