LinuxQuestions.org
Help answer threads with 0 replies.
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-13-2010, 04:50 PM   #1
wichiff
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu
Posts: 23

Rep: Reputation: 0
Ethernet crossover, avahi and 169.254.*


Hello,

in Ubuntu Karmic I was happily connecting my ubuntu laptop to another machine linked to it with a crossover Ethernet cable. I could connect in wicd, then on startup the connection would be established automatically, allowing me to ping ubuntu.local, ssh into it and so on. Both machines were assigned 169.254.* addresses automatically.

After the upgrade to Ubuntu Lucid, this automatic behavior is lost !
However when one starts
Code:
avahi-autoipd eth0
manually, Bob's your uncle it seems -- and
Code:
eth0:avahi
shows up in the output of ifconfig.

What kind of network configuration should be tweaked to get back to the automatic behavior ?
 
Old 07-15-2010, 06:45 AM   #2
rdgreenlaw
Member
 
Registered: May 2007
Location: Newport, Maine, USA
Distribution: Debian 8.7
Posts: 73

Rep: Reputation: 18
Create startup/shutdown command named ethcrossover in /etc/init.d
(You may change the name but make sure you fix it's references in each of the following code sections)

Quote:
#!/bin/sh
# Startup for Ethernet Crossover Project
# Filename: ethcrossover

case "$1" in
'start')
avahi-autoipd eth0
;;
'stop')
# not sure what goes here to shut it down
# probably not necessary to do so unless you
# routinely change from networking to non-networking runlevel
# without shutting down your system
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0
Change the script to executable

Quote:
chmod 766 /eth/init.d/ethcrossover
For each runlevel you want it automatically started in make a link to the file
The file names are sorted alphabetically to determine what to do. Your file must come after
any scripts that need to be run before it, and before any that must follow it.

For example, if you were to run a procedure that requires the ethernet bridge to run called sendfile then sendfile would have to follow ethcrossover. The ethcrossover script needs to start after networking starts!

The scripts to be started or stopped are located in /etc/rc?.d where ? is the runlevel of the system. It would be safe to place this script in each runlevel except runlevel 6. Runlevel 6 shuts down everything and is called before a restart or shutdown of the system.

Execute these commands to automate the startup

Quote:
ln -s /eth/init.d/ethcrossover /eth/rc2.d/S99ethcrossover
ln -s /eth/init.d/ethcrossover /eth/rc3.d/S99ethcrossover
ln -s /eth/init.d/ethcrossover /eth/rc4.d/S99ethcrossover
ln -s /eth/init.d/ethcrossover /eth/rc5.d/S99ethcrossover
If you need to shut it down before system shutdown add the following
(forces shutdown before apache services shutdown)

Be sure to determine what needs to happen for successful shutdown and fix the script first.

Quote:
ln -s /eth/init.d/ethcrossover /eth/rc3.d/K08ethcrossover
ln -s /eth/init.d/ethcrossover /eth/rc3.d/K08ethcrossover
This should get you running automatically again.

Last edited by rdgreenlaw; 07-15-2010 at 06:48 AM. Reason: Left out an important note!
 
Old 07-17-2010, 07:57 AM   #3
wichiff
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 0
added avahi-autoipd in startup scripts

This did not do the trick, I don't know why.

If wicd is removed and network-manager reinstalled, with 'link-local' in IPv4 settings, then things work as intended.

It would be nice to make it work with wicd though.
 
Old 07-17-2010, 08:09 AM   #4
rdgreenlaw
Member
 
Registered: May 2007
Location: Newport, Maine, USA
Distribution: Debian 8.7
Posts: 73

Rep: Reputation: 18
Sorry I wasn't able to help. Unfortunately there are a few application that don't work under WiCD that work with network-manager. Another app that doesn't work correctly without network-manager is empathy. I tried removing network-manager because it was having difficulty establishing a wireless connection without prompting for the network key if it looses the connection. WiCD did not have the problem, but empathy won't run under WiCD. It doesn't see the network and shuts down instead of connecting to the internet.
 
Old 07-17-2010, 11:56 AM   #5
wichiff
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rdgreenlaw View Post
Sorry I wasn't able to help. Unfortunately there are a few application that don't work under WiCD that work with network-manager. Another app that doesn't work correctly without network-manager is empathy. I tried removing network-manager because it was having difficulty establishing a wireless connection without prompting for the network key if it looses the connection. WiCD did not have the problem, but empathy won't run under WiCD. It doesn't see the network and shuts down instead of connecting to the internet.
Thanks for all the information.

In my case, this crossover ethernet connection with wicd instead of NM was running fine in Ubuntu Karmic. Since I upgraded to Lucid it's broken.

As to the wireless connection: trouble started when I upgraded from 8.10 to 9.04 if i remember correctly.
 
  


Reply

Tags
avahi, ethernet, zeroconf



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
Removing DHCP (169.254.0.0) From static routes Alistair Linux - Networking 2 09-02-2011 09:49 AM
nmbd broadcasting UDP to 169.254.0.2? mikesjays Linux - Server 2 06-30-2009 09:42 PM
Destination 169.254.0.0 ESOOJAY Linux - Networking 1 05-13-2007 05:23 PM
Odd IP address 169.254.187.86 in ifconfig (Etch) farpoint Debian 8 12-11-2006 11:10 AM
169.254.0.0 in Kernal IP routing table aikempshall Linux - Networking 13 03-10-2004 11:30 PM

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

All times are GMT -5. The time now is 12:38 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