Changeset 33065


Ignore:
Timestamp:
Aug 8, 2017, 6:02:01 PM (13 days ago)
Author:
brainslayer
Message:

create vlan if

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/services/sysinit/sysinit-ubntm.c

    r33063 r33065  
    178178                eval("swconfig", "dev", "eth0", "vlan", "2", "set", "ports", "0 5");
    179179                eval("swconfig", "dev", "eth0", "set", "apply");
     180                eval("ifconfig", "eth0", "up");
     181                eval("vconfig", "set_name_type", "VLAN_PLUS_VID_NO_PAD");
     182                eval("vconfig", "add", "eth0", "1");
     183                eval("vconfig", "add", "eth0", "2");
     184
    180185        }
    181186
Note: See TracChangeset for help on using the changeset viewer.