Re: How to setup ethernet address and IPv4 address on interface?
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: > 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! ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: How to setup ethernet address and IPv4 address on interface?
Hi, all, > Am 29.06.2016 um 14:23 schrieb Slawa Olhovchenkov: > > On Wed, Jun 29, 2016 at 02:13:59PM +0200, Patrick M. Hausen wrote: > >> 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. ifconfig_em1="ether 00:30:48:63:19:04" ipv4_addrs_em1="192.168.2.1/24" Kind regards, Patrick -- punkt.de GmbH * Kaiserallee 13a * 76133 Karlsruhe Tel. 0721 9109 0 * Fax 0721 9109 100 i...@punkt.de http://www.punkt.de Gf: Jürgen Egeling AG Mannheim 108285 ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: How to setup ethernet address and IPv4 address on interface?
Hi! > Am 29.06.2016 um 14:01 schrieb Slawa Olhovchenkov: > 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? Kind regards Patrick -- punkt.de GmbH * Kaiserallee 13a * 76133 Karlsruhe Tel. 0721 9109 0 * Fax 0721 9109 100 i...@punkt.de http://www.punkt.de Gf: Jürgen Egeling AG Mannheim 108285 ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: How to setup ethernet address and IPv4 address on interface?
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: > > 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. ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: How to setup ethernet address and IPv4 address on interface?
On Wed, Jun 29, 2016 at 01:51:40PM +0200, Kristof Provost wrote: > 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 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. ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: How to setup ethernet address and IPv4 address on interface?
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 ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"