source /etc/network/interfaces.d/* # The loopback network interfaceauto loiface lo inet loopback 步调 3 - 在 /etc/network/interfaces.d/br0 中设备网桥(br0)
应用文本编辑器创建一个文本文件,比如 vi 敕令:
在个中添加设备:
## static ip config file for br0 ##auto br0iface br0 inet staticaddress 192.168.2.23broadcast 192.168.2.255netmask 255.255.255.0gateway 192.168.2.254# If the resolvconf package is installed, you should not edit# the resolv.conf configuration file manually. Set name server here#dns-nameservers 192.168.2.254# If you have muliple interfaces such as eth0 and eth1# bridge_ports eth0 eth1bridge_ports eno1bridge_stp off # disable Spanning Tree Protocolbridge_waitport 0 # no delay before a port becomes availablebridge_fd 0 # no forwarding delay
如不雅你想应用 DHCP 来获得 IP 地址:

网友点评
精彩导读
科技快报
品牌展示