[转载]openwrt 常用接口介绍

访客 阅读:17 2024-06-20 17:38:09 评论:0
美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

Openwrt常用接口图,非常有助于理解和设置openwrt

Openwrt common interface diagrams, very helpful in understanding and setting up openwrt

image.png

在linux shell中输入ifconfig可获取当前相关的interface名,常见的有:

Enter in linux shell ifconfig to get the current relevant interface name, most commonly:


接口的config配置文件:

Interface's config profile:

有线网络配置文件:/etc/config/network

Wireless network configuration file: /etc/config/network

无线网络配置文件:/etc/config/wireless

Wireless network configuration file: /etc/config/wireless

判断哪些接口是对应的物理接口,哪些是虚拟接口,哪些是其他接口的别名(alias)

Determining which interfaces are corresponding physical interfaces, which are virtual interfaces and which are aliases of other interfaces (alias)

查询/sys/devices/virtual/下的接口文件夹名,有的就是virtual。

Query/sys/devices/virtual/ for interface folders, some of which are virtual.

或者直接输入 ls -l /sys/class/net/,例子显示如下:

Alternatively, enter Ls-l/sys/crass/net/ directly, for example, as follows:

我的ubuntu虚拟机:

My ubuntu virtual machine:

image.png

像eth0这种就是关联的物理接口,就是物理网卡那个接口,lo是虚拟的环回接口

Like eth0, it's the physical interface to the connection, the physical net card, and lo is the virtual ring-back interface.

转载注:
我的mt网卡还多了个接口
apcli0, 也就是ap client,根据网上介绍,这是当无线网卡作为无线中继时,wifi端的wan口。
apcli0 : The wireless apcli interface is treated as WAN port, and the wireless ap interface and the ethernet ports are LAN ports.

Reprint note:
my mt web card has an interface
apcli0, which is described online as the wifi port of the WiFi port when the wireless web card is a wireless relay.
arcli interface is referred as WAN port, and the Wireless ap interface and the othernet port are LANports.

ap client模式下通过wireless 接口作为wan口连接上级无线路由,可以设置apcli0和apcli1两个逻辑接口分别连接不同的热点

The apclit mode uses the wileless interface as a wan mouthless link to the superior, allowing for apcli0 and apcli1 logical interfaces to connect to different hotspots.

参考:

References:

https://oldwiki.archive.openwrt.org/zh-cn/doc/networking/network.interfaces

https://unix.stackexchange.com/questions/57309/how-can-i-tell-whether-a-network-interface-is-physical-device-or-virtual-alia

https://blog.csdn.net/c112056a/article/details/80492294
————————————————
版权声明:本文为CSDN博主「小白笑苍」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/toyijiu/article/details/115523906


----------------- copyright statement: this is the original article by the CSDN owner, “The Little White Star”, followed by CC4.0 BY-SA's copyright agreement.

文字格式和图片示例

注册有任何问题请添加 微信:MVIP619 拉你进入群

弹窗与图片大小一致 文章转载注明 网址:
https://netpsp.com/?id=68587

美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址
可以去百度分享获取分享代码输入这里。
声明

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

发表评论
平台列表
美化布局示例

欧易(OKX)

  全球官网 大陆官网

币安(Binance)

  官网

火币(HTX)

  官网

Gate.io

  官网

Bitget

  官网

deepcoin

  官网
关注我们

若遇到问题,加微信客服---清歌

搜索
排行榜
扫一扫,加我为微信好友加我为微信好友