Page MenuHomeFreeBSD
Paste P333

Masterwork From Distant Lands
ActivePublic

Authored by thj on Mon, Nov 4, 10:27 PM.
#!/bin/sh
ifname=`ifconfig epair create`
epair=`echo ${ifname%a}`
jail -c name=alcatraz persist vnet vnet.interface=${epair}b
ifconfig ${epair}a name foo
jexec alcatraz ifconfig ${epair}b name bar
jail -r alcatraz
ifconfig foo destroy

Event Timeline

thj edited the content of this paste. (Show Details)Mon, Nov 4, 10:27 PM
thj changed the title of this paste from untitled to Masterwork From Distant Lands.