# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0 eth0:1 eth0:2
iface eth0 inet static
address 192.168.101.166
netmask 255.255.255.0
network 192.168.101.0
broadcast 192.168.1.255
gateway 192.168.101.1
iface eth0:1 inet static
address 192.168.0.166
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.254
iface eth0:2 inet static
address 192.168.1.7
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
本文详细介绍了网络接口的配置方法,包括回环接口设置、主网络接口eth0及其两个子接口eth0:1和eth0:2的具体配置参数,如静态IP地址、子网掩码、网络、广播地址及默认网关等。
1万+

被折叠的 条评论
为什么被折叠?



