CONFIGURATION FILES
CHAPTER 5
52
ECOTEL 3G 16.1. Revised: 1 March 2011.
5.1.11 VLAN CONFIGURATION
A VLAN (Virtual Local Area Network) is a virtual LAN within a physical network. Each VLAN is assigned a unique
number (VLAN ID) and defined in the [
vlan<x>] section with
Tag: value between 1 and 4095
Priority: value between 0 and 7 (0 is lowest and 7 is the highest priority)
[vlan0]
IfConfig=vlan <tag>,<priority> vlanif <interface>
Example: The following entry will create the interface vlan1, with VLAN tag 10 and priority 7, on the Ether-
net interface emac0. Following this configuration, IP addresses (and/or other protocols) can be
assigned to the vlan1 interface:
5.1.12 EXAMPLES
5.1.12.1 DEFAULT CONFIGURATION
In the following example, the system’s IP address is 192.168.1.1, the netmask is 255.255.255.0, and the standard
gateway is 192.168.1.254:
5.1.12.2 ACTIVE ETHERNET BRIDGE
In the following example a two-port Ethernet bridge is configured. The system’s IP address is 192.168.1.1, the net-
mask is 255.255.255.0, and the standard gateway is 192.168.1.254,
The emac1 interface is active and both Ethernet interfaces are set to bridge mode in the
[bridge0] section:
[vlan1]
IfConfig=vlan 10,7 vlanif emac0
IpAddress=192.168.199.1
[System]
DefaultGw=192.168.1.254
[emac0]
IpAddress=192.168.1.1/24
[System]
DefaultGw=192.168.1.254
[emac0]
IpAddress=192.168.1.1/24
[emac1]
IpAddress=up
[bridge0]
BrConfig=add emac0 add emac1 up