Date: Mon, 4 Jan 2016 08:40:30 +0100 From: Stefan Bethke <stb@lassitu.de> To: Garrett Wollman <wollman@bimajority.org> Cc: freebsd-net@freebsd.org, bz@freebsd.org, FreeBSD Stable <freebsd-stable@freebsd.org> Subject: Re: Have I got this VIMAGE setup correct? Message-ID: <77DACFE3-ED84-4564-80D8-726B2001084B@lassitu.de> In-Reply-To: <22153.52194.769839.15339@hergotha.csail.mit.edu> References: <22137.33475.645324.203196@hergotha.csail.mit.edu> <20151223044233.GM33115@over-yonder.net> <22153.52194.769839.15339@hergotha.csail.mit.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Am 04.01.2016 um 02:33 schrieb Garrett Wollman <wollman@bimajority.org>: > > For now, I think I'll just use exec.prestart to manually configure a > MAC address. It would be nice if the LAA MAC addresses we generated > were both random on initial creation (to better avoid duplicates) and > stable over reboot. (Likewise the bridge(4) MAC address.) Or > alternatively if we just had rc.conf support for explicitly > configuring the MAC address of every interface, since ifconfig doesn't > let you configure L2 and L3 addresses on the same command line. I’ve had good experiences with using create_args_<ifname> in rc.conf. I believe that ifconfig only let’s you work with only one address family per invocation. Stefan -- Stefan Bethke <stb@lassitu.de> Fon +49 151 14070811 create_args_tap0="ether 02:00:00:00:01:00" create_args_tap1="ether 02:00:00:00:01:01" create_args_tap2="ether 02:00:00:00:01:02" create_args_tap3="ether 02:00:00:00:01:03" create_args_tap4="ether 02:00:00:00:01:04" create_args_vlan100="vlandev em0 vlan 100 up" create_args_vlan101="vlandev em0 vlan 101 up" create_args_vlan102="vlandev em0 vlan 102 up" create_args_vlan103="vlandev em0 vlan 103 up" create_args_vlan104="vlandev em0 vlan 104 up" create_args_bridge100="ether 02:00:00:00:00:64 addm vlan100" create_args_bridge101="ether 02:00:00:00:00:65 addm vlan101" create_args_bridge102="ether 02:00:00:00:00:66 addm vlan102 addm tap0 addm tap1 fib 1" create_args_bridge103="ether 02:00:00:00:00:67" create_args_bridge104="ether 02:00:00:00:00:68"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?77DACFE3-ED84-4564-80D8-726B2001084B>
