Lines Matching +full:no +full:- +full:ether +full:- +full:link
10 # lines of this file. Under no circumstances is the author
28 # IP address. Target top. syntax: ( name|ip<->name|ip ... )
29 # Example 1: ( n1|10.0.2.1/30<->n2|10.0.2.2/30 ...)
30 # Example 2: ( n1|2001:b90::14a/125<->n1|2001:b90::14b/125 ...)
40 # STATIC_ROUTE0="jexec n1 route add -inet default 10.0.2.2"
41 # STATIC_ROUTE1="jexec n3 route add -inet default 10.0.2.5"
57 # +---------------+ +---------------------------------------------+
60 # | +-----------+ | | +-----------+ +-----------+ +-----------+ |
63 # | +--+-----+--+ | | +--+-----+--+ +--+-----+--+ +--+-----+--+ |
64 # | |ether| | | |ether| |ether| |ether| |
65 # | +-X---+ | | +--X--+ +--X--+ +--X--+ |
66 # +-------X-------+ +------X--------------X---------------X-------+
71 # +--------X------+ +--------X------+
72 # | -+--X--+- | | -+--X--+- |
73 # | |ether| | | |ether| |
74 # | +--+-----+--+ | | +--+-----+--+ |
77 # | +-----------+ | | +-----------+ |
80 # +---------------+ +---------------+
88 TARGET_TOPOLOGY="n1|10.0.2.1/30<->n2|10.0.2.2/30 n2|10.0.2.5/30<->n3|10.0.2.6/30 n2|10.0.2.9/30<->n…
89 STATIC_ROUTE0="jexec n1 route add -inet default 10.0.2.2"
90 STATIC_ROUTE1="jexec n3 route add -inet default 10.0.2.5"
91 STATIC_ROUTE2="jexec n4 route add -inet default 10.0.2.9"
115 if ! kldstat -v | grep -qw ${KLD}; then
116 echo -n "Loading ${KLD}.ko... "
123 # script assumes that there is no previous configuration.
125 if [ ! -e ${TEMP_FILE} ]; then
126 echo "No previous configuration(${TEMP_FILE}) found to clean-up."
128 echo -n "Cleaning previous configuration..."
135 # are written to file while created. In clean-up process written
138 if [ -e ${TEMP_FILE} ]; then
149 PEER1=`echo ${CONNECTION} | awk -F"<->" '{print $1}'`
150 PEER1_NAME=`echo ${PEER1} | awk -F"|" '{print $1}'`
151 PEER1_IP=`echo ${PEER1} | awk -F"|" '{print $2}'`
153 PEER2=`echo ${CONNECTION} | awk -F"<->" '{print $2}'`
154 PEER2_NAME=`echo ${PEER2} | awk -F"|" '{print $1}'`
155 PEER2_IP=`echo ${PEER2} | awk -F"|" '{print $2}'`
177 # ngctl connect INTERFACE1: INTERFACE2: ether ether.
179 echo -n "Connecting ${PEER1_INTERFACE}:ether to ${PEER2_INTERFACE}:ether..."
180 ngctl connect ${PEER1_INTERFACE}: ${PEER2_INTERFACE}: ether ether \
208 ngctl mkpeer eiface ether ether
209 EIFACE=`ngctl l | grep ngeth | tail -n 1| awk '{print $2}'`
212 # Write name of the interface to temp file. Clean-up procedure
231 M4=`od -An -N2 -i /dev/random | sed -e 's/ //g' | \
233 M5=`od -An -N2 -i /dev/random | sed -e 's/ //g' | \
235 M6=`od -An -N2 -i /dev/random | sed -e 's/ //g' | \
240 # Set the link address (mac address) of virtual interface in
243 jexec ${NODE_NAME} ifconfig ${EIFACE} link $MAC
251 IPVER=`echo ${NODE_IP} | awk -F"." '{ split($4,last,"/"); \
264 if ! grep -q $1 ${TEMP_FILE} ; then
266 echo -n "Creating virtual node (jail) ${1}..."
267 jail -c vnet name=${1} host.hostname=${1} \
269 jexec ${1} sysctl -w net.inet.ip.forwarding=1
270 jexec ${1} sysctl -w net.inet6.ip6.forwarding=1
273 # Write name of the jail to temp file. Clean-up
284 if [ ! -e ${TEMP_FILE} ]; then
288 echo -n "Shutdown bridge interface.."
295 echo -n "Shutdown all eiface interfaces..."
302 echo -n "Removing all jails..."
305 jail -r ${NODE}
328 echo -n "Creating default target topology:"
334 if [ ! -e ${TEMP_FILE} ]; then
335 echo -n "Noting to stop! ${TEMP_FILE}:"
355 echo -n "Creating target topology:"