Date: 30 Dec 2001 16:32:36 -0600 From: James McNaughton <jtm63@enteract.com> To: "Cambria, Mike" <mcambria@avaya.com> Cc: "'Joe & Fhe Barbish'" <barbish@a1poweruser.com>, FBSD Questions <questions@FreeBSD.ORG> Subject: Re: IPFW rc.firewall Message-ID: <86u1u85ofv.fsf@jamestown.21stcentury.net> In-Reply-To: <3A6D367EA1EFD4118C9B00A0C9DD99D7065380@rerun.lucentctc.com> References: <3A6D367EA1EFD4118C9B00A0C9DD99D7065380@rerun.lucentctc.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"Cambria, Mike" <mcambria@avaya.com> writes: > This is what I use in rc.firewall for a DHCP assigned IPv4 address: > > > onet=`ifconfig vx0 | grep "inet " | awk '{print $6}'` > > oip=`ifconfig vx0 | grep "inet " | awk '{print $2}'` > > omask=`ifconfig vx0 | grep "netmask" | awk '{print $4}'` > As an aside, you may be interested in knowing that awk will do its own regexp pattern matching ala, oip=`ifconfig ep1 | awk '/inet / {print $2}'` To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86u1u85ofv.fsf>