blog.up-link.ro
29Jul/110

FreeBSD: How To Rename Network Interfaces

To rename a network interface under FreeBSD, invoke ifconfig command as root:

ifconfig bge1 name net1

Observe that the interface formerly known as bge1 is now net1. To keep the change after reboot, add the following lines to /etc/rc.conf:

ifconfig_bge1_name="net1"
ifconfig_net1="inet 192.168.0.1 netmask 255.255.255.0"

Print This Post Print This Post