B / Y / U / S
HOME À¥ È£½ºÆà µµ¸ÞÀÎ ¸Å´º¾ó °í°´Áö¿ø ¼³Á¤Á¤º¸ °èÁ¤½Åû 2024-12-23 Monday 
À¥ È£½ºÆÃ
# °øÁö »çÇ×
# ÀÚÁÖ ¹¯´Â Áú¹®
# Áú¹®°ú ´äº¯
# °¡ÀÔ ¹®ÀÇ
Ä¿¹Â´ÏƼ
# ÀÚÀ¯°Ô½ÃÆÇ
# ¸®´ª½ºÆÁ
# ¾ÆÀÌÅ¥ Å×½ºÆ®
# ³»È¨ ¼Ò°³
# °Ö·¯¸®
# ÀÚ·á½Ç

  ¸®´ª½ºÆÁ  Go Unix Power Tools Online Book Go Bash Guide
Read No. 184 article 2003-05-08 23:42:16
NickName   Ç®ºñ´©
Subject   IP alias [ÇѼ­¹ö¿¡ º¹¼ö°³ IP ¼³Á¤]
¸ñÇ¥ : ±âÁ¸ À¥¼­¹öÀÇ ´Ù¿îÀ¸·Î Ÿ ¼­¹ö¿¡ alias °É¾î Á¡°Ë ÆäÀÌÁö º¸¿©ÁÖ±â

1. ±âÁ¸ À¥¼­¹ö power-down ( ¾ÆÀÌÇÇ ¼±Á¡ ¸·À½ )
2. ´ëü À¥¼­¹ö ip alias
   - cd /etc/sysconfig/network-scripts
   - cp -a ifcfg-eth0 ifcfg-eth0:0
   - vi ifcfg-eth0:0 
     --------------------------------
     DEVICE=eth0:0        <- eth0 ¿¡¼­ eth0:0 À¸·Î ¼öÁ¤
     ONBOOT=yes  
     BOOTPROTO=static
     IPADDR=61.111.254.205  <- alias ÇÒ ip µî·Ï
     NETMASK=255.255.255.0
     GATEWAY=61.111.254.1   <- alias ÇÒ ip ÀÇ gateway µî·Ï
     --------------------------------
   - ¼öÁ¤ÈÄ, network Àç½ÃÀÛ
      service network restart ( or /etc/init.d/network restart

   - (Âü°í: xwindow »óÅ¿¡¼­´Â netcfg ¸í·ÉÀ¸·Î °£´ÜÈ÷ Ãß°¡ °¡´É)

3. ´ëü À¥¼­¹ö virtual hosting µî·Ï
   - httpd.conf °¡»ó È£½ºÆà µî·Ï 
   - cd {httpd.conf °¡ ÀÖ´Â Æú´õ} && vi httpd.conf
   - httpd.conf ÃÖÇÏ´Ü¿¡ µî·Ï (ÁÖÀÇ!)
    <VirtualHost 61.111.254.205>  <- ´Ù¿îµÈ À¥¼­¹ö ¾ÆÀÌÇÇ µî·Ï
        DocumentRoot /home/haltmessage/public_html
        ServerName heltmessage.byus.net
        ServerAlias *
    </VirtualHost>

4. Á¡°Ë °øÁö index.htm ÆÄÀÏ »ý¼º
   - cd /home/haltmessage/public_html
   - vi index.htm    <- Àû´çÇÑ ¸Þ¼¼Áö·Î µî·ÏÇÑ´Ù.
   - ¾ÆÆÄÄ¡ ¼­¹ö Àç½ÃÀÛ

5. ´Ù¿îµÈ ¼­¹öÀÇ ÀÓÀÇ À¥ÁÖ¼Ò·Î Á¡°Ë ¸Þ¼¼Áö°¡ ¶ß´ÂÁö È®ÀÎÇÑ´Ù.


---------------------
Âü°í . IP alias ´Ù¼ö°³ [¹üÀ§] °É±â 

- cd /etc/sysconfig/network-script 
- vi ifcfg-eth0-range0
     ------------------------------
     IPADDR_START=61.111.254.205        <- alias ½ÃÀÛ ip
     IPADDR_END=61.111.254.205          <- alias ³¡ ip
     CLONENUM_START=0
     NETMASK=255.255.255.0
     ------------------------------
- service network restart
Regist Addr [ 202.30.208.44 ] ¸ñ·Ïº¸±â À­±Û ¾Æ·§±Û
Á¤±ÔÇ¥Çö½Ä [ »ó¼¼ °Ë»ö ]
Page Loading [ 0.02 Sec ] SQL Time [ 0 Sec ]

Copyleft 1999-2024 by JSBoard Open Project
Theme Designed by IDOO And follow GPL2

°³ÀÎÁ¤º¸ Ãë±Þ¹æħ ÀÌ¿ë ¾à°ü »çÀÌÆ® ¸Ê ¾îµå¹Î °ü¸®