how to add an aliased nic at boot time

Sergio Tam tam.sergio at
Tue Feb 18 14:28:30 UTC 2014


2014-02-18 7:44 GMT-06:00 Aryeh Friedman <aryeh.friedman at>:
> I need to create two virtual nics and make them get assigned at boot
> time... the exact command line I need to transfer to rc.conf is:
> ifconfig re0 alias up




It is possible to add IP alias entries using ifconfig(8) syn-
tax with the address family keyword such as inet.  Assuming
that the interface in question was ed0, it might look some-
thing like this:

ifconfig_ed0_alias0="inet netmask 0xffffffff"
ifconfig_ed0_alias1="inet netmask 0xffffffff"


Google search: ifconfig add alias to rc.conf freebsd


> --
> Aryeh M. Friedman, Lead Developer,

More information about the freebsd-questions mailing list