IP addressÀÇ netmask °ª º¯°æÇϱâ
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2003-08-20 11:34:44
 

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

·Î Á¤ÀÇÇÏ¸é ¾ÊµÈ´Ù.


¸ñ·Ï | ÀÔ·Â | ¼öÁ¤ | ´äº¯ | »èÁ¦