Solved Why do I need inet in rc.conf

I have a /etc/rc.conf like this:

Code:
ifconfig_lagg0="up laggproto roundrobin laggport cxl0 laggport cxl1 192.168.1.1 netmask 255.255.255.0"
ifconfig_em1="inet 192.168.2.1 netmask 255.255.255.0"

Why do I need 'inet' for em1 static ip setting but not lagg0.

I really don't understand what inet does here.
 
The manpage for ifconfig(8) gives some insight.

address_family
The default if available is "inet".

So if I you don't specify "address family" it chooses inet by default it would appear.
 
Back
Top