project-chip / certification-tool

A test harness and tooling designed to simplify development, testing, and certification for devices, guided by the Connectivity Standards Alliance.
https://csa-iot.org/
Apache License 2.0
38 stars 22 forks source link

[Bug] ETH0 not found #281

Closed OlivierGre closed 2 months ago

OlivierGre commented 3 months ago

Describe the bug

I'm following the Test Harness user manual.

I'm using a Raspberry Pi4 and I have installed a Ubuntu Server 22.04 LTS (64 bits). I have cloned this version: git clone -b v2.10+spring2024 https://github.com/project-chip/certification-tool.git

Yesterday I have successfully run the auto-install script (I was using a Wifi connection to my smarphone). Then I have rebooted.

I cannot put the raspberry pi and my laptop on the same network so I have setup a direct Ethernet connection between the raspberry Pi and my laptop.

The problem is that, when I do "ifconfig", I see lot of interfaces but not ETH0 interface. How can I know which one to use?

Here are the interface shown (I'm replacing the hex numbers by XXX)

Steps to reproduce the behavior

No response

Expected behavior

No response

Log files

No response

PICS file

No response

Screenshots

No response

Environment

No response

Additional Information

No response

OlivierGre commented 3 months ago

ifconfig eth0 gives the MAC address of this interface but doesn't contain IP addresses.

OlivierGre commented 3 months ago

Fixed with

sudo ifconfig eth0 up

OlivierGre commented 3 months ago

Closed

OlivierGre commented 3 months ago

After a reboot, eth0 is down again :( What am I doing wrong? Thanks

samryanuofl commented 3 months ago

Is there an entry for eth0 in the config file in /etc/netplan?

OlivierGre commented 3 months ago

No, it only contains a file called "50-cloud-init.yaml"

samryanuofl commented 3 months ago

If you open that file it should have an entry for eth0, if not you will need to add it. The netplan docs have instructions for setting that up:

https://netplan.readthedocs.io/en/stable/examples/#

Then sudo netplan try

OlivierGre commented 3 months ago

Thank you Sam. Finally, I'm able to access to TH Project Menu thanks to the WIFI connection so, right now, I don't need to continue the effort to get eth0 up and running.

hiltonlima commented 3 months ago

HELLO @OlivierGre ,

If you don't have any related problems, could you close the issue?

OlivierGre commented 3 months ago

No more needed. Closing