|
1. root·Î loginÇÑ ÈÄ ¾Æ·¡¿Í °°ÀÌ ifconfig ¸í·ÉÀ» ½ÇÇàÇÑ´Ù.
¿¹) ÇöÀç »ç¿ëÇÏ´Â network interface°¡ le0ÀÌ°í IP address´Â 210.123.100.1À̸ç
º¯°æµÈ subnetmask °ªÀÌ 255.255.255.128(ffffff80) ÀÎ °æ¿ì
# ifconfig le0 210.123.100.1 netmask 0xffffff80
2. /etc/netmasks ÈÀÏ¿¡´Â ¾Æ·¡¿Í °°ÀÌ ÁöÁ¤ÇÑ´Ù.
# vi /etc/netmasks
210.123.100.0 255.255.255.128
/etc/netmasks ÈÀÏ¿¡ ÁöÁ¤ÇÒ °æ¿ì ù Ä®·³¿¡ Á¤ÀÇÇÏ´Â network address´Â original network address¸¦ ¸í±âÇØ¾ß ÇÑ´Ù.
¿¹¸¦ µé¾î network address, "128.134.1.0(netmask: 255.255.255.0)"À» ÁöÁ¤ÇÒ¶§, ÀÌ address´Â 128.134ÀÎ B class network address¸¦ subnetmaskÇÑ °ÍÀ̹ǷÎ,
128.134.0.0 255.255.255.0
¿Í °°ÀÌ Á¤ÀÇÇØ¾ß Çϸç, ¾Æ·¡¿Í °°ÀÌ
128.134.1.0 255.255.255.0
·Î Á¤ÀÇÇÏ¸é ¾ÊµÈ´Ù.
|