找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3527|回复: 29

[k2p] 分享一个K2P、小米mini、N1免交换机的单线复用案例

[复制链接]
本帖最后由 alex1671 于 2020-5-6 21:32 编辑

设备:  k2pA1(mt7621) 刷老毛子padavan,小米mini(mt7620)刷老毛子padavan,N1刷openwrt。
组网: k2p wan口接电信进线, lan1口接小米mini wan口,lan2接 N1网口,三台设备之间的互联端口均配置为trunk口,vlan1承载LAN网络数据,vlan2承载wan数据。
使用场景: k2p/小米mini/N1均可以独立pppoe拨号获取公网IP地址,三台设备的LAN网络实现互通(通过vlan1传输数据)。

配置:
#K2P wank口 access VLAN 2,lan1口trunk1-2 ,lan2口trunk1-2,lan3-lan4 access VLAN 1
switch vlan set 1  1111101 0 0 uuuu--u
switch vlan set 2  0011110 0 0 --ttuu-
switch reg w 0x2004 0x5F0003
switch reg w 0x2104 0x5F0003
switch reg w 0x2204 0x7F0003
switch reg w 0x2304 0x7F0003
switch reg w 0x2404 0x7F0003
switch reg w 0x2504 0x3C0003
switch reg w 0x2604 0x5F0003
####以下两句是关键,否则trunk不通
switch reg w 0x2310 0x81000000   
switch reg w 0x2210 0x81000000
switch pvid 4 2



####XIAOMI-MINI  wan口--trunk1-2,lan口1-2 access
switch vlan set   0 1  11111111 0 0 uuuuu-tt
switch vlan set  1 2   00001011 0 0 ----t-tt
####以下一句是关键,否则trunk不通
switch reg w 0x2410 0x81000000
switch pvid 4  1




#按如下配置N1 修改 /etc/config/network文件,重启。
config interface 'lan'
        option ifname 'eth0'
        option proto 'static'
        option netmask '255.255.255.0'
        option ipaddr '192.168.10.252'
config interface 'wan'
        option ifname 'eth0.2'
        option username '账号'
        option password '密码'
        option ipv6 'auto'
        option keepalive '0'
        option metric '40'
        option proto 'none'
        option delegate '0'


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
请问单线复用是什么?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

Angel_Yan 发表于 2020-5-6 19:21
请问单线复用是什么?

自己百度,
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

学习学习,紫薯布丁
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

太高级了,虽然不懂
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

单线复用案例
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

wr4w5trwtwtwt
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

学习了 谢谢分享 谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

看不懂啊看不懂,为什么要三台路由器都要拨号呢?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

k2pA1(mt7621) 刷老毛子padavan,小米mini(mt7620)刷老毛子padavan,N1刷openwrt
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

看的一愣一愣的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

需要三个电信帐号吗? 还是同时拨号? 帐号不会挤下来吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

回复看看内容,谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

感谢楼主分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-5-6 23:16

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表