Overview
Readers will learn how to add VLAN Virtual Interfaces (VIFs) to either Ethernet or switch ports on different EdgeRouter models.
Adding a VIF to an Ethernet Interface
Follow the steps below to create a virtual interface with a VLAN ID of 10 and address 10.0.10.1/24 on the eth1 interface:
Dashboard > Add Interface > Add VLAN
VLAN ID: 10
Interface: eth1
Address: Manually define IP address > 10.0.10.1/24
The above configuration can also be set using the CLI:
configure set interfaces ethernet eth1 vif 10 address 10.0.10.1/24 commit ; save ; exit
You can verify the configuration with the show interfaces command.
show interfaces Interface IP Address S/L Description --------- ---------- --- ----------- eth1 - u/u eth1.10 10.0.10.1/24 u/u
Adding a VIF to the Switch0 Interface
Follow the steps below to create a virtual interface with a VLAN ID of 10 and address 10.0.10.1/24 on the switch0 interface:
Dashboard > Add Interface > Add VLAN
VLAN ID: 10
Interface: switch0
Address: Manually define IP address > 10.0.10.1/24
The above configuration can also be set using the CLI:
configure set interfaces switch switch0 vif 10 address 10.0.10.1/24 commit ; save
You can verify the configuration with the show interfaces command.
show interfaces Interface IP Address S/L Description --------- ---------- --- ----------- switch0 - u/u switch0.10 10.0.10.1/24 u/u
Related Articles
Intro to Networking - How to Establish a Connection Using SSH