I have balena installed on a Revolution Pi Connect 4 and I need to be able to disable one of the ethernet ports. I can’t find any guides that show you how you can disable an ethernet port. Is this possible via the config.json file? Maybe a file in the system-connections?
Hi @jhughesoti,
Thanks for reaching out.
Information on how to setup network configs on a balena device can be found here: Network Setup on balenaOS | balena
An example file you could put in the system-connections in the boot partition, to disable eth0 is:
[connection]
id=disable-eth0
interface-name=eth0
type=ethernet
# This is the key setting: 'false' prevents it from connecting
autoconnect=false
[ethernet]
[ipv4]
method=disabled
[ipv6]
method=disabled
This does appear to keep the port from receiving an IP address but I was hoping for some way to set the port truly down so that it wouldn’t even be detected if plugged in, i.e. no status or link light but this should be enough for now. Thanks.