User Guide
© Copyright 2021, Belden Inc. 2021-05-31 1 of 4
User Guide - OWL VLANs
Contents
Add Startup Script ..................................................................................................................................... 2
Reboot or Power Cycle the Device ......................................................................................................... 3
Verify ........................................................................................................................................................... 4
User Guide
© Copyright 2021, Belden Inc. 2 of 4
User Guide - OWL VLANs
This guide shows how to add VLAN functionality to OWL devices via simple startup-scripts.
Add Startup Script
Add the following three lines to the startup script:
ip link add link eth1 name eth1.10 type vlan id 10
ip addr add dev eth1.10 192.168.10.8/24 brd 192.168.10.255
ip link set dev eth1.10 up
Explanation:
ip link add link eth1 name eth1.10 type vlan id 10
ip link add - command to add a new link
link eth1 adds the VLAN to the Secondary Ethernet Interface
name eth1.10 gives a name to this vlan interface which is used in the following commands, but
convention is <linked ethernet>.<vlan id>
type vlan id 10 creates a VLAN with ID 10
ip addr add dev eth1.10 192.168.10.8/24 brd 192.168.10.255
ip addr add - command to add an IP address to an interface
dev eth1.10 - add the IP address to the interface named eth1.10 (freely chosen with the link add
command before)
192.168.10.8/24
assigns the management IP address 192.168.10.8 on this VLAN
tells the system that the subnet network mask is /24 (equivalent to 255.255.255.0)
brd 192.168.10.255 - optional - tells the system the broadcast IP address of this subnet
ip link set dev eth1.10 up
Enables the interface named eth1.10