Date: Tue, 9 Feb 2016 18:11:18 +0000 (UTC) From: Devin Teske <dteske@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r295443 - head/share/examples/jails Message-ID: <201602091811.u19IBIc3010064@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dteske Date: Tue Feb 9 18:11:18 2016 New Revision: 295443 URL: https://svnweb.freebsd.org/changeset/base/295443 Log: Bring generated interfaces up always Modified: head/share/examples/jails/jib head/share/examples/jails/jng Modified: head/share/examples/jails/jib ============================================================================== --- head/share/examples/jails/jib Tue Feb 9 18:10:36 2016 (r295442) +++ head/share/examples/jails/jib Tue Feb 9 18:11:18 2016 (r295443) @@ -214,6 +214,7 @@ jib_addm() new=$( ifconfig bridge create ) || return ifconfig $new addm $iface || return ifconfig $new name "$iface$bridge" || return + ifconfig "$iface$bridge" up || return fi # 4. Create a new interface to the bridge @@ -223,6 +224,8 @@ jib_addm() # 5. Rename the new interface ifconfig $new name "e${i}a_$name" || return ifconfig ${new%a}b name "e${i}b_$name" || return + ifconfig "e${i}a_$name" up || return + ifconfig "e${i}b_$name" up || return # # 6. Set the MAC address of the new interface using a sensible Modified: head/share/examples/jails/jng ============================================================================== --- head/share/examples/jails/jng Tue Feb 9 18:10:36 2016 (r295442) +++ head/share/examples/jails/jng Tue Feb 9 18:11:18 2016 (r295443) @@ -255,6 +255,7 @@ jng_bridge() echo $2 ) || return ngctl name "$iface$bridge:link$num" $eiface || return ifconfig $new name $eiface || return + ifconfig $eiface up || return # # 6. Set the MAC address of the new interface using a sensible
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602091811.u19IBIc3010064>