# Network interface improvement

**URL:** <http://discourse.heig-vd.ch/t/network-interface-improvement/386>\
**Category:** OpenCN Framework\
**Created:** [March 15, 2023, 7:55am UTC](http://discourse.heig-vd.ch/t/network-interface-improvement/386 "2023-03-15T07:55:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmi](http://discourse.heig-vd.ch/user_avatar/discourse.heig-vd.ch/jmi/32/125_2.png) [@jmi](http://discourse.heig-vd.ch/u/jmi)\
**Post date:** [March 15, 2023, 7:55am UTC](http://discourse.heig-vd.ch/t/network-interface-improvement/386/1 "2023-03-15T07:55:34Z")

</div>

Hi all,

Some improvements on the network interface have been made on _OpenCN_ targets.

`DHCP` support has been enabled: if the _OpenCN_ target is connected to a netwrok which has a `DHCP` server, it gets it IP from it.  
If no `DHCP` present on the network, the _OpenCN_ target falllback to a static IP and acts as `DHCP` server. It is the case, for example, when the target is directly connected to a PC.

Support of `ssh` and `avahi` has also been enabled to simply communication with the _OpenCN_ target.

With `ssh` it is possible to log on the target. It is a good complement of the serial interface. It also offers a simple way to copy files between the host and the target with `scp` or `sshfs` tools.

`avahi` lets uses to connect to the target using target `HOSTNAME` instead of the IP.

The documentation on how to use these different tools can be find [here](https://mecatronyx.gitlab.io/opencnc/opencn/environment/environment.html)

Enjoy
