[转载]openwrt 常用接口介绍
Openwrt常用接口图,非常有助于理解和设置openwrt
Openwrt common interface diagrams, very helpful in understanding and setting up openwrt
在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:
像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://blog.csdn.net/c112056a/article/details/80492294
————————————————
版权声明:本文为CSDN博主「小白笑苍」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/toyijiu/article/details/115523906
注册有任何问题请添加 微信:MVIP619 拉你进入群
打开微信扫一扫
添加客服
进入交流群
1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。