<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks for the hints.<br>
<br>
OK, I'm starting to understand it.&nbsp; I actually have two linux systems
here, Fedora Core 10 and Ubuntu 8.10.&nbsp; Both get their IP address from
DHCP and both have problems related to the hostname.&nbsp; Each problem is
different.<br>
<br>
The FC 10 system took some bizarre hostname that must have come from
the DHCP server, along with the DHCP address, and put an entry in
/etc/hosts.&nbsp; Shut down the machine, and start it next morning and it
gets a differrent address, but the hostname resolves to the original
address.<br>
<br>
On the Ubuntu machine, the hostname resolves to 127.0.1.1.<br>
<br>
To fix things: get the current IP address&nbsp; with "ifconfig"; and
hostname with "hostname".&nbsp; Then associate those in /etc/hosts.&nbsp; Repeat
every time you boot.<br>
<br>
There must be a better way, but this works.<br>
<br>
Don<br>
<br>
Jason Bell wrote:
<blockquote
 cite="mid:AFC5FC5923CF194BA8CCD128CAFF92110F370A38@UNIMAIL.staff.ad.cqu.edu.au"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 12 (filtered medium)">
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
h3
        {mso-style-priority:9;
        mso-style-link:"Heading 3 Char";
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:13.5pt;
        font-family:"Times New Roman","serif";
        font-weight:bold;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
span.Heading3Char
        {mso-style-name:"Heading 3 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 3";
        font-family:"Times New Roman","serif";
        font-weight:bold;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
  </style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
  <div class="Section1">
  <p class="MsoPlainText">Hi guys<o:p></o:p></p>
  <p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
  <p class="MsoPlainText">I have similar issues like this and what I
find is that I
need so specify the "real" ip address as the first host entry.&nbsp; This
is the case for the multicast beacon and a number of others things, so
as
something I do with all my Linux machines is that I do the following
(Please
note that these notes are taken directly out of my install guide which
can be
found at <a moz-do-not-send="true"
 href="http://www.accessgrid.org/node/1133">http://www.accessgrid.org/node/1133</a>):
  <o:p></o:p></p>
  <p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
  <p class="MsoNormal" style=""><b><span
 style="font-size: 13.5pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">Hosts
File<o:p></o:p></span></b></p>
  <p class="MsoNormal" style=""><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">As
part of the
configuration of the network, where you may have selected to use Static
Ip
Address and entered the hostname manually, you will mostly likely have
to edit
your <b>/etc/hosts</b> file. <o:p></o:p></span></p>
  <p class="MsoNormal" style=""><i><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">Note,
you only
have to edit this file if you are using a static ip address. If you are
using
DHCP (dynamically assigned IP address) you don't have to worry about
editing
this file</span></i><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">.<o:p></o:p></span></p>
  <p class="MsoNormal" style=""><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">It
has been
found that if you don&#8217;t make the following changes to the hosts file,
the
multicast beacon and AGServiceManager will not work correctly.<o:p></o:p></span></p>
  <p class="MsoNormal" style=""><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">To
edit the file
  </span><b><span style="font-size: 12pt; font-family: &quot;Courier New&quot;;">/etc/hosts</span></b><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">,
type </span><b><span
 style="font-size: 12pt; font-family: &quot;Courier New&quot;;">vi /etc/hosts</span></b><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">.
Make sure you
are the super-user while doing this.<o:p></o:p></span></p>
  <p class="MsoNormal" style=""><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">If
your hosts
file looks similar to this:<o:p></o:p></span></p>
  <p class="MsoNormal"><b><span
 style="font-size: 12pt; font-family: &quot;Courier New&quot;;">127.0.0.1
localhost.localdomain localhost</span></b><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"><o:p></o:p></span></p>
  <p class="MsoNormal"><b><span
 style="font-size: 12pt; font-family: &quot;Courier New&quot;;">::1
localhost6.localdomain6 localhost6<br>
Your IP Address machinename.domain.name machinename</span></b><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"><o:p></o:p></span></p>
  <p class="MsoNormal" style=""><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">Change
it to
read:<o:p></o:p></span></p>
  <p class="MsoNormal"><b><span
 style="font-size: 12pt; font-family: &quot;Courier New&quot;;">Your
IP Address machinename.domain.name machinename</span></b><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"><br>
  </span><b><span style="font-size: 12pt; font-family: &quot;Courier New&quot;;">127.0.0.1
localhost.localdomain localhost</span></b><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"><o:p></o:p></span></p>
  <p class="MsoNormal"><b><span
 style="font-size: 12pt; font-family: &quot;Courier New&quot;;">::1
localhost6.localdomain6 localhost6</span></b><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"><o:p></o:p></span></p>
  <p class="MsoNormal" style=""><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">Save
and exit by
hitting the "esc" key then entering </span><b><span
 style="font-size: 12pt; font-family: &quot;Courier New&quot;;">:wq</span></b><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">. <o:p></o:p></span></p>
  <p class="MsoNormal" style=""><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">Example
file
might look like:<o:p></o:p></span></p>
  <p class="MsoNormal" style=""><b><span
 style="font-size: 12pt; font-family: &quot;Courier New&quot;;">111.222.111.222
jastest.cqu.edu.au
jastest<br>
127.0.0.1 localhost.localdomain localhost<br>
::1 localhost6.localdomain6 localhost6</span></b><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"><o:p></o:p></span></p>
  <p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
  <p class="MsoPlainText">Hope this helps.<o:p></o:p></p>
  <p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
  <p class="MsoPlainText">Cheers,<o:p></o:p></p>
  <p class="MsoPlainText">Jason.<o:p></o:p></p>
  <p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
  <p class="MsoPlainText"><span lang="EN-US">-----Original Message-----<br>
From: Don McLane [<a class="moz-txt-link-freetext" href="mailto:dmclane@u.washington.edu">mailto:dmclane@u.washington.edu</a>] <br>
Sent: Wednesday, 8 April 2009 10:03 AM<br>
To: ag-tech<br>
Subject: Re: [AG-TECH] AGServiceManager.py uses lo instead of eth0</span><o:p></o:p></p>
  <p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
  <p class="MsoPlainText">I think I'm having the same problem.&nbsp; But
won't this
solution only work <o:p></o:p></p>
  <p class="MsoPlainText">if you have a static IP address (or your dhcp
server
gives you the same <o:p></o:p></p>
  <p class="MsoPlainText">address every time)?<o:p></o:p></p>
  <p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
  <p class="MsoPlainText">Seems like I could specify a hostname in
/etc/network/interfaces like:<o:p></o:p></p>
  <p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
  <p class="MsoPlainText">auto eth0<o:p></o:p></p>
  <p class="MsoPlainText">iface eth0 inet dhcp<o:p></o:p></p>
  <p class="MsoPlainText">&nbsp;&nbsp; hostname eth0name<o:p></o:p></p>
  <p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
  <p class="MsoPlainText">But that doesn't seem to work.<o:p></o:p></p>
  <p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
  <p class="MsoPlainText">Don<o:p></o:p></p>
  <p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
  <p class="MsoPlainText">James Miller wrote:<o:p></o:p></p>
  <p class="MsoPlainText">&gt; Yep, that was it... thanks!<o:p></o:p></p>
  <p class="MsoPlainText">&gt;<o:p>&nbsp;</o:p></p>
  <p class="MsoPlainText">&gt; Christoph Willing wrote:<o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt;<o:p>&nbsp;</o:p></p>
  <p class="MsoPlainText">&gt;&gt; On 14/02/2009, at 2:41 AM, James
Miller wrote:<o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt;<o:p>&nbsp;</o:p></p>
  <p class="MsoPlainText">&gt;&gt;&gt; I am doing a quick upgrade of my
capture
machine running Ubuntu 8.10 <o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt;&gt; and I installed the
accessgrid3.2 package from
the Univ of <o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt;&gt; Queensland vislab source.&nbsp; I've
never had
problems with past <o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt;&gt; packages on previous versions of
ubuntu.<o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt;&gt;<o:p>&nbsp;</o:p></p>
  <p class="MsoPlainText">&gt;&gt;&gt; However, when I run
AGServiceManager.py in a
terminal, it's trying <o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt;&gt; to use the loopback address
instead of eth0.<o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt;<o:p>&nbsp;</o:p></p>
  <p class="MsoPlainText">&gt;&gt; James,<o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt;<o:p>&nbsp;</o:p></p>
  <p class="MsoPlainText">&gt;&gt; What does your /etc/hosts file look
like? On a
machine named <o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt; "mymachine" using dhcp, that file
will
begin with something like:<o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt; 127.0.0.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
localhost.localdomain&nbsp;&nbsp;
localhost<o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt; 127.0.1.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mymachine<o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt;<o:p>&nbsp;</o:p></p>
  <p class="MsoPlainText">&gt;&gt; Try changing it so that the real IP
address of
mymachine and fully <o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt; qualified domain name is in there,
commenting
out or removing the <o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt; exisiting line with the machine's
name e.g.<o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt; 127.0.0.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
localhost.localdomain&nbsp;&nbsp;
localhost<o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt; #127.0.1.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mymachine<o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt; 123.45.67.89&nbsp;&nbsp;&nbsp;
mymachine.somedomain.xyz&nbsp;&nbsp;&nbsp;
mymachine<o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt;<o:p>&nbsp;</o:p></p>
  <p class="MsoPlainText">&gt;&gt;<o:p>&nbsp;</o:p></p>
  <p class="MsoPlainText">&gt;&gt; chris<o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt;<o:p>&nbsp;</o:p></p>
  <p class="MsoPlainText">&gt;&gt;<o:p>&nbsp;</o:p></p>
  <p class="MsoPlainText">&gt;&gt; Christoph
Willing&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +61 7
3365 8316<o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt; QCIF Access Grid Manager<o:p></o:p></p>
  <p class="MsoPlainText">&gt;&gt; University of Queensland<o:p></o:p></p>
  <p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
  </div>
</blockquote>
<br>
</body>
</html>