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

Notices


Reply
  Search this Thread
Old 07-05-2008, 12:24 AM   #16
Tuxofunic
LQ Newbie
 
Registered: Mar 2008
Location: Ukraine
Distribution: Debian, ubuntu
Posts: 14

Rep: Reputation: 0

One more thins is. At /etc/defaults/avahi-daemon there`s string AVAHI_DAEMON_DETECT_LOCAL=1, try '=0' and dont forget move /etc/rc5.d/avahi-daemon avay.
In Administrator -> NetworkTools close to Network device field should be only lo and eth0 devise, without eth0:avahi or or smth else.

Note: Once installed Ubuntu 8.04 Hardy, network and internet is good and work right after installation. Without any tuning ! )
 
Old 07-05-2008, 01:31 PM   #17
lwasserm
Member
 
Registered: Mar 2008
Location: Baltimore Md
Distribution: ubuntu
Posts: 184

Rep: Reputation: 41
If you look up what avahi does, you will see that it is a service for configuring local networks and assigning ip addresses in the absence of a dhcp server, and can also broadcast the availability of certain services such as available printers on those networks. On the default hardy installation, if a configured ethernet port does not receive an ip address from a dhcp server within a timeout period, then the avahi daemon assigns a "link-local" address to the port. These addresses are always in the 169.254.x.x range. This is for instance, how you can connect 2 computers together with a crossover ethernet cable, or plug a network printer and computer into a switch or hub, and have the computer find the printer even though no dhcp server is running to assign addresses. Normally avahi and the related services are configured to do nothing if an address is assigned by dhcp or statically. I'm oversimplifying avahi and related services here, but usually avahi and the related mdns service do not interfere with normal network operations. I think this focus on avahi is just diverting you from finding the real problem (Of course I could be wrong!) The avahi address is created BECAUSE you are not getting an address from DHCP. It is NOT the CAUSE of the dhcp failure, but a consequence of it.
 
Old 07-05-2008, 04:17 PM   #18
Hughbert
LQ Newbie
 
Registered: Jun 2008
Location: Birmingham, UK
Distribution: Ubuntu Studio
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
You can access internet through ethernet (windows), so your modem is working there, have you tried using dhcp on ethernet without connecting your windows machine to the usb port?
Yes, connecting my laptop to the ethernet (so it's recognised as eth0) rather than the USB (recognised as eth0) causes exactly the same ipconfig result, except the avahi IP address is assigned to eth0 instead of eth2.

Quote:
The avahi address is created BECAUSE you are not getting an address from DHCP. It is NOT the CAUSE of the dhcp failure, but a consequence of it.
I kinda guessed this from what you said before and googling avahi. So as far as I understand it, my modem isn't assigning my laptop an IP address which means it can't find a connection; possibly because it's not configured for multiple IP addresses/users?

Thanks
Hugh
 
Old 07-05-2008, 08:03 PM   #19
lwasserm
Member
 
Registered: Mar 2008
Location: Baltimore Md
Distribution: ubuntu
Posts: 184

Rep: Reputation: 41
Quote:
Originally Posted by Hughbert View Post
Yes, connecting my laptop to the ethernet (so it's recognised as eth0) rather than the USB (recognised as eth0) causes exactly the same ipconfig result, except the avahi IP address is assigned to eth0 instead of eth2.



I kinda guessed this from what you said before and googling avahi. So as far as I understand it, my modem isn't assigning my laptop an IP address which means it can't find a connection; possibly because it's not configured for multiple IP addresses/users?

Thanks
Hugh

That is a possibility. The DSL and cable modems in current common use in the USA can certainly be configured that way, though it would be unusual for an ISP to do so. However it is not so unusual for an end user to configure them to limit the number of ip addresses handed out, or to only assign an address to hosts with specific ethernet addresses, as an extra security measure. I don't know what common practice in the UK is. Have you taken a good hard look at the network settings on the windows machine? You might want to google "pppoe" and see if it applies to you, though your ISP should be better able to help.

Also, can you access the setup of your modem from the Windows machine? and have you ever tried the laptop on another ethernet network? And also, if you have a firewall running on the laptop, temporarily disable it while debugging this problem!
 
Old 07-06-2008, 01:11 AM   #20
Tuxofunic
LQ Newbie
 
Registered: Mar 2008
Location: Ukraine
Distribution: Debian, ubuntu
Posts: 14

Rep: Reputation: 0
Quote:
Originally Posted by lwasserm View Post
The avahi address is created BECAUSE you are not getting an address from DHCP. It is NOT the CAUSE of the dhcp failure, but a consequence of it.
Sure, i khow that. DHCP server can not take me an IP when i try ifup eth0.
But my Network Manager configured to get IP via DHCP. It works !) Though the avahi-daemon doesn`t take any action. This is an issue i`m thinking of.
 
Old 07-08-2008, 04:23 PM   #21
Hughbert
LQ Newbie
 
Registered: Jun 2008
Location: Birmingham, UK
Distribution: Ubuntu Studio
Posts: 8

Original Poster
Rep: Reputation: 0
I can access the setup of the modem in windows off my PC. I haven't got a windows OS installed on my laptop - the original OS corrupted which is one of the reasons for installing Ubuntu.

I haven't got another ethernet network to connect to at this time, although I see the relevance, if I could connect to another internet without trouble then it would be my network that is causing the problem. I'll see what I can do about finding another ethernet to connect too.

I haven't set up a firewall in ubuntu, so I kind of assumed one wasn't running. Another thing I'll look into.

Thanks for the ideas.
Hugh
 
  


Reply



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
Wired network problem in Ubuntu (gusty) maverick_awp Linux - Networking 2 07-07-2008 08:47 AM
Setting up a Wi-Fi network between Ubuntu and Nokia E61i CrownAmbassador Linux - Hardware 0 05-09-2008 06:36 AM
xubuntu wired network laptop not seeing my ubuntu box larryfroot Linux - Networking 0 03-17-2008 04:20 PM
Can't get my WIRED PCMCIA network card working in Knoppix ploskinj Linux - Networking 1 04-01-2007 01:17 AM
Neither wireless or wired network is working hsimah Linux - Wireless Networking 9 04-12-2006 05:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:43 PM.

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