-
Notifications
You must be signed in to change notification settings - Fork 9
Ethernet
is a wired network technology usually managed by connman.
The command line tool connmanctl is used to manage ethernet and wifi connections.
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:
root@raspberrypi3:~# connmanctl config ethernet_b827eb687be0_cable --ipv4 dhcp
root@raspberrypi3:~# connmanctl config ethernet_b827eb687be0_cable --ipv4 manual 192.168.2.111 255.255.255.0 192.168.2.1
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.
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