[Solved] Device isn't connected to the network & "no ip detected" on terminal screen

:uk:/:us: YunHost on Eee PC 900HA

Hi, thanks for this amazing project!

Hardware: Eee PC 900HA/XP
YunoHost version: yunohost-buster-4.1.8-i386-stable.iso
I have access to my server : direct access via keyboard / screen
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

After install

The device didn’t showed up on router’s devices list. The first screen on the device says:

Local IP: (no ip detected)

Logging in

…with the default root/yunohost was successful

Listing network devices

…with the command

ip a

revealed that all of the network cards were with the status DOWN

Waking up network devices

The device name listed with ip a was enp1s0 in my case, so

ip link set dev enp1s0 up

was successfully waking up the device and

service networking start

was able to set the status of networking.service actve

After rebooting the device I figured out the

dhclient -v enp1s0

was able to wake up and instantly connect the device to the network.

ip r

revealed the local IP, what can be used to load the login | yunohost_admin page bypassing the NET::ERR_CERT_AUTHORITY_INVALID disclaimer in a browser.

To connect after boot/reboot

Needed to

1. create init.d script

/etc/init.d/goonline

with the content like

#!/bin/bash
### BEGIN INIT INFO
# Provides:          goonline
# Required-Start:    $all
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: Waking up network devices and GoOnline
### END INIT INFO

ip link set dev enp1s0 up
service networking start
dhclient -v enp1s0
echo "GoOnline executed"

exit 0

and make executable with

chmod +x goonline

2. setup as systemd service

nano /etc/systemd/system/goonline.service

with the content of

[Unit]
Description=e Connect to network (GoOnline)
After=syslog.target

[Service]
Type=simple
ExecStart=/etc/init.d/goonline
Restart=on-failure
LimitNOFILE=10000

[Install]
WantedBy=default.target
Alias=goonline.service

and enable with

systemctl enable goonline

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.