作家
登录
    用户名:  密码:   

如何在Debian Linux上设置和配置网桥

作者: 来源: 2018-03-29 21:28:10 阅读1172次 我要评论

  •  
  • source /etc/network/interfaces.d/*
  •  
  • # The loopback network interface
  • auto lo
  • iface lo inet loopback 
  • 步调 3 - 在 /etc/network/interfaces.d/br0 中设备网桥(br0)

    应用文本编辑器创建一个文本文件,比如 vi 敕令:

    在个中添加设备:

    1. ## static ip config file for br0 ##
    2. auto br0
    3. iface br0 inet static
    4. address 192.168.2.23
    5. broadcast 192.168.2.255
    6. netmask 255.255.255.0
    7. gateway 192.168.2.254
    8. # If the resolvconf package is installed, you should not edit
    9. # the resolv.conf configuration file manually. Set name server here
    10. #dns-nameservers 192.168.2.254
    11. # If you have muliple interfaces such as eth0 and eth1
    12. # bridge_ports eth0 eth1
    13. bridge_ports eno1
    14. bridge_stp off # disable Spanning Tree Protocol
    15. bridge_waitport 0 # no delay before a port becomes available
    16. bridge_fd 0 # no forwarding delay

    如不雅你想应用 DHCP 来获得 IP 地址:

    1. ## DHCP

        推荐阅读

        2018年有哪些值得期待的物联网应用领域?

      沙龙晃荡 | 3月31日 京东、微博、华为拭魅战专家与你合营商量容器技巧实践! 2016年以来,互联建筑类的物联网项目数量增长得最多。每年这个时刻,有名物联网研究机构IoT Analytics都邑基于>>>详细阅读


      本文标题:如何在Debian Linux上设置和配置网桥

      地址:http://www.17bianji.com/lsqh/41049.html

    关键词: 探索发现

    乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

    网友点评
    自媒体专栏

    评论

    1172

    热度

    精彩导读
    栏目ID=71的表不存在(操作类型=0)