|
发表于 2006-1-1 22:18:26
|
显示全部楼层
如果需要启动时就生效,可以修改/etc/network/interfaces
比如:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
# auto lo eth1 eth0 br0
auto lo br0
iface lo inet loopback
# The primary network interface
#iface eth0 inet static
#address 0.0.0.0
#netmask 0.0.0.0
#iface eth1 inet static
# address 0.0.0.0
#netmask 0.0.0.0
iface br0 inet static
address x.x.x.x
netmask 255.255.255.0
broadcast x.x.x.255
network x.x.x.0
gateway x.x.x.1
bridge_ports eth0 eth1 |
|