概述
demo1
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto enp1s0 iface enp1s0 inet manual auto enp2s0 iface enp2s0 inet manual auto enp3s0 iface enp3s0 inet manual auto enp4s0 iface enp4s0 inet dhcp auto br1 iface br1 inet static bridge_ports enp1s0 enp2s0 enp3s0 gateway 192.168.10.1 broadcast 192.168.10.255 netmask 255.255.255.0 address 192.168.10.2
demo2
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback auto eth0 iface eth0 inet manual auto eth1 iface eth1 inet manual auto eth2 iface eth2 inet manual #auto eth3 #iface eth3 inet dhcp auto eth3 iface eth3 inet static address 192.168.1.101 gateway 192.168.1.1 netmask 255.255.255.0 auto br0 iface br0 inet static bridge_ports eth0 eth1 eth2 gateway 192.168.99.1 broadcast 192.168.99.255 netmask 255.255.255.0 address 192.168.99.2
转载于:https://www.cnblogs.com/sea-stream/p/11129923.html
最后
以上就是欢呼钢铁侠为你收集整理的配置interfaces的全部内容,希望文章能够帮你解决配置interfaces所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复