· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
GentooX86 Handbook_Ko_4-2

1. Áøº¸µÈ ȯ°æ¼³Á¤

1.1. Áøº¸µÈ ȯ°æ¼³Á¤

(¿ªÀÚ ÁÖ : command¿Í instructionÀº µÑ´Ù ¸í·ÉÀ¸·Î ¹ø¿ªÇÒ ¼ö Àִµ¥ Â÷À̸¦ µÎ±â À§ÇØ °¢°¢ ¸í·É°úÁöħÀ¸·Î ´Þ¸® ¹ø¿ªÇß½À´Ï´Ù.)

config_eth0 º¯¼ö´Â ÀÎÅÍÆäÀ̽º ȯ°æ¼³Á¤ÀÇ Áß½ÉÀÔ´Ï´Ù. ÀÎÅÍÆäÀ̽º¸¦ ¼³Á¤Çϱâ À§Çؼ­ Á¸ÀçÇÏ´Â »óÀ§¼öÁØ Áöħ¸ñ·ÏÀÔ´Ï´Ù.(ÀÌ °æ¿ì¿¡´Â eth0°¡ ÀÎÅÍÆäÀ̽ºÀÔ´Ï´Ù). Áöħ¸ñ·Ï¿¡ Æ÷ÇÔµÈ °¢°¢ÀÇ ¸í·ÉµéÀº ¼øÂ÷ÀûÀ¸·Î ¼öÇàµË´Ï´Ù. ÀÎÅÍÆäÀ̽º´Â ¸¶Áö¸· ¸í·ÉÀÌ µ¿ÀÛÇϸé OK·Î °£ÁÖÇÕ´Ï´Ù.

¿©±â ³»ÀåÁöħ ¸ñ·ÏÀÌ ÀÖ½À´Ï´Ù.

Command Description
null Do nothing
noop If the interface is up and there is an address then abort configuration successfully
an IPv4 or IPv6 address Add the address to the interface
dhcp, adsl or apipa (or a custom command from a 3rd party module) Run the module which provides the command. For example dhcp will run a module that provides DHCP which can be one of either dhcpcd, udhcpc, dhclient or pump.

¸í·ÉÀÌ ½ÇÆÐÇϸé Æú¹é ¸í·ÉÀ» ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. Æú¹éÀº ¼³Á¤±¸Á¶¿Í Á¤È®È÷ ¸Â¾Æ¾ß ÇÕ´Ï´Ù.

ÀÌ ¸í·ÉµéÀ» °°ÀÌ ¿«À» ¼öµµ ÀÖ½À´Ï´Ù. ¿©±â ¾à°£ÀÇ ½ÇÁ¦ ¿¹Á¦°¡ ÀÖ½À´Ï´Ù.

¿¹Á¦ 1-1 : ȯ°æ¼³Á¤ ¿¹Á¦
# Adding three IPv4 addresses
config_eth0=(
  "192.168.0.2/24"
  "192.168.0.3/24"
  "192.168.0.4/24"
)

# Adding an IPv4 address and two IPv6 addresses
config_eth0=(
  "192.168.0.2/24"
  "4321:0:1:2:3:4:567:89ab"
  "4321:0:1:2:3:4:567:89ac"
)

# Keep our kernel assigned address, unless the interface goes
# down so assign another via DHCP. If DHCP fails then add a
# static address determined by APIPA
config_eth0=(
  "noop"
  "dhcp"
)
fallback_eth0=(
  "null"
  "apipa"
)

À¯ÀÇ»çÇ×: ifconfig¸ðµâÀ» »ç¿ëÇÏ°í ÀÖ°í Çϳª ÀÌ»óÀÇ ÁÖ¼Ò¸¦ Ãß°¡ÇÏ·Á ÇÑ´Ù¸é ÀÎÅÍÆäÀ̽º º°ÄªÀº °¢°¢ÀÇ º°µµÁÖ¼Ò¸¦ À§ÇØ ¸¸µé¾îÁý´Ï´Ù. µû¶ó¼­ µÎ°¡Áö À§ÀÇ ¿¹Á¦¸¦ ÅëÇØ µ¶ÀÚ¿©·¯ºÐ²²¼­´Â eth0. eth0:1 eth0:2¿Í °°Àº ÀÎÅÍÆäÀ̽º¸¦ ¾ò°Ô µÉ °ÍÀÔ´Ï´Ù. ÀÌ·± Ưº°ÇÑ ÀÎÅÍÆäÀ̽ºµéÀº Ä¿³Î¿¡¼­ ´Ù·ç´Â °ÍÀÌ ¾Æ´Ï¶ó ´Ù¸¥ ÇÁ·Î±×·¥¿¡¼­ eth0:1, eth0:2, eth0À¸·Î ´Ù·ç°Ô µÉ °ÍÀÔ´Ï´Ù.

Áß¿ä: Æú¹é ¼ø¼­´Â Áß¿äÇÕ´Ï´Ù. ³Î ¼±ÅûçÇ׿ä¼Ò¸¦ ÁöÁ¤ÇÏÁö ¾Ê¾Ò´Ù¸é apipa ¸í·ÉÀº noop ¸í·ÉÀÌ ½ÇÆÐÇßÀ»¶§¸¸ ½ÇÇàµÉ °ÍÀÔ´Ï´Ù.

À¯ÀÇ»çÇ×: [http]APIPA¿Í [http]DHCP´Â µÚ¿¡¼­ ³íÀÇÇÏ°Ô µÉ °ÍÀÔ´Ï´Ù.

1.2. ³×Æ®¿öÅ© ÀÇÁ¸¼º

/etc/init.dÀÇ Init ½ºÅ©¸³Æ®µéÀº ¼³Á¤ÇÑ ³×Æ®¿öÅ© ÀÎÅÍÆäÀ̽º³ª net¿¡ ÀÇÁ¸ÇÒ ¼ö ÀÖ½À´Ï´Ù. net Àº /etc/conf.d/rc¿¡ RC_NET_STRICT_CHECKING º¯¼ö¸¦ »ç¿ëÇÏ¿© ´Ù¸¥ Àǹ̷ΠÁ¤ÀÇµÉ ¼ö ÀÖ½À´Ï´Ù.

Value Description
none The net service is always considered up
no This basically means that at least one net.* service besides net.lo must be up.
This can be used by notebook users that have a WIFI and a static NIC,
and only wants one up at any given time to have the net service seen as up.
lo This is the same as the no option, but net.lo is also counted.
This should be useful to people that do not care about any specific interface being up at boot.
yes For this ALL network interfaces MUST be up for the net service to be considered up.

±×·¯³ª net.eth0°ú net.eth1¿¡ ´ëÇØ ÀÇÁ¸ÇÏ´Â net.br0Àº ¾î¶³±î¿ä? net.eth1¾Æ¸¶ ºê¸´Áö¸¦ Ãß°¡ÇÒ ¼ö ÀÖ±â Àü¿¡ ȯ°æ¼³Á¤ÀÌ ÇÊ¿äÇÑ ¹«¼± ȤÀº PPPÀåÄ¡ ÀÏ °ÍÀÔ´Ï´Ù. ÀÌ´Â net.loÀÇ ½Éº¼¸¯ ¸µÅ©ÀÎ /etc/init.d/net.br0¿¡¼­ ÇÒ ¼ö ÀÖ´ÂÀÏÀÌ ¾Æ´Õ´Ï´Ù.

ÀÌ´Â /etc/conf.d/net¿¡¼­ depend() ÇÔ¼ö¸¦ ¸¸µå´Â°Ô ´äÀÌ µÉ ¼ö ÀÖ½À´Ï´Ù.

¿¹Á¦ 2-1 : /etc/conf.d/net¿¡¼­ net.br0ÀÇ ÀÇÁ¸¼º
# You can use any dependency (use, after, before) as found in current scripts
depend_br0() {
  need net.eth0 net.eth1
}

ÀÇÁ¸¼º¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ ³»¿ëÀ» À§Çؼ­ Á¨Åõ ÇÚµåºÏ ³»ÀÇ [http]Init Script ÀÛ¼ºÀ» ÂüÁ¶Çϼ¼¿ä.

1.3. º¯¼ö À̸§°ú °ªµé

º¯¼ö À̸§Àº µ¿ÀûÀÔ´Ï´Ù. º¸Åë variable_${interface|mac|essid|apmac}¿Í °°Àº ±¸Á¶¸¦ µû¸¨´Ï´Ù. ¿¹¸¦ µé¾î, dhcpcd_eth0 º¯¼ö´Â dhcpcdÀÇ eth0¿¡ ´ëÇÑ ¿É¼Ç¿¡ ´ëÇÑ °ªÀ» °®°í, dhcpcd_essid ´Â dhcpcd¿¡¼­ ¾î¶² ÀÎÅÍÆäÀ̽º¸¦ ÅëÇØ ESSID "essid"·Î ¿¬°áÇÒ¶§ ÁÖ´Â ¿É¼ÇÀ» °®½À´Ï´Ù.

±×·¯³ª ÀÌ°Ç ¾î·Á¿î °ÍÀÌ ¾Æ´Ï¸ç ethxÀ¸·Î µÇ¾î¾ß ÇÏ´Â À̸§À» Áö³Ù ÀÎÅÍÆäÀ̽ºÀÇ »óŸ¦ Ç¥½ÃÇÏ´Â ±ÔÄ¢À» ½Å¼ÓÇÏ°Ô ÀÛ¼ºÇÒ ¼ö ÀÖ½À´Ï´Ù. »ç½Ç ¸¹Àº ¹«¼± ÀÎÅÍÆäÀ̽º´Â ethx¸¸Å­ wlanx,rax¿Í °°Àº À̸§µéÀ» °¡Áý´Ï´Ù. ¶ÇÇÑ ¾î¶² »ç¿ëÀÚ´Â foo¿Í °°Àº ¾î¶² À̸§ÀÌ ÁÖ¾îÁú ¼ö ÀÖ´Â ºê¸´Áö ÀÎÅÍÆäÀ̽º¸¦ Á¤ÀÇÇÕ´Ï´Ù. ÀÌ°É Á» ´õ Àç¹Õ°Ô ÇÏ°í ½ÍÀ¸¸é ¹«¼± ¾×¼¼½º Æ÷ÀÎÆ®°¡ ¿µ¼ýÀÚ°¡ ¾Æ´Ñ ¹®ÀÚ¸¦ Æ÷ÇÔÇÒ ¼ö ÀÖ¾î¾ß ÇÕ´Ï´Ù. ÀÌ°ÍÀÌ Áß¿äÇÑ ÀÌÀ¯´Â ESSID¿¡ ´ëÀÀÇÏ´Â ³×Æ®¿öÅ· ÆĶó¸ÞÅ͸¦ ¼³Á¤ÇÒ ¼ö Àֱ⠶§¹®ÀÔ´Ï´Ù.

ÀÌ ¸ðµç °ÍÀÇ ´ÜÁ¡À¸·Î, Á¨Åõ°¡ ³×Æ®¿öÅ·À» ¼öÇàÇϱâ À§ÇØ ¹è½Ã º¯¼ö¸¦ »ç¿ëÇÏ°í ¹è½Ã º¯¼ö´Â ¿µ¾î ¿µ¼ýÀÚ ÀÌ¿Ü¿¡´Â »ç¿ëÇÒ ¼ö ¾øÀ½À» º¼ ¼ö ÀÖ½À´Ï´Ù. ÀÌ·± Á¦ÇÑÁ¶°Ç Å׵θ®¿¡¼­ ¿ì¸®´Â ¸ðµç ¹®ÀÚµéÀ» ¿µ¾î ¿µ¼ýÀÚ°¡ ¾Æ´Ñ ´Ù¸¥ ¸ðµç ¹®ÀÚ´Â _ ¹®ÀÚ·Î ¹Ù²ß´Ï´Ù.

¹è½Ã¿¡¼­ÀÇ ´Ù¸¥ ´ÜÁ¡ÀÌ ÀÖ´Ù¸é º¯¼öÀÇ ³»¿ëÀÔ´Ï´Ù. ¾î¶² ¹®ÀÚ´Â Escape°¡ ÇÊ¿äÇÕ´Ï´Ù. ÀÌ´Â ¸ðµç Escape°¡ ÇÊ¿äÇÑ ¹®ÀÚµé¾Õ¿¡ \¸¦ ³õÀ½À» ÅëÇØ Çس¾ ¼ö ÀÖ½À´Ï´Ù. ´ÙÀ½ ¹®ÀÚ ¸ñ·ÏÀº ",',\¿Í °°Àº Escape°¡ ÇÊ¿äÇÑ ¹®ÀÚµéÀÇ ¸ñ·ÏÀÔ´Ï´Ù.

ÀÌ ¿¹Á¦¸¦ ÅëÇØ ¿ì¸®´Â ³ÐÀº ¹üÀ§ÀÇ ¹®ÀÚ°¡ Æ÷ÇÔµÈ ¹«¼± ESSID¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿ì¸®´Â My "\ NET À̶ó´Â ESSID¸¦ »ç¿ëÇÒ °ÍÀÔ´Ï´Ù.

¿¹Á¦ 3-1 : º¯¼ö À̸§ º¸±â(¿¹½Ã)
(This does work, but the domain is invalid)
dns_domain_My____NET="My \"\\ NET"

(The above sets the dns domain to My "\ NET when a wireless card
connects to an AP whose ESSID is My "\ NET)


ID
Password
Join
Troglodytism does not necessarily imply a low cultural level.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2009-02-22 22:50:53
Processing time 0.0052 sec