修改/etc/network/interface文件
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
pre-up ifconfig eth0
address 192.168.0.50
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameservers 202.103.44.150
auto eth1
iface eth1 inet static
pre-up ifconfig eth1
address 10.0.0.1
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
本文介绍如何配置Linux系统的网络接口文件,包括两个网卡eth0和eth1的具体设置,如地址、子网掩码、默认网关及DNS服务器等。

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



