Local Machine CentOS_6_x64_Origin DEVICE=eth0 HWADDR="00:0c:29:29:e0:45" 192.168.233.128 CentOS_6_x64_A DEVICE=eth0 HWADDR="00:0c:29:db:6d:ba" 192.168.233.131 CentOS_6_x64_B DEVICE=eth1 HWADDR="00:0c:29:1a:ef:b0" 192.168.233.132 CentOS_6_x64_C DEVICE=eth1 HWADDR="00:0c:29:20:ab:4d" 192.168.233.133 CentOS_6_x64_Origin_Clone DEVICE=eth1 HWADDR="00:0c:29:79:5a:6b" 192.168.233.134 配置基于IP的虚拟主机 1 2 3 4 5 6 7 8 /sbin/ifconfig eth1:1 192.168.233.137 broadcast 192.168.233.255 netmask 255.255.255.0 up /sbin/route add -host 192.168.233.137 dev eth1:1 /sbin/ifconfig eth1:2 192.168.233.138 broadcast 192.168.233.255 netmask 255.255.255.0 up /sbin/route add -host 192.168.233.138 dev eth1:2 /sbin/ifconfig