您尚未登录。

楼主 # 今天 10:36:34

xsx_kair
会员
注册时间: 2022-11-25
已发帖子: 43
积分: 23

请教下,T113多网卡路由的问题

1,路由如下

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0

2.wifi已连接并获取ip,eth0未插网线
3,不能发送网络数据

问题分析:应该是网络数据使用率有线网的端口发送,存在两个默认路由,且优先级一样

请教下各路大神,这种情况该咋解决,每次获取ip或者设置静态ip后,都获取当前路由表,分别设置两个网卡的优先级么,C语言怎么实现这个功能

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn


太原小智科技有限责任公司 - 东莞哇酷科技有限公司联合开发