Skip to content

Ethernet

Frank Bauernöppel edited this page Oct 27, 2018 · 9 revisions

is a wired network technology usually managed by connman.

The command line tool connmanctl is used to manage ethernet and wifi connections.

check available network technologies

root@raspberrypi3:~# connmanctl services
*AO wlan@bauernoeppel.de wifi_b827eb3d2eb5_776c616e4062617565726e6f657070656c2e6465_managed_psk
*AR Wired                ethernet_b827eb687be0_cable

Use the service id (in the example ethernet_b827eb687be0_cable) to configure the service:

configure DHCP

root@raspberrypi3:~# connmanctl config ethernet_b827eb687be0_cable --ipv4 dhcp

configure a fixed IPv4 address

root@raspberrypi3:~# connmanctl config ethernet_b827eb687be0_cable --ipv4 manual 192.168.2.111 255.255.255.0 192.168.2.1

switch IPv4 addressing off

root@raspberrypi3:~# connmanctl config ethernet_b827eb687be0_cable --ipv4 off

Directly conecting to another computer using Zeroconf

If the Ethernet service is configured to DHCP but cannot find a DHCP server in the network, it will switch to Zeroconf: the RasPi gets itself a random IPv4 number in the 169.254.x.x range. If you connect the RasPi directly to a computer using the same technology, both are connected.

The RasPi identifies itself by the mDNS name raspberrypi3.local. From the other computer you may set up a ssh connection by typing

ssh root@raspberrypi3.local

Note: It takes more than 1 minute after boot before Zeroconf is activated.

configure a Ubuntu Laptop/PC for Zeroconf

In Network Connections Add a new Ethernet connection. Choose the following settings:

  • General: Automatically connect to this network when availabale
  • Ethernet: use ethernet adapter, leave all defaults
  • 802.1x Security: none
  • IPv4 Settings: Method: Link-Local Only
  • IPv6 Settings: Method: Link-Local Only
Clone this wiki locally