openwrt/lede配置单臂路由,centos7开启vlan支持,小记
2017-10-15 21:04
2146 查看
1,lede单臂路由配置,vi /etc/config/network,
添加如下内容
config switch_vlan
option device eth0
option vlan 0
option ports "1 2"
修改interface lan的ifname为eth0.1,interface wan和wan6的ifname为eth0.2
保存后重启生效。
2,配置centos7
vlan支持,vlan id 假定为1
modprobe
8021q
cd /etc/sysconfig/network-scripts/
cp
ifcfg-enp0s3 ifcfg-enp0s3.1
vi ifcfg-enp0s3,修改BOOTPROTO=none
vi ifcfg-enp0s3.1,删除TYPE=Ethernet,添加VLAN=yes,修改DEVICE=enp0s3.1
保存后systemctl restart network生效。
添加如下内容
config switch_vlan
option device eth0
option vlan 0
option ports "1 2"
修改interface lan的ifname为eth0.1,interface wan和wan6的ifname为eth0.2
保存后重启生效。
2,配置centos7
vlan支持,vlan id 假定为1
modprobe
8021q
cd /etc/sysconfig/network-scripts/
cp
ifcfg-enp0s3 ifcfg-enp0s3.1
vi ifcfg-enp0s3,修改BOOTPROTO=none
vi ifcfg-enp0s3.1,删除TYPE=Ethernet,添加VLAN=yes,修改DEVICE=enp0s3.1
保存后systemctl restart network生效。
相关文章推荐
- OpenWrt telnetd开启,需要密码和不需要密码的配置
- Linux/Openwrt路由安装配置UPNP服务提高迅雷下载速度
- VLAN的通讯:单臂路由配置实例
- 在存在多条路由的内部网络中,配置ISAServer2006支持多VLAN
- Vlan配置详解之单臂路由
- VLAN的通讯:单臂路由配置实例
- 78、VLAN间路由配置实验之单臂路由
- VLAN的通讯:单臂路由配置实例
- EchoLife HG520s 无线路由功能开启(配置小记)
- centos7中ssh开启以及mysql数据库的安装还有防火墙的配置
- 利用三层交换机实现VLAN间路由配置
- Cisco3550三层交换机vlan间路由配置实例
- Openwrt/Linux 添加 vlan的步骤
- CentOS7配置php7.0支持redis
- 单臂路由下VLAN间通讯
- 全新WayOS 配置文件保存工具支持蓝色界面路由版本
- 第4章 利用三层交换机实现VLAN间路由lan配置