|
|
|
¸®´ª½ºÆÁ 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
|
|
Page Loading [ 0.03 Sec ]
SQL Time [ 0.01 Sec ]
|
|
|