Subject : Setting up Gateway

Description :

Axil Workstation¿¡¼­ ¾î¶»°Ô Ethernet gateway¸¦ setting ÇÏ´Â Áö¸¦ ¾Ë¾Æº¸¾Ò´Ù.

SOLUTION SUMMARY:


gateway systemÀ» ±¸¼ºÇϱâ À§Çؼ± second Ethernet card¸¦ add ÇÏ¿©¾ß ÇÑ´Ù.
´ÙÀ½ ¿¹´Â gateway¸¦ ±¸¼ºÇϱâ À§ÇØ ¹Ì¸® ÇÊ¿äÇÑ Á¤º¸¸¦ ³ª¿­ÇÏ¿´´Ù.

	- Adding an sbus ethernet card (interface le1)
	- Hostname of system: lion (129.9.200.1)
	- Lion is a Axil 320 running 4.1.3
	- Hostname of gateway: oak-gw (129.9.111.22)

´ÙÀ½Àº gateway¸¦ ±¸¼ºÇÏ´Â procedure¸¦ ±â¼úÇÏ¿´´Ù.

1. ½Ã½ºÅÛ¿¡ ethernet card¸¦ AddÇ϶ó. card¿¡ °ü·ÃµÈ installation instructionÀ»
   µû¸£¶ó.

2. kernelÀÌ Ethernet card¸¦ supportÇÏ´ÂÁö¸¦ È®ÀÎÇ϶ó. Ethernet card°ü·Ã
   instruction¿¡ ±×·¯ÇÑ informationÀ» °®°í ÀÖÀ» °Í ÀÌ´Ù. »ç½Ç ´ëºÎºÐÀÇ
   »õ·Î¿î card´Â kernel ¼öÁ¤ÀÌ ÇÊ¿äÇÏÁö ¾Ê´Ù. À§ÀÇ ¿¹¿¡¼­ ó·³ "le" device´Â
   Sun4m¿¡¼­ kernel º¯°æÀÌ ÇÊ¿äÇÏÁö ¾Ê´Ù.

3. systemÀ» RebootÇ϶ó. ±×·¯¸é »õ·Î¿î ethernet card¸¦ kernelÀÌ ÀνÄÇÏ´Â Áö¸¦
   °ËÁõÇÒ ¼ö ÀÖ´Ù. booting ÇÏ´Â µ¿¾È ´ÙÀ½ Message¸¦ »ìÆ캸¾Æ¶ó:

	le0 at SBus slot 0 0xc00000 pri 5
	le1 at SBus slot 1 0xc00000 pri 5

4. »õ·Î¿î Ethernet card´Â IP Address¿Í hostnameÀÌ ÇÊ¿äÇÏ´Ù.
   ¿©±â¿¡¼± ´ÙÀ½°ú °°ÀÌ ¿¹¸¦ µé¾îº¸ÀÚ. IP Address´Â 129.9.111.22,
   hostnameÀº lion-gw·Î settingÇÏ¿© º¸ÀÚ.

   ÀÌ gateway´Â µÎ°³ÀÇ ºÐ¸®µÈ physical ethernet network¸¦ ¿¬°áÇÏ¿© ÁÙ °ÍÀÌ´Ù.
   °¢ network´Â ÀÚ½ÅÀÇ network number¸¦ °¡Á®¾ß ÇÑ´Ù. lionÀº 129.9.200, ±×¸®°í
   lion-gwÀÇ network number´Â 129.9.111¿¡ attacheµÇ¾î ÀÖ´Ù.( IP addressÀÇ
   ¸¶Áö¸· number´Â host numberÀÌ´Ù.)

   /etc/hosts fileÀ» ´ÙÀ½°ú °°ÀÌ editÇ϶ó.

	129.9.111.22	lion-gw

   ¸¸¾à network°¡ NIS¸¦ runningÇÏ°í ÀÖ´Ù¸é, NIS mapÀ» ¼öÁ¤ÇÏ¿©¾ß ÇÑ´Ù.

5. /etc/hostname.le1 fileÀ» ¸¸µé¾î ÁÖ¾î¾ß ÇÑ´Ù.

   /etc/hostname.* fileÀº °¢ network interfaceº°·Î ¸¸µé¾îÁ®¾ß ÇÑ´Ù.
   /etc/hostname.le0´Â ½Ã½ºÅÛÀÌ installµÇ¾îÁú ¶§ ¸¸µé¾îÁø´Ù.
   card°¡ Ãß°¡µÉ ¶§ ¸¶´Ù manual·Î »õ·Î¿î /etc/hostname.* fileÀ» ¸¸µé¾î
   ÁÖ¾î¾ß ÇÑ´Ù. ¿¹¸¦ µé¾î /etc/hostname.le1¿¡´Â lion-gw ¶Ç´Â 129.9.111.22¸¦
   ÇÑ line¿¡ ÆíÁýÇÏ¿© ÁÖ¸é µÈ´Ù.

6. /etc/netmasks file¿¡ »õ·Î¿î network¸¦ Á¤ÀÇÇ϶ó.

   ÀÌ ¿¹¿¡¼­´Â class "b" network number(IP AddressÀÇ first number´Â
   128 °ú 191»çÀÌ ÀÌ´Ù)ÀÌ´Ù. ÀÌ°æ¿ì¿¡´Â netmask¸¦ 255.255.255.0·Î »ç¿ëÇϸé
   µÈ´Ù( class "b" network number´Â IP AddressÀÇ first number´Â 0¿¡¼­
   127±îÁö À̸ç netmask´Â 255.255.0.0·Î »ç¿ëÇÑ´Ù).

   ¿©±âÀÇ ¿¹¿¡¼­´Â, /etc/netmasks file¿¡ ´ÙÀ½°ú °°ÀÌ µî·ÏÇÏ¿´´Ù.

	129.9	255.255.255.0

7. ManuallÇÏ°Ô ifconfig command·Î le1 interface¸¦ ´ÙÀ½°ú °°ÀÌ ÃʱâÈ­ Ç϶ó:

   #ifconfig le1 oak-gw netmask 255.255.255.0 broadcast 129.9.111.0 -trailers up

8. ifconfig -a·Î command¸¦ ¼öÇàÇϸé informationÀÌ Á¤È®ÇÑÁö ±×¸®°í le1ÀÌ
   ÀûÀýÇÏ°Ô setupµÇ¾ú´ÂÁö¸¦ È®ÀÎÇÒ¼ö ÀÖ´Ù. ¿¹¸¦ µé¸é ´ÙÀ½°ú °°´Ù.

	# /usr/etc/ifconfig -a

	le0: flags=63
		inet 129.9.200.1 netmask ffffff00 broadcast 129.9.200.0
	le1: flags=63
		inet 129.9.111.22 netmaskffffff00 broadcast 129.9.111.0

9. systemÀ» RebootÇ϶ó. RebootingÀÌ µÇ¾úÀ¸¸é ifconfig -a command¸¦ ¼öÇàÇÏ¿©
   informationÀÌ Á¤È®ÇÑÁö ±×¸®°í le1ÀÌ ÀûÀýÇÏ°Ô setupµÇ¾ú´ÂÁö¸¦ È®ÀÎÇÑ´Ù.

10. le1 network¿¡ ´Ù¸¥ systemÀÌ ¿¬°áµÇ¾î ÀÖ´Ù¸é, pingÀ» ¼öÇàÇÏ¿© º¸¶ó.

   

Revision History

ÀÛ¼ºÀÏÀÚ : 96.08.20
ÀÛ¼ºÀÚ : À̹ÎÈ£

¼öÁ¤ÀÏÀÚ :
¼öÁ¤ÀÚ :