The entire experimental topology
host creates a bridge br1
ip link add br1 type bridge
creates a vlan of the bridge br1
ip link add link br1 name br1.1 type vlan id 1
ip addr add 192.168.11.1/24 dev br1.1
ip link add link br1 name br1.8 type vlan id 8
ip addr add 192.168.88.1/24 dev br1.8
The results are as follows:
Install one virtual machine client centos8, one ikuai router, and the network is designated as br1
client network configuration:
create a vlan subinterface:
ip link add link ens3 name ens3.1 type vlan id 1
and configure ip, gateway
ip: 192.168.11.101
gw:192.168.11.1
Router network configuration:
First, the ikuai router single network card access, you can turn on the single-arm routing mode to
enter the ikuai router for the first time, select "enable single-arm routing", and restart the router to take effect
and enter the router again, bind lan1, wan1, and set the ip Address
lan1:192.168.11.254
wan1:192.168.88.254
gw:192.168.88.1 The
result is as follows:
Finally test the network