LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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, 05:50 PM   #1
wichiff
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu
Posts: 19

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, 07:45 AM   #2
rdgreenlaw
Member
 
Registered: May 2007
Distribution: Ubuntu 14.04 LTS
Posts: 59

Rep: Reputation: 16
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 07:48 AM. Reason: Left out an important note!
 
Old 07-17-2010, 08:57 AM   #3
wichiff
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu
Posts: 19

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, 09:09 AM   #4
rdgreenlaw
Member
 
Registered: May 2007
Distribution: Ubuntu 14.04 LTS
Posts: 59

Rep: Reputation: 16
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, 12:56 PM   #5
wichiff
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu
Posts: 19

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 09:50 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration