Date: Tue, 21 Oct 2008 13:40:07 -0700 From: Christopher Cowart <ccowart@rescomp.berkeley.edu> To: Eduardo Meyer <dudu.meyer@gmail.com> Cc: freebsd-net@freebsd.org Subject: Re: ifconfig won't allow me to change ether address and inet address in the same command Message-ID: <20081021204007.GS66228@hal.rescomp.berkeley.edu> In-Reply-To: <d3ea75b30810211148l798ee274s77081b12962d15f4@mail.gmail.com> References: <d3ea75b30810211148l798ee274s77081b12962d15f4@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--L2YZAWjVjAQ1Un1Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Eduardo Meyer wrote: > # ifconfig rl0 inet 192.168.2.12 netmask 255.255.255.0 > # ifconfig rl0 ether 00:02:4f:0a:ce:f3 >=20 > I ask you some help, how can I accomplish both tasks with rc_ng? In=20 > /etc/rc.conf Somebody might have a hint for a single ifconfig command, but you can also create the file /etc/start_if.rl0 with any additional commands to be run by rc. This will get sourced automatically by rc _before_ the value of ifconfig_rl0 in /etc/rc.conf.=20 For example, in /etc/rc.conf, leave | ifconfig_rl0=3D"inet 192.168.2.12 netmask 255.255.255.0" And in /etc/start_if.rl0, add: | ifconfig rl0 ether 00:02:4f:0a:ce:f3 --=20 Chris Cowart Network Technical Lead Network & Infrastructure Services, RSSP-IT UC Berkeley --L2YZAWjVjAQ1Un1Q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iQIcBAEBAwAGBQJI/j4nAAoJEIGh6j3cHUNPYA0P/RI15ZzUOiBMJtb0A2HEsqp9 1BX4SSEBl3zI6iqgUFQCzPJCjElHs/zHczgferH+YyQ/+dlEIVK9PGx2/6KJadit /Kif3AlJ/3j/+gwmgggEniR86+bzUMmQ1ocHw1iADPpCqPfDg7hvpQv1J7bDa7ht LVPerTOXKEvQ1Dd1v53/TWTEXOgGANN/uaXUkg7GqwpOqUEjI+eNB+mxQWgYT6DH d/d6ZtVM7rd8E3CiykuUwZ8FF5r9M0UHFhUKtmCus3o0AWdh8llupOZjLCsV6jvb CZ73gW1H7CkT+O1jqyIWykI9hcSU613tyqyUKTLE5u51IL2vfzte8lYBs5P8/F5X IyXchfxpcpw4dd1fxG8HjtKCpoan5gjNuVyVEN3QrjmIc5qauMFYlg+chiAAOqNG s4HVU4GEMSboXP8O1ysX/ZItYr9nqrd5L8ytul1vO8HsMtxsR2kdXv4cnXWP+bsj nVqDuhkyyhXZzpHtpuYDYQaclO/7ywEqk8NPP0I1yP5Dj1QY3MsEOZNNR7Ults3K 1fc2tBIy5TmBMU8Ou7Zzu1TVVNsMyLqp1PbP+s9yPI2x270in/vn/ZmbYlyxT6yF pS0BYcb+5ZT1YuFrcssIgBbkI98jF6LRuoKy5co/qAs0H4X6PHCMX9lGRCgnQlg/ uesthG+soyotAeztiupW =S9oW -----END PGP SIGNATURE----- --L2YZAWjVjAQ1Un1Q--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081021204007.GS66228>