Lines Matching +full:no +full:- +full:ether +full:- +full:link

10 # lines of this file.  Under no circumstances is the author
55 # +---------------+ +---------------+ +---------------+
58 # | +-----------+ | | +-----------+ | | +-----------+ |
61 # | +--+-----+--+ | | +--+-----+--+ | | +--+-----+--+ |
62 # | |ether| | | |ether| | | |ether| |
63 # | +--X--+ | | +--X--+ | | +---X-+ |
64 # +-----+ +--------\------+ +--------\------+ +-------/-------+
65 # |upper|----\ \ip_addr \ip_addr /ip_addr
66 # +-+-----+--+ \ \ \ \
67 # | em0 | \ +--------+ +-+ \
68 # |(ng_ether)| +-----------+ \ \ \
69 # +-+-----+--+ \ \ / \
70 # |lower| +---------\ \ \ / /
71 # +--X--+ / O--X--O O-X---O O---X-O O--X--O O---X---O
73 # \ / +-O-----O-O-----O-O-----O-O-----O-----O-------O-+
74 # +---+ | |
76 # +-----------------------------------------------+
111 if ! kldstat -v | grep -qw ${KLD}; then
112 echo -n "Loading ${KLD}.ko... "
119 # script assumes that there is no previous configuration.
121 if [ ! -e ${TEMP_FILE} ]; then
122 echo "No previous configuration(${TEMP_FILE}) found to clean-up."
124 echo -n "Cleaning previous configuration..."
131 # are written to file while created. In clean-up process written
134 if [ -e ${TEMP_FILE} ]; then
138 echo -n "Verifying ethernet interface existence..."
149 BRIDGE_COUNT=`ngctl l | grep bridge | wc -l | sed -e "s/ //g"`
167 # Write name of the bridge to temp file. Clean-up procedure will use
179 NODE_NAME=`echo ${NODE} | awk -F"|" '{print $1}'`
180 NODE_IP=`echo ${NODE} | awk -F"|" '{print $2}'`
185 echo -n "Creating virtual node (jail) ${NODE_NAME}..."
186 jail -c vnet name=${NODE_NAME} host.hostname=${NODE_NAME} \
190 # Write name of the jail to temp file. Clean-up procedure will
201 ngctl mkpeer eiface ether ether
202 EIFACE=`ngctl l | grep ngeth | tail -n 1| awk '{print $2}'`
205 # Write name of the interface to temp file. Clean-up procedure
224 M4=`od -An -N2 -i /dev/random | sed -e 's/ //g' | \
226 M5=`od -An -N2 -i /dev/random | sed -e 's/ //g' | \
228 M6=`od -An -N2 -i /dev/random | sed -e 's/ //g' | \
233 # Set the link address (mac address) of virtual interface in
236 jexec ${NODE_NAME} ifconfig ${EIFACE} link $MAC
244 IPVER=`echo ${NODE_IP} | awk -F"." '{ split($4,last,"/"); \
254 # Interface has one hook named 'ether' and below line connects
255 # ether hook to bridge's first unconnected link.
257 echo -n "Connecting ${EIFACE}:ether to ${BRIDGE_NAME}:link${LINKNUM}..."
258 ngctl connect ${EIFACE}: ${BRIDGE_NAME}: ether link${LINKNUM} \
262 # Now, bridge has one more connected link thus link count is
273 if [ ! -e ${TEMP_FILE} ]; then
277 echo -n "Shutdown bridge interface.."
284 echo -n "Shutdown all eiface interfaces..."
291 echo -n "Removing all jails..."
294 jail -r ${NODE}
317 echo -n "Creating default target topology:"
323 if [ ! -e ${TEMP_FILE} ]; then
324 echo -n "Noting to stop! ${TEMP_FILE}:"
344 echo -n "Creating target topology:"