OpenWrt虚拟网卡创建语句,一次创建20个

这篇具有很好参考价值的文章主要介绍了OpenWrt虚拟网卡创建语句,一次创建20个。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

ip link add link eth1 name vth0 type macvlan
ip link add link eth1 name vth1 type macvlan
ip link add link eth1 name vth2 type macvlan
ip link add link eth1 name vth3 type macvlan
ip link add link eth1 name vth4 type macvlan
ip link add link eth1 name vth5 type macvlan
ip link add link eth1 name vth6 type macvlan
ip link add link eth1 name vth7 type macvlan
ip link add link eth1 name vth8 type macvlan
ip link add link eth1 name vth9 type macvlan
ip link add link eth1 name vth10 type macvlan
ip link add link eth1 name vth11 type macvlan
ip link add link eth1 name vth12 type macvlan
ip link add link eth1 name vth13 type macvlan
ip link add link eth1 name vth14 type macvlan
ip link add link eth1 name vth15 type macvlan
ip link add link eth1 name vth16 type macvlan
ip link add link eth1 name vth17 type macvlan
ip link add link eth1 name vth18 type macvlan
ip link add link eth1 name vth19 type macvlan
ip link add link eth1 name vth20 type macvlan

ifconfig vth0 hw ether 92:E8:D0:69:22:C0
ifconfig vth1 hw ether 32:2F:61:11:3B:69
ifconfig vth2 hw ether 96:6F:32:61:0B:F9
ifconfig vth3 hw ether DA:6E:10:26:0F:CB
ifconfig vth4 hw ether A6:B6:58:B3:B5:62
ifconfig vth5 hw ether 06:B1:DD:D7:3B:61
ifconfig vth6 hw ether 46:27:0A:B7:03:F6
ifconfig vth7 hw ether 1A:CE:E9:F7:3C:44
ifconfig vth8  hw ether 9A:CD:ED:F7:3C:44
ifconfig vth9  hw ether 1A:2E:AE:F7:3C:44
ifconfig vth10 hw ether 3A:CE:E9:FB:3C:B4
ifconfig vth11 hw ether 5A:CE:E9:F7:3C:45
ifconfig vth12 hw ether 2A:CE:E6:F7:3C:44
ifconfig vth13 hw ether BA:C6:E9:47:3C:44
ifconfig vth14 hw ether 1A:C2:E9:F7:3C:41
ifconfig vth15 hw ether BA:CE:E9:F7:3C:42
ifconfig vth16 hw ether 06:B1:D1:D7:2B:61
ifconfig vth17 hw ether C6:B1:5D:67:3B:61
ifconfig vth18 hw ether B6:B5:63:D7:32:69
ifconfig vth19 hw ether A6:51:DA:E7:31:21
ifconfig vth20 hw ether D6:B1:BD:D7:3B:61


ifconfig vth0 up
ifconfig vth1 up
ifconfig vth2 up
ifconfig vth3 up
ifconfig vth4 up
ifconfig vth5 up
ifconfig vth6 up
ifconfig vth7 up
ifconfig vth8 up
ifconfig vth9 up
ifconfig vth10 up
ifconfig vth11 up
ifconfig vth12 up
ifconfig vth13 up
ifconfig vth14 up
ifconfig vth15 up
ifconfig vth16 up
ifconfig vth17 up
ifconfig vth18 up
ifconfig vth19 up
ifconfig vth20 up


以上就是20个虚拟网卡的创建语句,MAC地址都不重复,大家感觉不错可以点个关注和收藏哦文章来源地址https://www.toymoban.com/news/detail-444385.html

到了这里,关于OpenWrt虚拟网卡创建语句,一次创建20个的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • Linux创建Macvlan网络

    最近在看Docker的网络,测试Macvlan部分时,发现Docker创建Macvlan与预期测试结果不一样。所以查阅了Linux下配置Macvlan,记录如下。 1.Linux Macvlan 2.图解几个与Linux网络虚拟化相关的虚拟网卡-VETH/MACVLAN/MACVTAP/IPVLAN 3.创建macvlan的命令 Centos7.9 net-tools:netstat命令 iputils:ping命令 telnet:

    2024年02月04日
    浏览(28)
  • Docker创建网络macvlan并且和宿主机互通

    ip地址位数表(常用) 掩码 位数 可用主机数(主机地址数) 255.255.255.0 24 256-2=254 255.255.255.128 25 128-2=126 255.255.255.192 26 64-2=62 255.255.255.224 27 31-1=30 255.255.255.240 28 16-2=14 255.255.255.248 29 8-2=6 255.255.255.252 30 4-2=2 互通: 宿主机:192.168.1.1 subnet-macvlan:192.168.1.5 新建macvlan:192.168.1.3 好

    2024年01月17日
    浏览(41)
  • docker macvlan虚拟化网络与宿主机通信问题解决——筑梦之路

    默认情况下各个macvlan之间可以通讯,但是不能与宿主机进行通讯!! 主要原因:为了安全而禁止互通 如宿主机ping容器的ip,尽管他们属于同一网段,但也是ping不通的,反过来也是。 这里用两个实例来说明如何解决这个问题。 实例一  实例二 参考资料: 解决Docker macvlan网络

    2024年02月07日
    浏览(38)
  • 怎样在docker中使用macvlan创建可以独立ip访问的容器

    macvlan是一种网络虚拟化技术,它允许在一个物理网络接口上配置多个虚拟网络接口,每个虚拟网络接口都有自己独立的 MAC 地址,并且可以配置上 IP 地址进行通信。macvlan主要应用于Docker容器网络中,可以在一个主机上创建多个网络环境,每个环境都有自己独立的 MAC 地址,从

    2024年02月03日
    浏览(62)
  • 18.8元4G随身wifi刷openwrt改无线路由器或无线网卡

    网上18.8或者19块钱一个的4G随身wifi很多,有的插sim卡就能上网,而有的是内部集成了sim卡,有大神破解了随身wifi使其可以刷入debian系统和openwrt系统,配置方面:随身wifi搭载了一颗高通410芯片(arm64架构),512m的运行内存,4G内存,带4G基带,带wifi,带usb...(20块钱要什么自行

    2024年02月01日
    浏览(30)
  • 虚拟网卡是什么?教教大家添加虚拟网卡的方法

    不少用户都发出疑问虚拟网卡是什么?其实虚拟网卡就是通过软件模拟出来的电脑网卡,微软操作系统都具备这一功能。那么下面小编就来教教大家Windows10系统添加虚拟网卡的方法,非常简单。 Windows10系统添加虚拟网卡的方法 1、按下win + R键,在其中输入:hdwwiz,然后 (e

    2024年02月11日
    浏览(31)
  • Ubuntu 20.04 网卡命名规则

      Ubuntu 系统中网卡的命名规则是:Consistent Network Device Naming(一致网络设备命名)规范。这个规范的原理是根据固件、拓扑和位置信息分配固定名称。其中,设备类型 en 代表 Ethernet (以太网),wl 代表 WLAN(无线局域网),ww 代表 WWANs(无线广域网)。因此,上图中的 enp7s

    2024年02月09日
    浏览(35)
  • 关于ubtun20.04的网卡设置(多网卡 多IP 单网卡 多IP(子ip) bond)

    目录:/etc/netplan 目录: /proc/sys/net/ipv4/conf 验证bond命令:watch -n 1 cat /proc/net/bonding/bond0 一. 单网卡+静态IP 1. vim 00-installer-config.yaml 2. 重启 sudo netplan apply   成功! 二 .单网卡多IP(子IP) 1.  vim 00-installer-config.yaml  2. netplan apply 成功! 三. 多网卡多IP并且绑定bond 1. 适配器添加一块

    2024年02月06日
    浏览(24)
  • VMware中Ubuntu20.04网卡丢失

    有一次重启虚拟机之后就突然连不上网了,ubuntu的设置里找不到网络的设置,疑似网卡未连接。 首先在终端中输入:  结果: 可以看到-network DISABLED,这样就可以进行下列步骤恢复。 在终端中输入: 即可恢复网卡连接

    2024年02月08日
    浏览(31)
  • easy Connect拉起虚拟网卡失败、虚拟网卡不兼容、提权服务被禁用等问题

    有一天登入easyconnect显示这条提示,之后我想用easyconnect就登不进去了,我就开始着手解决。 情况1:虚拟网卡被禁用。 那就先启用它 情况2:启用了sangfor相关的虚拟连接,重新打开easyconnect,仍然无法登入上,且网络适配器中显示如下: 如果确保第一步虚拟网卡没问题的话,

    2024年02月10日
    浏览(26)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包