手工配置网络
debian /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
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
hwaddress ether xx:xx:xx:xx:xx:xx
address 219.219.0.145
netmask 255.255.255.192
network 219.219.0.128
gateway 219.219.0.129
redhat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
MACADDR=00:03:12:33:44:55
BOOTPROTO=static
BROADCAST=192.168.2.255
IPADDR=192.168.2.251
NETMASK=255.255.255.0
NETWORK=192.168.2.0
ONBOOT=yes
阅读(1017) | 评论(0) | 转发(0) |