<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=717185105-05032003><FONT face=Arial color=#0000ff size=2>AFAIK
the /etc/hosts file only contains mappings for hostname to ip. It would not
accept ip tp mac address mappings. For doing that you will have to use the arp
program.</FONT></SPAN></DIV>
<DIV><SPAN class=717185105-05032003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=717185105-05032003><FONT face=Arial color=#0000ff size=2>In the
example joseph gave, ip 127.0.0.1 would map to </FONT> <FONT
color=#0000ff><FONT face=Arial><FONT size=2>x1-6-00-90-c9-04-42-7e as
hostname</FONT>.</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=717185105-05032003><FONT face=Arial color=#0000ff><FONT
size=2>That is if you say </FONT><A href="http://x1-6-00-90-c9-04-42-7e"><FONT
size=2>http://x1-6-00-90-c9-04-42-7e</FONT></A><FONT size=2> you will
connect to your local computer.</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=717185105-05032003><FONT face=Arial color=#0000ff
size=2>Correct me if i am wrong.</FONT></SPAN></DIV>
<DIV><SPAN class=717185105-05032003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=717185105-05032003><FONT face=Arial color=#0000ff
size=2>Harshal</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Jack Snodgrass
[mailto:jack+ntlug@mylinuxguy.net]<BR><B>Sent:</B> Monday, March 03, 2003 8:29
PM<BR><B>To:</B> NTLUG Discussion List<BR><B>Subject:</B> Re: [NTLUG:Discuss]
Newbie Question re: LPD Initialization andLocal Host Bad
Message<BR><BR></FONT></DIV>I thought that that was a MAC address too... but a
MAC address is<BR>6 parts... that one that he listed is 8 parts.
<BR><BR>When your ISP assigns you an Address, it should be resolvable.
<BR><BR>jack<BR><BR><BR>On Mon, 2003-03-03 at 08:36, joseph beasley wrote:
<BLOCKQUOTE TYPE="CITE"><PRE><FONT color=#737373 size=3><I>Assuming that your isp requires your hostname to be
set to the mac address of your nic, you can add an
entry to /etc/hosts for your mac address.
127.0.0.1 x1-6-00-90-c9-04-42-7e
--- Fred Hensley <fred.hensley@attbi.com> wrote:
> Greetings All,
>
> After a few months of immersing myself into the
> Linux world and meeting
> several of you at the last few NTLUG meetings, I am
> finally at wits end
> on one problem whose solution escapes me. Neither
> my brand new "Running
> Linux" book nor some net searches have helped thus
> far. This latest
> issue has also caused strange 3-d images to appear
> on my forehead
> curiously resembling letters and outlines from my
> keyboard... <g>
>
> Two weeks ago, on good advice from some of you, I
> punted on my Debian
> Woody installation, and installed RedHat 8.0 (with
> kernel
> 2.4.18-24.8.0).
>
> My PC is locally connected, via LPT1, to an HP
> Laserjet 4. Also, I
> utilize AT&T as my cable internet provider, and am
> dynamically assigned
> a new IP address on each system reboot.
>
> The issue centers around two seemingly related
> symptoms as follows:
>
> 1. Upon startup, LPD does not initialize, but
> instead give me the error
> "Host Name x1-6-00-90-c9-04-42-7e bad". Therefore
> the line printing
> daemon cannot start, and my printer is effectively
> offline.
>
> 2. When starting Gnome2 (a.k.a. Bluecurve), I
> receive the following
> error:
> "Could not look up internet address for
> x1-6-00-90-c9-04-42-7e.
> This will prevent Gnome from operating correctly.
> It may be possible to
> correct this problem by adding
> x1-6-00-90-c9-04-42-7e to the file
> /etc/hosts."
>
> I have checked /etc/hosts and noted that the only IP
> address listed is
> "127.0.0.1". Although the above address doesn't
> resemble an IP node, I
> have added it to the file without success.
>
> I suspect that I'm missing something relatively
> obvious, and ask for
> some guidance from my new peers.
>
> Question 1: Am I simply missing something in one or
> more local
> configuration files to straighten out Gnome and LPD?
>
> Question 2: Once item one is fixed, is there a
> simple way, via the
> console, to independently confirm that the OS
> recognizes my LPT1 port?
>
> Question 3: What's your favorite linux
> reference/tutorial for
> ex-Windoze users?
>
> Many Thanks in Advance,
>
> Fred Hensley
> Ex-Windoze Guru, Brand New Linux Disciple
>
> ------ "When you come to a fork in the road, take
> it..." Yogi Berra ----
>
>
>
>
> _______________________________________________
> </FONT><A href="https://ntlug.org/mailman/listinfo/discuss"><FONT size=3>https://ntlug.org/mailman/listinfo/discuss</FONT></A>
<FONT color=#737373 size=3>
=====
Joe Beasley
CNE, CCNP, MCSE, CCNA, AEIOU....
PGP/GPG key -- </FONT><A href="http://home.attbi.com/~joe.beasley/joebeasley.txt"><FONT size=3>http://home.attbi.com/~joe.beasley/joebeasley.txt</FONT></A>
<FONT color=#737373 size=3>AOL Messenger joebeasley3rd
Yahoo Messenger joe_beasley
MSN Messenger joebeasley3rd
ICQ 13164242
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more</FONT>
<A href="http://taxes.yahoo.com/"><FONT size=3>http://taxes.yahoo.com/</FONT></A>
<FONT color=#737373 size=3>
_______________________________________________</FONT>
<A href="https://ntlug.org/mailman/listinfo/discuss"><FONT size=3>https://ntlug.org/mailman/listinfo/discuss</I></FONT></A></PRE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>