美文网首页
centos7划分vlan

centos7划分vlan

作者: hewolf | 来源:发表于2021-08-07 18:12 被阅读0次
  1. lsmod|grep 8021q 确认内核是够载入了802.1q模组

2.modprobe -a 8021q 如果没载入使用这个命令载入模组

image

3.配置vlan需要vconfig命令,由于centos7上没有自带vconfig命令,所以需要安装vconfig

配置epel源:yum install epel-release -y

安装vconfig:yum install vconfig -y

4.创建两个vlan:ens33.10和ens33.20

vconfig add ens33 10

vconfig add ens33 20

image

5.通过ip -a或者ifconfig -a查看。完成!

image

相关文章

网友评论

      本文标题:centos7划分vlan

      本文链接:https://www.haomeiwen.com/subject/aksgvltx.html