1992.10.28
SUBJECT: (Static) Routing example
MEANING OF THIS MEMO:
"Á¦ 1ȸ ¿¬±¸ Àü»ê¸Á ¿öÅ©¼¥/Æ©Å丮¾ó ÀÚ·áÁý" p229¸¦ À籸¼ºÇÔ.
º¹ÀâÇÑ network¿¡¼ÀÇ ½ÇÁ¦ static route¸¦ Àâ´Â ¿¹Á¦·Î À¯¿ëÇÒ °ÍÀÓ.
CONTENTS:
0. Network ±¸¼ºµµ
1. "werner"ÀÇ static routing
2. "larry"ÀÇ static routing
DESCRIPTION:
0. Network ±¸¼ºµµ
Hill-subnet
|--------------------------------| 128.20.6
|¨ç |¨è |¨é +-------+ +-------+
+--------+ +--------+ +-------+ | ceo | | cfo |
| Hill | | senate | | house | +-------+ +-------+
| router | +--------+ +-------+ |¨è |¨é
+--------+ |------------------------------| 128.20.5
| |¨ç Directors-subnet
+--------+ +-----------+
| DC | +--------+ | Directors |
| router | | netman | | router |
+--------+ +--------+ +-----------+
|¨ì |¨ç |¨ë Backbone
¦²¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦´ 128.20.1
|¨é |¨è |¨í
+-----------+ +--------+ le1 |
+-------+ +-------+ | Marketing | | R & D | +--------+
| moe | | larry | | router | | router | | werner |
+-------+ +-------+ +-----------+ +--------+ +--------+
|¨é |¨è |¨ç |¨ç le0 |¨è
|-----------------------------------| 128.20.3 |--------------------------| 128.20.2
| Marketing-subnet |¨ê |¨é R&D-subnet
+--------+ +--------+ +---------+
|£¯£¯£¯£¯| | wilbur | | orville |
| Bridge | +-------+ +--------+ +---------+
|£¯£¯£¯£¯| | curly |
+--------+ +-------+
| | ¨è
|---------------------------| 128.20.4
Marketing Annex subnet
1. "werner"ÀÇ static routing
(1) route add
¦¨ ¦¨ Basic ¦¨ route add 127.0.0.1 127.0.0.1 (lo0¸¦ ÀâÀ½)
¦¢ Simple ¦¢ routing ¦¢ route add 128.20.2 127.20.2.2 (le0¸¦ ÀâÀ½)
¦¢ routing ¦¢ ¦ª route add 128.20.1 127.20.1.7 (le1À» ÀâÀ½)
¦¢ ¦¢
Full ¦¢ ¦ª route add default 128.20.2.1 1 (le0¸¦ ÀâÀ½)
routing ¦¢
¦¢ route add 128.20.3.0 128.20.1.3 1 (le1À» ÀâÀ½)
¦¢ route add 128.20.4.0 128.20.1.3 1 (le1À» ÀâÀ½)
¦¢ route add 128.20.5.0 128.20.1.5 1 (le1À» ÀâÀ½)
¦ª route add 128.20.6.0 128.20.1.6 1 (le1À» ÀâÀ½)
(2) routing table
% netstat -nr
Destination Gateway Flags Refcnt Use Interface
127.0.0.1 127.0.0.1 UH 3 0 lo0
128.20.2 128.20.2.2 U 4 95778 le0
default 128.20.2.1 UG 0 0 le0
128.20.1 128.20.1.7 U 4 95778 le1
128.20.3 128.20.1.3 UG 0 0 le1
128.20.4 128.20.1.3 UG 0 0 le1
128.20.5 128.20.1.5 UG 0 0 le1
128.20.6 128.20.1.6 UG 0 0 le1
2. "larry"ÀÇ static routing
route add default 128.20.3.1
route add 128.20.4.0 larry 0 (Bridge¸¦ ´Ù·ç±â À§ÇÑ routing)
Revision History
Created on Oct. 28 ,1992