IP address subnetting
½Ã½ºÅÛÀÌ ¼ÓÇÑ ³×Æ®¿÷ ȯ°æ¿¡ µû¶ó ¼³Á¤À» ´Ù¸£°Ô ÇؾßÇϴµ¥,
¿©±â¿¡´Â class °³³äÀÌ Àû¿ëµÈ´Ù.
C class IP addressÀÎ 202.31.147.0À» ÇÒ´ç¹Þ¾Ò°í,
subnettingÀ» ÇÏÁö ¾Ê±â·Î Çß´Ù¸é ´ÙÀ½°ú °°ÀÌ ÀÔ·ÂÇØÁÖ¸é
(½Ã½ºÅÛÀÇ ¹®Á¦°¡ ¾ø´Ù¸é) logical ethernet interface´Â enable µÈ´Ù.
½Ã½ºÅÛÀÇ IP address´Â 202.31.147.68À» ÇÒ´çÇϱâ·Î °áÁ¤ÇÏ¿´´Ù°í ÇÏÀÚ.
# ifconfig le0 202.31.147.68 netmask 255.255.255.0
broadcast 202.31.147.255 up
# ifconfig -a
lo0: flags=849<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232
inet 127.0.0.1 netmask ff000000
le0: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
inet 202.31.147.68 netmask ffffff00 broadcast 202.31.147.255
ether 8:0:20:79:d3:3f
#
logical ethernet interface °¡ enable µÇ¾ú´ÂÁö È®ÀÎÇÏ´Â
È®½ÇÇÑ ¹æ¹ýÀº ping ¸í·É¾î¸¦ ÀÔ·ÂÇßÀ» ¶§ alive¶ó´Â ÀÀ´äÀÌ ³ª¿À¸é µÈ´Ù
# ping 202.31.147.68
202.31.147.68 is alive
#
¶ó¿ìÅͱîÁö Åë½Å°¡´É»óÅ Á¡°Ë ¼¹ö½Ã½ºÅÛÀÌ ¶ó¿ìÅ͸¦ ÅëÇØ
ÀÎÅͳݰú Åë½Å°¡´ÉÇÏ·Á¸é ½Ã½ºÅÛ¿¡¼ ³ª¿Â µ¥ÀÌÅÍ°¡
¶ó¿ìÅͱîÁö Àü´ÞµÉ ¼ö ÀÖ¾î¾ß ÇÑ´Ù.
¶ó¿ìÅÍ°¡ ¼¹ö½Ã½ºÅÛ°ú µ¿ÀÏÇÑ network address(202.31.147.0)¿¡
Á¢¼ÓµÇ¾î ÀÖ°í ±×°ÍÀÇ IP address°¡ 202.31.147.68À̶ó¸é
ping ½ÃÇèÀ» ÇÏ¿´À» ¶§ °á°ú°¡ alive°¡ ³ª¿Í¾ß ÇÑ´Ù.
# ping 202.31.147.68
202.31.147.68 is alive
#
¸¸¾à alive¶ó´Â ¸í·É¾î°¡ ³ª¿ÀÁö ¾ÊÀ¸¸é ´ÙÀ½°ú °°ÀÌ »óŸ¦ °Ë»çÇÑ´Ù
# netstat -nr
Routing Table:
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
127.0.0.1 127.0.0.1 UH 0 24932 lo0
202.31.147.0 202.31.147.68 U 3 1045 le0
224.0.0.0 202.31.147.68 U 3 0 le0
default 202.31.147.14 UG 0 1075
À§¿Í °°ÀÌ µÇ¾î Àִµ¥µµ ping¿¡¼ alive ÀÀ´äÀÌ ³ª¿ÀÁö ¾ÊÀ¸¸é
¶ó¿ìÅÍÀÇ Á¢¼ÓÀÌ À߸øµÇ¾î Àְųª LAN cable ȤÀº HUBÀÇ ¹®Á¦ÀÏ ¼ö ÀÖ´Ù.
ping ½ÃÇè°á°ú alive¶ó´Â ÀÀ´äÀÌ ³ª¿À¸é ½Ã½ºÅÛÁ¢¼ÓÀº °ÅÀÇ ´Ù
¿Ï·áÇÑ ¼ÀÀÌ´Ù. ±×·¯³ª ¿ÏÀüÈ÷ ³¡³ °ÍÀº ¾Æ´Ï´Ù.
À̸¦ ÀÀ¿ëÇÏ¿© »ç¿ëÇÒ ¼ö ÀÖ´Â ¼ºñ½º Á¢¼ÓÀÌ ÀÌ·ç¾îÁ®¾ß ÇÑ´Ù.
|