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
你可能喜欢
- htc hero刷机教程
- openwrt图文教程
- openwrt无线蹭网
- proe工程图教程
- htc hero200刷机教程11页
- HTC Hero200 G3使用教程16页
- HTC—Hero200使用教程16页
- HTC hero 200 2.3.3刷机教程2页
- htc hero刷机教程2页
- HTC Hero G3 刷机教程8页
- openwrt端口映射web配置图文教程3页
- openwrt无线蹭网中继叠加图文教程23页
- openwrt中文版路由器脱机电驴图文教程12页
- OpenWrt端口映射WEB配置图文教程3页
- RG100A刷openwrt backfire 10.03.1-rc5加载8187L做中继图文教程7页
- OpenWrt端口映射WEB配置图文教程3页


