无线与有线共存上网----办公室必用,笔者亲测,网上不明不白,乱七八糟的信息太多

Android/Linux设备有线&无线 双网共存(同时上内、外网) Shell脚本实现动态配置IP与路由:解决嵌入式Android/Linux有线和无线网卡双网共存问题(同时上内网 外网) 网络环境及问题再现 命令行方式实现双网共存 Shell脚本自动实现双网共存(根据网络环境动态配置IP路由) –>问题:在使用某嵌入式开发板(Android 6.0系统)过程中,发现无法同时进行有线(Ethernet)和无线(WiFi)网卡同时通讯,同时产品又有需求,必须同时通过这两个网卡与内网和外 阅读详情

和所有上班的朋友么你一样,我们都遇到了有线和无线两种网络共存的情况,有时候两者都开着就无法上网,笔者也是一样,经过几番摆弄,在winxp下终于搞定了,Linux下比较简单,敲几个命令就行了,windows下命令用的少。

情况如下:笔者内网(有线)为192.168.100.*,即只能局域网,不能上因特网;另外一个是公司的usb无线网卡(可以正常浏览网页,聊qq的那种),连着一个路由器,网关为192.168.1.1,插上网线,无线就失效。

有的人说是网卡的优先级问题,但是打开我的网卡优先级选项,发现是无线网的优先级高于有线的,但是依旧不能上网,后来看到一篇文章,照着做就行了。

方法如下:

1.设置无线网卡为默认路由网关:无线网络连接属性—Internet协议(TCP/IP)-属性-高级,手动输入无线路由网关,我这里的是192.168.1.1,跃点数为“1”,是最高优先级。到了这一步,如果有线连接,无线连接同时存在的话,所有的数据都是经由无线网卡处理的。



到了这一步,笔者已经可以正常上网,但是还有第二步:

2》设置排除信息,把192.168.100.X路段的网址连接请求交由优先网卡处理:在命令行输入以下命令
route -p add
192.168.100.0 mask 255.255.255.0 192.168.100.1 

其中192.168.100.0是本地局域网网段,192.168.100.1 是本机所处子网段的默认网关,需要根据具体情况填写。

经过以上设置,在访问本地网段的时候均由有线网卡处理,访问互联网的时候可交由无线网卡处理,就不会产生冲突了.


还在测试中,目测目前没问题,有副作用我会更新的

有线和无线网络同时使用的方法 通过设置,能同时使用有线网络访问公司内部的网络资源,使用无线网络访问公司外部的网络 立即下载

相关推荐

笔记本电脑让无线连接和本地连接同时使用

笔记本电脑让无线连接和本地连接同时使用;机器有个USB无线网卡和有线网卡,当有线网卡空着,无线网卡可以链接无线路由上网。而一旦此时把有线网卡接入另一个网络,之前通过无线网卡的链接就断开了。 这是由于windows更改了网关的地址,优先使用有线网卡的网关

Linux内核有加网速功能吗,Linux下使用有线网络和WiFi能不能叠加网速?网友评论不一...

有人在Linux操作系统下同时使用有线网络和WiFi,都已经连接上两个不同的网络,看能不能将这两个网络的速度叠加起来?形成一股更快速的网络环境。比如假设一条有线宽带50M,一个WiFi 50M,如果是有线宽带和WiFi网络叠加就能达到接近100M。WiFi不采用有线网设置,属于两个完全不相干的网络。对于此要求,以下是网友们的评论。网友评论:Linux下使用有线网络和WiFi能不能叠加网速?1、没有...

weixin_29596051的博客 225

如何手动打包Linux(麒麟系统)的Qt程序

Qt在windows上有自带的windeployqt来帮助打包程序,但是对于linux系统来说Qt并没有自带对应的打包程序。尽管存在开源的linuxdeployqt打包程序,但是在使用的过程中会出现很多问题,对于arm架构的系统来说需要编译并修改源码等等。确定你程序所需要的插件,然后将你使用的Qt版本对应的插件复制到plugins里边。你可以根据各个库后面的路径来找到对应的库,并将它们全部复制到之前创建的lib目录下。复制你的可执行程序到bin目录下(将 your_executable。

qq_45903233的博客 3612

解决Linux下同时使用有线和无线网络时,网络连接的优先级问题

问题是这样的:本人自己用一台Linux服务器,平时当FTP和爬虫用。还有一台mac开发用,经常需要用网线和linux通过网线直连来传输数据和控制服务器。蛋疼的事发生了:Linux服务器一旦插上网线,网络流量就只能经过有线网络了,导致Linux服务器不能上网。 查了很多资料,在我的服务器上都行不通。最后终于用route路由表配置默认网关解决了。 具体方法很简单,如下:1.查看当前网关信息 ip rou

Eason的博客 3万+

opencode完整使用指南:从安装配置到Agent式编程实战

AI编程工具正从辅助补全向智能体协作演进。编程智能体不仅理解项目全局,还能自主执行原子级重构、测试验证等工程任务,显著提升研发效能。以opencode为代表的开源终端AI编程工具,凭本地优先和灵活模型接入成为技术团队新宠。本文围绕opencode的完整使用链路展开,从Node.js环境准备、npm全局安装,到解决Windows环境变量配置问题,再到接入OpenAI、Anthropic或多模型管理平台,梳理一套标准化接入方案。同时演示VSCode插件调用、LSP语义分析及Playwright驱动的浏览器自动化

weixin_28837817的博客 319

Debian下Rust环境极速安装指南:国内镜像+避坑配置(附清华/中科大源对比)

本文详细介绍了在Debian系统上快速安装和配置Rust开发环境的完整指南。针对国内网络环境,重点对比评测了清华大学、中国科学技术大学等主流镜像源,提供了详细的安装配置步骤、Cargo优化技巧以及常见问题排查方案,帮助开发者显著提升依赖下载和编译效率。

s8t9u0v1w的博客 1163

linux同时连接有线无线上网问题

起因: linux同时连接有线和无线网时,希望用有线连内网组网,如OAI EPC组网,用无线访问外网,但是默认会优先用有线。 解决: 所以设置限制,只允许目标地址为有线连接所在网段的数据包从有线走。 图形化界面操作: system settings->network->wired->options->IPV4settings->Routes 勾选 use this connection only for resources on its network 此时,有线

gibbs_的博客 2798

易康eCognition9.0分类|规则集和机器学习的方法的面向对象的多尺度分割分类

基于易康eCognition9.0软件的规则集和机器学习的方法的面向对象的多尺度分割分类

weixin_46493028的博客 1万+

Linux同时使用无线和有线网络

有时候我们可能同时插入了无线网卡和有线网络,但是默认是通过有线网络连接的外网。如果同时需要使用无线网络连接外网以及使用有线网络进行高速局域网连接的话需要将默认网关设置成无线网络: 使用ip route show分别查看到两个网络的网关地址 删除有线网关:sudo route del default gw 172.20.106.1 再使用ping进行测试就可以连接到外网了 ...

m0_37340681的博客 3853

基于STM32L4XX、HAL库的MAX13487EESA RS485总线收发器驱动程序设计

MAX13487EESA是一款3.3V供电的RS-485/RS-422收发器,由Maxim Integrated生产。PA4 (控制引脚) ---> /RE, DE (连接在一起)具有±15kV ESD保护的驱动器输出和接收器输入。半双工RS-485/RS-422通信。工业温度范围:-40°C至+85°C。工作电压范围:3.0V至3.6V。数据速率高达250kbps。

zhusl6688的博客 690

道路缺陷检测实战指南:基于YOLOv11的深度学习系统从搭建到落地

道路缺陷检测项目的每一步,都是“理论→实践→反思→优化”的成长循环。当你看到自己开发的系统能精准识别出道路上的每一处裂缝、每一个坑洼时,那种“技术解决真实问题”的成就感,会让你明白深度学习不止是论文里的公式,更是改变行业的工具。如果过程中遇到模型不收敛、界面功能异常等问题,不妨把问题拆解成“数据是否标注准确?”“模型参数是否合理?”“界面逻辑是否有漏洞?”等小问题逐一排查。记住,每解决一个问题,你就离“能独立落地AI项目的工程师”更近一步。

LXY_LOVE36的博客 173

windows linux 共存,Windows与Linux共存

8种机械键盘轴体对比本人程序员,要买一个写代码的键盘,请问红轴和茶轴怎么选?同一部计算机安装Windows和Linux双系统实现双启动,一般是件费力不讨好的事。当然也可以通过虚拟机安装Linux,听说支持虚拟化的CPU,虚拟机性能不错,但网络的设置就太复杂了。Docker支持双系统吗?一、通过UEFI引导实现共存Windows10与Manjaror共存双启动:实践1、如何判断计算机是通过BIOS...

weixin_39872893的博客 865

学Simulink--机器人基础关节控制场景实例:基于Simulink的无刷直流电机(BLDC)关节六步换相位置控制仿真

本文详细介绍了基于Simulink的BLDC六步换相位置控制仿真方法,针对机器人关节的低成本控制需求。重点阐述了霍尔定位、六步换相和位置闭环三大核心原理,通过Simulink建模实现了从霍尔信号处理到位置环控制的全流程。仿真结果表明,该系统可实现0.3°的定位精度和80ms的响应时间,满足教育机器人等应用场景需求。文章还提供了核心代码模块和参数设置方法,并探讨了转矩脉动抑制、无传感器控制等进阶优化方向,为低成本机器人关节驱动提供了实用解决方案。

amy_mhd的博客 154

电脑同时连接有线和无线网络怎么设置有线网络优先

我们知道在 笔记本电脑系统 中,可以通过有线或无线网络进行联网。如果电脑在有线网络和无线网络同时存在的情况,应该怎么设置有线网络优先连接呢?对此我们提供下面的方法可以让电脑在有WiFi的条件下设置优先使用本地连接。 1、右击右下角连接的网络,选择“打开网络和共享中心”; 2、点击左上角的“更改适配器设置”; 3、按Alt键,显示菜单栏,点击“高级——高级设置”; 4、在“适配器和绑定”选项卡中进行设置; 5、在“连接”中,找到“本地连接”并选中,点击右侧向上的绿色箭头,把“本地连接”调节到“无线网

hsany330的专栏 1万+

MIKE水动力笔记5_建立水动力模型

前文已经讲了如何制作网格文件(.mdf文件),这一博文就讲如何建立水动力模型。

晏长街的博客 3万+

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

无线网wifi+有线网同时连接(内网+外网同时使用)

这里以无线网卡为外网,有线网卡为内网为例: 1)设置无线网卡为默认路由网关:无线网络连接属性—Internet协议(TCP/IP)-属性-高级,手动输入无线路由网关,我这里的是 192.168.1.1,跃点数为“1”,是最高优先级。到了这一步, 如果有线连接,无线连接同时存在的话,所有的数据都是经由无线网卡处理的。 2) route delete 0.0.0.0 (删除对所有IP的默认路由设置) 3) route add 0.0.0.0 mask 0.0.0.0 192.168.1...

qq_39769272的博客 4万+

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

同时使用有线和无线,享受网路叠加的乐趣

今年来无线技术的发展及联通和移动的Wlan技术的推广,通过Wlan账号与新生手机卡的绑定,首先惠及的是在校大学生。现在不少大学生都在使用这两家电信公司的Wlan,虽然带宽对于一个账号来说很大,但是因为无线技术的特性,导致Wlan技术的先天缺点,就是连接不稳定,比有线更容易受到干扰。加之Wlan是计时收费,这些原因让许多有稳定和较长上网时间的学生们除去Wlan之外还搭伙安装了有线宽带。

一语成诺 8万+

LinePhone3.2.7(android端最新版本) sip客户端

SIP客户端For android:LinePhone3.2.7(最新版本),官网地址:http://www.linphone.org/

Data-Structures-and-Algorithm-Analysis-in-Java.pdf

作者: Weiss, Mark A. 出版社: Addison Wesley Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course was known as CS7. This text is for readers who want to learn good programming and algorithm analysis skills simultaneously so that they can develop such programs with the maximum amo...

笔记本电脑同时使用有线网络和无线网络的办法

无线网络与有线网络

qq_51633892的博客 1万+

笔记本无线网卡和有线网同时使用

笔记本无线网卡和有线网同时使用:    1. 网路情况: 命令行下ipconfig /all 查看 无线网络: IPv4 地址 . . . . . . . . . . . . : 192.168.191.5(首选) 子网掩码 . . . . . . . . . . . . : 255.255.255.0 默认网关. . . . . . . . . . . . . : 192.16...

iteye_16982的博客 2219

电脑无线网wifi和有线网同时使用(内网+外网同时使用)

配置内网+外网同时使用。

个人学习记录 1万+

WIN11,如何同时连接有线网络与WLAN无线网络

主要解决电脑重启后,有线网络自动连接,无线网络不自动连接的问题。

cnjsyzgl的博客 1万+

window11同时使用有线网络和无线网络,内网、外网

在开发工作中,可能遇到这么一种情况:要接入内网环境必须插入内网的网线,而网线只有内网没有互联网。想使用百度等网站只能连接wifi,但是连接了wifi又无法使用内网,从而来回切换极其麻烦。其实笔记本有两个网卡,一个有线网卡、一个无线网卡。是可以支持同时连接的,此时的电脑拥有两个不同的ip,可以访问对应网段的地址。但是需要做一些配置,不然就算插了网线且连了wifi,也只能使用其中一个,因为默认网关只能有一个生效。

qq_60688809的博客 4万+

linux下 有线和无线同时工作

又要使用公司内网收邮件, 又要使用wifi上外网 为了这个问题,百度了下,都是抄来抄去的文章,好烦。解决方法,就是使用route命令,修改静态路由表。方法: 1. 查看eth0 IP 和 wifi IP 2. 修改静态路由 a. sudo route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.5.133

雪飞_海 3874

DOS命令之route

D:\test>route /? 操作网络路由表。 ROUTE [-f] [-p] [-4|-6] command [destination] [MASK netmask] [gateway] [METRIC metric] [IF interface] -f 清除所有网关项的路由表。如果与某个 命

blrk 2402

解决电脑同时使用有线网上内网,无线网上外网的冲突

由于内网有网络限制(限制娱乐等),所以肯定要用外网(无线网卡)但是有的网站只能用内网访问,比如gitlab,oa等。我电脑刚开始连接了wifi后上不了gitlab,搞到每次都要关闭wifi使用内网访问。问过大佬才知道是网关的问题。比如内网(有线网)的地址信息是:ip: 192.168.100.2subnet: 255.255.255.0default gateway: 192.168.100.25

回头太难 6万+
上一篇: segmentation fault----在Linux下真是一个蛋疼的错误,总结一下出现这错误的经历
下一篇: MC8630模块(EVDO)成功发送短信
memoryjs
博客等级 码龄18年 240粉丝 113原创
评论 3
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值