Skip to main content

FreeBSD : Persistent naming for NICs in FreeBSD

Is there anything equivalent to Debians udev rules on FreeBSD? I was hoping to set the name on devices according to the devices attributes such as PCI bus/MAC etc.

However, FreeBSD only seems to allow you rename the device after it's already set the device name. i.e. after the card is detected at boot and depending on the order, assigning names such as em0, em1 ...

I know that configuring rc.local should allow you to rename the interface but I prefer naming a device by it's attribute rather device name. e.g ifconfig_em0_name=eth0

Any help would be greatly be appreciated. Thank you.ifconfig_em0_name=eth0.

FreeBSD : Persistent naming for NICs

Is there anything equivalent to Debians udev rules on FreeBSD? I was hoping to set the name on devices according to the devices attributes such as PCI bus/MAC etc.

However, FreeBSD only seems to allow you rename the device after it's already set the device name. i.e. after the card is detected at boot and depending on the order, assigning names such as em0, em1 ...

I know that configuring rc.local should allow you to rename the interface but I prefer naming a device by it's attribute rather device name. e.g ifconfig_em0_name=eth0

Any help would be greatly be appreciated. Thank you.

Persistent naming for NICs in FreeBSD

Is there anything equivalent to Debians udev rules on FreeBSD? I was hoping to set the name on devices according to the devices attributes such as PCI bus/MAC etc.

However, FreeBSD only seems to allow you rename the device after it's already set the device name. i.e. after the card is detected at boot and depending on the order, assigning names such as em0, em1 ...

I know that configuring rc.local should allow you to rename the interface but I prefer naming a device by it's attribute rather device name. e.g ifconfig_em0_name=eth0.

added 400 characters in body
Source Link
supmethods
  • 571
  • 1
  • 9
  • 22

Is there anything equivalent to Debians udev rules on FreeBSD? I was hoping to set the name on devices according to the devices attributes such as PCI bus/MAC etc.

However, FreeBSD only seems to allow you rename the device after it's already set the device name. i.e. after the card is detected at boot and depending on the order, assigning names such as em0, em1 /etc/udev/rules.d/70-persistent-net.rules.

I know you can modify thethat configuring rc.local fileshould allow you to rename the interface but looking for something at boot timeI prefer naming a device by it's attribute rather device name. Thanks e.g ifconfig_em0_name=eth0

Any help would be greatly be appreciated. Thank you.

Is there anything equivalent to Debians udev rules on FreeBSD? i.e. /etc/udev/rules.d/70-persistent-net.rules

I know you can modify the rc.local file but looking for something at boot time. Thanks.

Is there anything equivalent to Debians udev rules on FreeBSD? I was hoping to set the name on devices according to the devices attributes such as PCI bus/MAC etc.

However, FreeBSD only seems to allow you rename the device after it's already set the device name. i.e. after the card is detected at boot and depending on the order, assigning names such as em0, em1 ...

I know that configuring rc.local should allow you to rename the interface but I prefer naming a device by it's attribute rather device name. e.g ifconfig_em0_name=eth0

Any help would be greatly be appreciated. Thank you.

Source Link
supmethods
  • 571
  • 1
  • 9
  • 22

FreeBSD : Persistent naming for NICs

Is there anything equivalent to Debians udev rules on FreeBSD? i.e. /etc/udev/rules.d/70-persistent-net.rules

I know you can modify the rc.local file but looking for something at boot time. Thanks.