[AG-TECH] AGServiceManager.py uses lo instead of eth0

Jason Bell j.bell at cqu.edu.au
Tue Apr 7 19:11:17 CDT 2009

Hi guys


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 http://www.accessgrid.org/node/1133): 


Hosts File

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 /etc/hosts file. 

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.

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

To edit the file /etc/hosts, type vi /etc/hosts. Make sure you are the
super-user while doing this.

If your hosts file looks similar to this: localhost.localdomain localhost

::1 localhost6.localdomain6 localhost6
Your IP Address machinename.domain.name machinename

Change it to read:

Your IP Address machinename.domain.name machinename localhost.localdomain localhost

::1 localhost6.localdomain6 localhost6

Save and exit by hitting the "esc" key then entering :wq. 

Example file might look like: jastest.cqu.edu.au jastest localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6


Hope this helps.





-----Original Message-----
From: Don McLane [mailto:dmclane at u.washington.edu] 
Sent: Wednesday, 8 April 2009 10:03 AM
To: ag-tech
Subject: Re: [AG-TECH] AGServiceManager.py uses lo instead of eth0


I think I'm having the same problem.  But won't this solution only work 

if you have a static IP address (or your dhcp server gives you the same 

address every time)?


Seems like I could specify a hostname in /etc/network/interfaces like:


auto eth0

iface eth0 inet dhcp

   hostname eth0name


But that doesn't seem to work.




James Miller wrote:

> Yep, that was it... thanks!


> Christoph Willing wrote:


>> On 14/02/2009, at 2:41 AM, James Miller wrote:


>>> I am doing a quick upgrade of my capture machine running Ubuntu 8.10

>>> and I installed the accessgrid3.2 package from the Univ of 

>>> Queensland vislab source.  I've never had problems with past 

>>> packages on previous versions of ubuntu.


>>> However, when I run AGServiceManager.py in a terminal, it's trying 

>>> to use the loopback address instead of eth0.


>> James,


>> What does your /etc/hosts file look like? On a machine named 

>> "mymachine" using dhcp, that file will begin with something like:

>>       localhost.localdomain   localhost

>>       mymachine


>> Try changing it so that the real IP address of mymachine and fully 

>> qualified domain name is in there, commenting out or removing the 

>> exisiting line with the machine's name e.g.

>>       localhost.localdomain   localhost

>> #      mymachine

>>    mymachine.somedomain.xyz    mymachine



>> chris



>> Christoph Willing                       +61 7 3365 8316

>> QCIF Access Grid Manager

>> University of Queensland


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/ag-tech/attachments/20090408/8e19a803/attachment-0001.htm>

More information about the ag-tech mailing list