Date: Wed, 29 Jun 2016 13:51:40 +0200 From: "Kristof Provost" <kp@FreeBSD.org> To: "Slawa Olhovchenkov" <slw@zxy.spb.ru> Cc: freebsd-stable@freebsd.org, freebsd-net@freebsd.org Subject: Re: How to setup ethernet address and IPv4 address on interface? Message-ID: <BD69070C-4DD9-4525-874D-7C646FC82ED2@FreeBSD.org> In-Reply-To: <20160629114729.GB20831@zxy.spb.ru> References: <20160629114729.GB20831@zxy.spb.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On 29 Jun 2016, at 13:47, Slawa Olhovchenkov wrote: > I am trying to change MAC address and setup IPv4 address and got > error: > > # ifconfig em1 ether 00:30:48:63:19:04 inet 192.168.2.1/24 > ifconfig: can't set link-level netmask or broadcast > > Is this posible? Yes, but you can’t do both in one call. This works: ifconfig em1 ether 00:30:48:63:19:04 ifconfig em1 inet 192.168.2.1/24 Regards, Kristof
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BD69070C-4DD9-4525-874D-7C646FC82ED2>