EdgeRouter - Create virtual interfaces with VLAN IDs

Overview


Readers will learn how to setup VLANs across Ethernet interfaces.

Steps


  1. The following commands create a VIF (Virtual Interface) VLAN ID of 1001 on interface eth0:

    configure
    set interfaces ethernet eth0 vif 1001 address 172.16.4.1/24 
    commit
    exit
    

     

  2. To display the configurations of your Ethernet interfaces, use the show interfaces ethernet command:

    ubnt@ubnt:~$ show interfaces ethernet 
    Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
    Interface    IP Address                        S/L  Description                 
    ---------    ----------                        ---  -----------                 
    eth0         10.1.0.124/23                     u/u                              
    eth0.1001    172.16.4.1/24                     u/u                              
    eth1         172.16.2.5/24                     u/u                              
    eth2         172.16.3.5/24                     u/u                              
    ubnt@ubnt:~$
Powered by Zendesk