하나의 네트워크 카드에 복수의 IP할당하는 방법
1 2 3 |
# cd /etc/sysconfig/network-script # cp ifcfg-eth0 ifcfg-eth0:0 # vi ifcfg-eth0:0 |
1 2 3 4 5 6 7 8 |
DEVICE=eth0:0 BOOTPROTO=static BROADCAST=192.168.1.31 IPADDR=192.168.1.10 NETMASK=255.255.255.224 NETWORK=192.168.1.0 ONBOOT=yes TYPE=Ethernet |
1 2 3 |
# service network restart or # /etc/init.d/network restart |
참고 링크
http://tomo.ac/goodstream/server/apache/tips/ipbasevhost.htm