-
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
Direct connection 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 (raspberrypi3 is the hostname). 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
The Ubuntu Laptop/PC can be identified by its hostname (example FB1-NB-BAUER-02) too:
root@raspberrypi3:~# ping FB1-NB-BAUER-02.local
PING FB1-NB-BAUER-02.local (169.254.170.227) 56(84) bytes of data.
64 bytes from FB1-NB-BAUER-02.local (169.254.170.227): icmp_seq=1 ttl=64 time=0.315 ms
...