ãããã¯ã©ã¦ãã®ãããã¯ã¼ã¯è¨å®
AWSã®ããã«ãµã¼ããç«ã¡ããããèªåçã«ãããã¯ã¼ã¯ã«ã¤ãªãããªãã®ã§ããããã¯ã¼ã¯ã«æåã§ã¤ãªãã¾ãã
æåã¯pingæãã¦ãè¿ã£ã¦ããªã
$ ping google.com ping: unknown host google.com
ãªã®ã§2ãã¡ã¤ã«ãä¿®æ£ãã¦ãããã¯ã¼ã¯ã«ã¤ãªãã¾ãã 該å½ä¿®æ£ç®æã ãã
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 # åºå®IP BOOTPROTO=static # ã·ã¹ãã èµ·åæã«ãã®ããã¤ã¹ãèµ·å ONBOOT=yes # ããããã¹ã¯ã®æå® NETMASK=255.255.255.0 # ã³ã³ã½ã¼ã«ç»é¢ï¼NICï¼ããIPã¨ã²ã¼ãã¦ã§ã¤ã®æ å ±ãæå® IPADDR=133.242.xx.xx GATEWAY=133.242.xx.1
# vi /etc/resolv.conf # NICã®ç»é¢ã«ããæ¨å¥¨ãã¼ã ãµã¼ããæå® nameserver 133.242.0.3 nameserver 133.242.0.4 search localdomain
ä¿®æ£çµãã£ããåèµ·å
# /etc/init.d/network restart
$ ping google.com PING google.com (173.194.38.78) 56(84) bytes of data.
ã§ãã¾ãããã