Project

General

Profile

Actions

Bug #3166

closed

ifconfig alias directive no longer working

Added by aswell over 5 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
12/27/2018
Due date:
% Done:

100%

Estimated time:

Description

After upgrading from 5.4 -> 5.4.1 an ifconfig directive long used in /etc/rc.conf no longer works.

ifconfig_xxx="DHCP"
ifconfig_xxx_alias0="link 00.11.22.33.44.55"

The alias link directive allows easily changing network cards on local machines which receive DHCP addresses based on mac address, without requiring changes to dhcpd.conf on router. However, after upgrading to 5.4.1 the directive no longer changes the mac address, causing machines to receive a different IP address from the router than what is expected by NSD and other machines on network.

Actions #1

Updated by aswell over 5 years ago

Correction: ifconfig_xxx_alias0="link 00:11:22:33:44:55"

Should be obvious, just clarifying...

Actions #2

Updated by liweitianux over 5 years ago

Thanks for the bug report.

I made a change to the alias config code recently that changed the behavior a bit. Aliases should be additional IPv4/IPv6 addresses for an interface, i.e.,

ifconfig_<ifname>_aliasX="inet ..." 
ipv6_ifconfig_<ifname>_aliasX="inet6 ..."

Since you want to change the MAC address, please try:

ifconfig_<ifname>="link 00:11:22:33:44:55 DHCP"

I believe this will work for you.

Actions #3

Updated by aswell over 5 years ago

liweitianux wrote:

I believe this will work for you.

Indeed it did work, and it's one less line in rc.conf, which is always good. Thanks for the prompt reply.

Actions #4

Updated by aswell over 5 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF