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