---
# System prepended metadata

title: VLAN for Maple
tags: [maple, vlan]

---


## Step.1 安裝vlan（vconfig）以及 load 8021q module
```bash
yum install vconfig
modprobe 8021q

# 確認安裝8021q module
lsmod |grep -i 8021q
```

## Step.2 在ens2f1接口上配置1個 1342 VLAN
```bash
vconfig add ens2f1 1342
```

## Step.3 設置VLAN的REORDER_HDR參數
```bash
vconfig set_flag ens2f1.1342 1 1
```

## Step.4 設定IP for N2, N3
```bash
ifconfig ens2f1.1342 192.168.1.123 netmask 255.255.255.0 up
```