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>: >=20 > 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=E2=80=99ve had good experiences with using create_args_<ifname> in = rc.conf. I believe that ifconfig only let=E2=80=99s you work with only one = address family per invocation. Stefan --=20 Stefan Bethke <stb@lassitu.de> Fon +49 151 14070811 create_args_tap0=3D"ether 02:00:00:00:01:00" create_args_tap1=3D"ether 02:00:00:00:01:01" create_args_tap2=3D"ether 02:00:00:00:01:02" create_args_tap3=3D"ether 02:00:00:00:01:03" create_args_tap4=3D"ether 02:00:00:00:01:04" create_args_vlan100=3D"vlandev em0 vlan 100 up" create_args_vlan101=3D"vlandev em0 vlan 101 up" create_args_vlan102=3D"vlandev em0 vlan 102 up" create_args_vlan103=3D"vlandev em0 vlan 103 up" create_args_vlan104=3D"vlandev em0 vlan 104 up" create_args_bridge100=3D"ether 02:00:00:00:00:64 addm vlan100" create_args_bridge101=3D"ether 02:00:00:00:00:65 addm vlan101" create_args_bridge102=3D"ether 02:00:00:00:00:66 addm vlan102 addm tap0 = addm tap1 fib 1" create_args_bridge103=3D"ether 02:00:00:00:00:67" create_args_bridge104=3D"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>