VLAN number on JAIL with VNET

Status
Not open for further replies.

ignik

Cadet
Joined
Jul 8, 2018
Messages
2
Where i can store vlan_number for jail?
Code:
% cat /etc/rc.local

#!/bin/sh
V=vlan_number
E=epair0b
IP=`ifconfig $E | awk '/inet/ { print $2" "$3" "$4 }'`
R=`netstat -nr | awk '/default/ { print $2}'`
D=`date`
echo "$D Jail booting vlan: $V ip: $IP default: $R" >> /var/log/rc.log

ifconfig vlan$V create
ifconfig vlan$V vlan $V vlandev $E up
ifconfig $E delete
ifconfig vlan$V $IP
route add default $R
 
Status
Not open for further replies.
Top