NOVA Network ¿¡¼ ÀνºÅϽº°¡ DHCP ·Î ÇÒ´ç¹ÞÀº DNS Á¤º¸´Â ³×Æ®¿öÅ© ÇÒ´ç½Ã ¹ÞÀº Á¤º¸°¡ ¾Æ´Ñ DNSMASQ ÀåÄ¡ ¾ÆÀÌÇÇ Á¤º¸·Î µû¶ó°¨cfg ÆÄÀÏ ¼öÁ¤ÈÄ ¸®º× or ¸®½ºÅ¸Æ® ÇØÁÖ¸é ´Ù½Ã º¯°æ
´ë¾È)
³×Æ®¿öÅ© cfg STATIC ¼³Á¤
example) --user-data=script.sh
#!/bin/sh
device=`ip link show | awk '{print $2}' | grep ^eth | cut -d: -f1 | head -n1`
ip=`ifconfig $device | grep Mask | awk '{print $2}' | sed 's/addr:/IPADDR=/g'`
netmask=`ifconfig $device | grep Mask | awk '{print $4}' | sed 's/Mask:/NETMASK=/g'`
gateway=`netstat -nr | awk '{print $2}' | grep ^[1-9] | sed 's/^/GATEWAY=/g'`
echo "DEVICE=$device
TYPE=Ethernet
onBOOT=yes
BOOTPROTO=static
$ip
$netmask
$gateway" > /etc/sysconfig/network-scripts/ifcfg-$device
echo "nameserver 115.68.62.210" > /etc/resolv.conf
service network restart
ÇØ°á
==>>> DHCP ¼³Á¤¿¡¼ DNS ºÎºÐ¸¸ STATIC Àû¿ë