Network settings

This chapter describes the network settings under TwinCAT/BSD and guides you through the necessary steps to configure your system. Topics such as IP address assignment, host name customization, and firewall activation with port sharing are covered here.

DHCP client

Under TwinCAT/BSD the dhclient(8) was used as DHCP client so far. As of version 13.2.0.6 / 89449, dhcpcd(8) is shipped as the default DHCP client and replaces the older client. For the sake of completeness, we will continue to describe how to set a fixed IP address with the old DHCP client (see: Set IP address for systems with dhclient) and how to set a fixed IP address with dhcpcd (see: Set IP address (dhcpcd)) in comparison.

The new DHCP client offers the following advantages:

If you want to use the dhcpcd also under older TwinCAT/BSD versions, the package dhcpcd has to be post-installed manually and then configured under /etc/rc.conf (see: Post-install and activate dhcpcd). Notice Note that the older dhclient and dhcpcd must not be configured at the same time, as the two services interfere with each other.

DHCP is still preset for each network interface and the IP address is obtained automatically. To set a static IP address, ifconfig can still be used.