scripts: add ip set interface up because in CentOS7 the interface will not auto up

This closes #97

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Star Guo 2015-03-05 00:49:07 +08:00 committed by Rohit Yadav
parent 729e239a47
commit 290938b08e
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ addVlan() {
if [ ! -d /sys/class/net/$vlanDev ]
then
ip link add link $pif name $vlanDev type vlan id $vlanId > /dev/null
ip link set $vlanDev up
if [ $? -gt 0 ]
then