diff options
| author | Devin Teske <dteske@FreeBSD.org> | 2016-02-09 18:11:18 +0000 |
|---|---|---|
| committer | Devin Teske <dteske@FreeBSD.org> | 2016-02-09 18:11:18 +0000 |
| commit | f2c27deaaede9c47649d07137e82c04decb41709 (patch) | |
| tree | 2853d413bf79077674ec03fb6859ac215e70872a /share/examples/jails | |
| parent | de6544a24950e24fe760caf35febbb03c1e34713 (diff) | |
Notes
Diffstat (limited to 'share/examples/jails')
| -rwxr-xr-x | share/examples/jails/jib | 3 | ||||
| -rwxr-xr-x | share/examples/jails/jng | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/share/examples/jails/jib b/share/examples/jails/jib index 950f61ddc909..a93d2f2ed22f 100755 --- a/share/examples/jails/jib +++ b/share/examples/jails/jib @@ -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 diff --git a/share/examples/jails/jng b/share/examples/jails/jng index 8d8536cef427..445803db1ec2 100755 --- a/share/examples/jails/jng +++ b/share/examples/jails/jng @@ -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 |
