Unix/Solaris °ü·Ã°Ô½ÃÆÇ

2000/09/14(22:09) from 203.254.154.69
ÀÛ¼ºÀÚ : °­ÁÙ±â (jkkang65@hanmail.net) Á¶È¸¼ö : 1963 , ÁÙ¼ö : 60
network interface(Ethernet) Ãß°¡½Ã ÇÊ¿äÇÑ ÀÛ¾÷
½Ã½ºÅÛ¿¡ »õ·Î¿î ethernet interface(le, hme, qfe, qe)¸¦ Ãß°¡ÇÏ°í ½Ã½ºÅÛÀÌ À̸¦
ÀνÄÇÏ°Ô ÇÏ·Á¸é ¾Æ·¡¿Í °°ÀÌ /etc directory ¹Ø¿¡ hostname.xxN È­ÀÏÀ» ¸¸µç ÈÄ
½Ã½ºÅÛÀ» reconfigure Çϵµ·Ï rebooting ÇÑ´Ù.

1. °¢ ethernet interface À̸§Àº network card¿¡ µû¶ó ¾Æ·¡¿Í °°ÀÌ ÁöÁ¤µÈ´Ù.

lance Ethernet : le
Fast Ethernet v1.0 : be
Fast Ethernet v2.0 : hme
Quard Ethernet : qe
Quard fast Ethernet : qfe

2. /etc/hostname.xxN È­ÀÏ

  ½Ã½ºÅÛÀÌ rebootingµÇ´Â µ¿¾È¿¡ /etc/rcS.d/S30rootusr.sh È­ÀÏÀÌ ½ÇÇà µÇ¸é¼­
  /etc/hostname.*ÀÇ È­ÀÏÀÇ ³»¿ëÀ» Àоî ÀÌ È­ÀÏ ¾È¿¡ µé¾îÀÖ´Â IP address ȤÀº
  hostnameÀ¸·Î °¢ network interface¸¦ enable ½ÃŲ´Ù.

  /etc/hostname.xxNÀº ¾Æ·¡¿Í °°ÀÌ ÇüÅ·ΠȭÀÏ À̸§À» ¸¸µé¸é µÈ´Ù.

   xx : network interfaceÀÇ À̸§À» ³ªÅ¸³½´Ù.
   N : ¸î¹ø° network interfaceÀÎÁö¸¦ ³ªÅ¸³½´Ù.
  
   ¿¹) 1. hme interface¸¦ 2°³ ¼³Ä¡ ÇßÀ»¶§;
  
          /etc/hostname.hme0¿Í /etc.hostname.hme1 È­ÀÏÀ» ¸¸µç´Ù.
  
      2. le interface 1°³¸¦ »ç¿ëÇÏ´Ù°¡ qe interface¸¦ 2°³ Ãß°¡ÇßÀ»¶§;
  
          /etc/hostname.le0 ´Â ±âÁ¸¿¡ ¸¸µé¾îÁ® ÀÖÀ» °ÍÀ̸ç
          /etc/hostname.qe0¿Í /etc.hostname.qe1 È­ÀÏÀ» ¸¸µç´Ù.
  
  /etc/hostname.xxN È­ÀÏ ¾È¿¡´Â "xxN" interface ¿¡¼­ »ç¿ëÇÒ IP address³ª ÀÌ¿¡
  ÇØ´çÇÏ´Â hostname(/etc/hosts È­ÀÏ¿¡ µî·ÏµÈ À̸§)À» ³Ö¾î ³õ´Â´Ù.

3. ½Ã½ºÅÛ rebooting

  À§¿Í °°ÀÌ /etc/hostname.xxN È­ÀÏÀº ¸¸µçÈÄ ½Ã½ºÅÛÀ» reconfigure Çϵµ·Ï rebooting
  ÇÑ´Ù.

   # reboot -- -r
  
  ½Ã½ºÅÛ reconfigure¿¡ °üÇÑ º¸´Ù ÀÚ¼¼ÇÑ »çÇ×Àº ±â¼ú¹®¼­  10047 À» ÂüÁ¶ÇÑ´Ù.

4. ½Ã½ºÅÛ¿¡ ÀÌ¹Ì network interface°¡ ÀνĵǾî ÀÖ´Â °æ¿ì, rebootingÇÏÁö ¾Ê°í
  »õ·Î ¼³Ä¡ÇÑ network interface°¡ enableµÇµµ·Ï ÇÏ·Á¸é ¾Æ·¡¿Í °°ÀÌ ifconfig
  ¸í·ÉÀ» »ç¿ëÇÑ´Ù.

   # ifconfig "interface-name" plumb
   # ifconfig "interface-name" "ip-address" netmask "netmask-value" broadcast + up
  
   ¿¹) »õ·Î Ãß°¡ÇÑ network interface°¡ "hme1"ÀÌ°í IP address´Â 129.100.1.1À̸ç
      netmask °ªÀÌ ffffff00(255.255.255.0)ÀÎ °æ¿ì
  
      # ifconfig hme1 plumb
      # ifconfig hme1 129.100.1.1 netmask 0xffffff00 broadcast + up

--------------------------------------------------------------------------------


Modify Delete Post Reply Backward Forward List
Powered by Kang Jul Ki