Date: Fri, 29 Jun 2007 09:21:23 GMT From: Roger Gujord <roger@gujord.com> To: freebsd-gnats-submit@FreeBSD.org Subject: conf/114119: /etc/rc.d/jail improvements for networking (netmask) Message-ID: <200706290921.l5T9LNrw069058@www.freebsd.org> Resent-Message-ID: <200706290930.l5T9U2Rm086825@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 114119 >Category: conf >Synopsis: /etc/rc.d/jail improvements for networking (netmask) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jun 29 09:30:02 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Roger Gujord >Release: FreeBSD 6.2-RELEASE >Organization: >Environment: >Description: Added support for specifying netmasks in /etc/rc.conf: jail_cellname_netmask="255.255.255.240" Can be used if netmask must be other than the hosts netmask (ex. several subnets or different ip-ranges with other netmasks). >How-To-Repeat: >Fix: Patch attached with submission follows: 35a36 > eval _netmask=\"\$jail_${_j}_netmask\" 80a82 > debug "$_j netmask: $_netmask" 102c104,106 < --- > if [ -z "${_netmask}" ]; then > _netmask="255.255.255.255" > fi 270c274 < ifconfig ${_interface} alias ${_ip} netmask 255.255.255.255 --- > ifconfig ${_interface} alias ${_ip} netmask ${_netmask} >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706290921.l5T9LNrw069058>