<!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. I actually have two linux systems
here, Fedora Core 10 and Ubuntu 8.10. Both get their IP address from
DHCP and both have problems related to the hostname. 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. 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 with "ifconfig"; and
hostname with "hostname". Then associate those in /etc/hosts. 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> </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. 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> </o:p></p>
<p class="MsoNormal" style=""><b><span
style="font-size: 13.5pt; font-family: "Times New Roman","serif";">Hosts
File<o:p></o:p></span></b></p>
<p class="MsoNormal" style=""><span
style="font-size: 12pt; font-family: "Times New Roman","serif";">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: "Times New Roman","serif";">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: "Times New Roman","serif";">.<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span
style="font-size: 12pt; font-family: "Times New Roman","serif";">It
has been
found that if you don’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: "Times New Roman","serif";">To
edit the file
</span><b><span style="font-size: 12pt; font-family: "Courier New";">/etc/hosts</span></b><span
style="font-size: 12pt; font-family: "Times New Roman","serif";">,
type </span><b><span
style="font-size: 12pt; font-family: "Courier New";">vi /etc/hosts</span></b><span
style="font-size: 12pt; font-family: "Times New Roman","serif";">.
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: "Times New Roman","serif";">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: "Courier New";">127.0.0.1
localhost.localdomain localhost</span></b><span
style="font-size: 12pt; font-family: "Times New Roman","serif";"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span
style="font-size: 12pt; font-family: "Courier New";">::1
localhost6.localdomain6 localhost6<br>
Your IP Address machinename.domain.name machinename</span></b><span
style="font-size: 12pt; font-family: "Times New Roman","serif";"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span
style="font-size: 12pt; font-family: "Times New Roman","serif";">Change
it to
read:<o:p></o:p></span></p>
<p class="MsoNormal"><b><span
style="font-size: 12pt; font-family: "Courier New";">Your
IP Address machinename.domain.name machinename</span></b><span
style="font-size: 12pt; font-family: "Times New Roman","serif";"><br>
</span><b><span style="font-size: 12pt; font-family: "Courier New";">127.0.0.1
localhost.localdomain localhost</span></b><span
style="font-size: 12pt; font-family: "Times New Roman","serif";"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span
style="font-size: 12pt; font-family: "Courier New";">::1
localhost6.localdomain6 localhost6</span></b><span
style="font-size: 12pt; font-family: "Times New Roman","serif";"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span
style="font-size: 12pt; font-family: "Times New Roman","serif";">Save
and exit by
hitting the "esc" key then entering </span><b><span
style="font-size: 12pt; font-family: "Courier New";">:wq</span></b><span
style="font-size: 12pt; font-family: "Times New Roman","serif";">. <o:p></o:p></span></p>
<p class="MsoNormal" style=""><span
style="font-size: 12pt; font-family: "Times New Roman","serif";">Example
file
might look like:<o:p></o:p></span></p>
<p class="MsoNormal" style=""><b><span
style="font-size: 12pt; font-family: "Courier New";">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: "Times New Roman","serif";"><o:p></o:p></span></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Hope this helps.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </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> </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> </o:p></p>
<p class="MsoPlainText">I think I'm having the same problem. 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> </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> </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"> hostname eth0name<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">But that doesn't seem to work.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Don<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">James Miller wrote:<o:p></o:p></p>
<p class="MsoPlainText">> Yep, that was it... thanks!<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> Christoph Willing wrote:<o:p></o:p></p>
<p class="MsoPlainText">>><o:p> </o:p></p>
<p class="MsoPlainText">>> On 14/02/2009, at 2:41 AM, James
Miller wrote:<o:p></o:p></p>
<p class="MsoPlainText">>><o:p> </o:p></p>
<p class="MsoPlainText">>>> I am doing a quick upgrade of my
capture
machine running Ubuntu 8.10 <o:p></o:p></p>
<p class="MsoPlainText">>>> and I installed the
accessgrid3.2 package from
the Univ of <o:p></o:p></p>
<p class="MsoPlainText">>>> Queensland vislab source. I've
never had
problems with past <o:p></o:p></p>
<p class="MsoPlainText">>>> packages on previous versions of
ubuntu.<o:p></o:p></p>
<p class="MsoPlainText">>>><o:p> </o:p></p>
<p class="MsoPlainText">>>> However, when I run
AGServiceManager.py in a
terminal, it's trying <o:p></o:p></p>
<p class="MsoPlainText">>>> to use the loopback address
instead of eth0.<o:p></o:p></p>
<p class="MsoPlainText">>><o:p> </o:p></p>
<p class="MsoPlainText">>> James,<o:p></o:p></p>
<p class="MsoPlainText">>><o:p> </o:p></p>
<p class="MsoPlainText">>> What does your /etc/hosts file look
like? On a
machine named <o:p></o:p></p>
<p class="MsoPlainText">>> "mymachine" using dhcp, that file
will
begin with something like:<o:p></o:p></p>
<p class="MsoPlainText">>> 127.0.0.1
localhost.localdomain
localhost<o:p></o:p></p>
<p class="MsoPlainText">>> 127.0.1.1 mymachine<o:p></o:p></p>
<p class="MsoPlainText">>><o:p> </o:p></p>
<p class="MsoPlainText">>> Try changing it so that the real IP
address of
mymachine and fully <o:p></o:p></p>
<p class="MsoPlainText">>> qualified domain name is in there,
commenting
out or removing the <o:p></o:p></p>
<p class="MsoPlainText">>> exisiting line with the machine's
name e.g.<o:p></o:p></p>
<p class="MsoPlainText">>> 127.0.0.1
localhost.localdomain
localhost<o:p></o:p></p>
<p class="MsoPlainText">>> #127.0.1.1 mymachine<o:p></o:p></p>
<p class="MsoPlainText">>> 123.45.67.89
mymachine.somedomain.xyz
mymachine<o:p></o:p></p>
<p class="MsoPlainText">>><o:p> </o:p></p>
<p class="MsoPlainText">>><o:p> </o:p></p>
<p class="MsoPlainText">>> chris<o:p></o:p></p>
<p class="MsoPlainText">>><o:p> </o:p></p>
<p class="MsoPlainText">>><o:p> </o:p></p>
<p class="MsoPlainText">>> Christoph
Willing +61 7
3365 8316<o:p></o:p></p>
<p class="MsoPlainText">>> QCIF Access Grid Manager<o:p></o:p></p>
<p class="MsoPlainText">>> University of Queensland<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
</div>
</blockquote>
<br>
</body>
</html>