¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 715°Ç
   
NOVA Network DNS Issue
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2015-09-11 (±Ý) 13:22 Á¶È¸ : 3074
                                
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 Àû¿ë
 

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.