Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SOLVED] Enable 169.254.x.x in Jessie

Featured Replies

I have a project where I would like to connect two project boards together with an Ethernet cable.  No router, no hub, just two boards with a patch of cat5 between them.  In order to make this work I need to get a Link-local IPv4 address on each (RFC 3927).  I believe this is done with avahi, but I'm unsure if avahi is simply name resolution or if it performs the link-local address allocation as well.

 

Anyway here's what I've tried:

sudo apt-get install avahi-daemon avahi-discover libnss-mdns
# sudo reboot -r now
# systemctl script on reboot to log IP to file with `hostname -I`

What I find is that when I'm hooked up to my router `hostname -I` reports what I'd expect from my DHCP server, but when I hook up board-to-board or board-to-laptop, all I get is an IPv6 address (no IPv4) and moreover the IPv6 address I do get does not reply to pings.

 

Here's my config:

  • Odroid-C1+
  • Armbian_5.25_Odroidc1_Debian_jessie_default_3.10.104.7z
  • Apt/Got : avahi-daemon, avahi-discover, libnss-mdns

 

As a final thought, I don't have to use Jessie.  Xenial or Desktop would be fine as well.  At this point I'm just curious what else is needed to make it work.

 

Any thoughts?

networking is networking.

you should use a crossover cable and set a static IP on each device..NO GATEWAY, Just the IP and subnet

  • Author
Quote

you should use a crossover cable and set a static IP on each device..NO GATEWAY, Just the IP and subnet

Yep, that works great... got that working straight off the bat.  Just seams like Link-local addressing should be possible.

 

Just curious how to make it happen.

  • Author

OK... figured it out

apt-get install avahi-autoip winbind libnss-winbind

then edit /etc/samba/smb.conf

dns proxy = yes

then add `wins` /etc/nsswitch.conf

hosts:	files wins myhostname mdns4_minimal [NOTFOUND=return] dns

Now when the SoC comes up, it is easy to find with netbios without having to nmap 65,000 address (replace hostname with 'raspberrypi' or 'odroidc1' or whatever the board name is.

nbtstat -a hostname
nbtstat -c
arp -a

This should be enough to get me started.  It pulls in a lot more software than needed, but it does meet my needs.

 

PS.. admins, feel free to change the subject from '[REQ]' to '[SOLVED]', though this one easily falls into RTFM.

  • Author

Found some more information that may be missing... LLMNR (RFC 4795).  Here's the config I have right now.

apt-get install avahi-autoip winbind libnss-winbind
"dns proxy = yes" => /etc/samba/smb.conf
"hosts:	files wins ... dns" => /etc/nsswitch.conf

and this gets me most of what I need, but with the above config, I can only find the SoC server from Windows using NetBios utilities.  Conventional TCP/IP resolutions don't work.

 

Looks like there is an LLMNR option in resolved.conf.  So perhaps adding this will allow the SoC server to broadcast its information better...

"LLMNR=yes" => /etc/*/resolved.conf

I'll update if it works.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.