How to setup ethernet address and IPv4 address on interface?

Artem Viklenko artem at viklenko.net
Wed Jun 29 14:38:04 UTC 2016


2016-06-29 15:23, Slawa Olhovchenkov написав:
> On Wed, Jun 29, 2016 at 02:13:59PM +0200, Patrick M. Hausen wrote:
> 
>> Hi!
>> 
>> > Am 29.06.2016 um 14:01 schrieb Slawa Olhovchenkov <slw at zxy.spb.ru>:
>> > I am need in one call, multiple commands not allways allowed.
>> > Using /etc/start_if.$IFNAME produce side effects and can mask errors
>> > in rc.conf.
>> 
>> What about using a combination of
>> 
>> ifconfig_em1
>> ipv4_addrs_em1
>> 
>> in rc.conf?
> 
> What you mean? I am not rc.conf/network.subr hacker.

on my home router's rc.conf:

ifconfig_fxp1="ether xx:xx:xx:xx:xx:xx polling -rxcsum link0"
ifconfig_fxp1_alias0="inet 192.168.XX.XX/XX"


-- 
Regards!


More information about the freebsd-net mailing list