Openwrt 单wan口 N 拨教程

Openwrt  单wan口 N 拨教程

登陆后 输入下面的命令

opkg install

等待安装完成,,再安装

opkg install

然后对路由进行配置 以下都在SecureCRT登陆下完成的

# 查看你的wan口的端口名称

root@OpenWrt:~# cat /etc/config/network

config 'switch' 'eth0'

option 'enable' '1'

config 'switch_vlan' 'eth0_0'

option 'device' 'eth0'

option 'vlan' '0'

option 'ports' '1 2 3 4 5' #port1、2、3、4和cpu 5属于vlan 0

config 'switch_vlan' 'eth0_1' 记住 这里的eth0_1 后面有用

option 'device' 'eth0'

option 'vlan' '1'

option 'ports' '0 5' #port0和cpu 5属于vlan 1

编辑/etc/rc.local 增加虚拟wankou

root@OpenWrt:~# vi /etc/rc.local

按键盘 I 进入修改模式

# Put your custom commands here that should be executed once

# the system init finished. By default this file does nothing.

ip link add link eth0.1 eth2 type macvlan 增加wan2 虚拟网卡 eth0.1 对应前面记下的 ifconfig eth2 hw ether 00:11:22:33:44:5E

Openwrt 单wan口 N 拨教程相关文档

最新文档

返回顶部