Dynamips/Dynagen 的设定档如下:
配置: |
# Another simple dynagen configuration file # autostart = false ghostios = true [localhost] [[7200]] image = \Program Files\Dynamips\images\c7200-jk9o3s-mz.124-12.bin npe = npe-400 ram = 160 [[ROUTER Earhart]] console = 2001 s1/0 = Lindbergh s1/0 s1/1 = Cochran s1/0 [[ROUTER Lindbergh]] console = 2002 [[ROUTER Cochran]] console = 2003 |
其中的 IOS 档案,请寻找正常管道取得。
三个 Routers 的 Initial configuration 如下:
配置: |
hostname Earhart ! interface Loopback0 ip address 172.20.10.1 255.255.255.0 ! interface Serial1/0 description "Connect to Router Lindbergh S1/0" ip address 172.20.15.1 255.255.255.252 ! interface Serial1/1 description "Connect to Router Cochran S1/0" ip address 172.20.15.5 255.255.255.252 ! |
配置: |
hostname Lindbergh ! interface Loopback0 ip address 192.168.16.1 255.255.255.0 ! interface Serial1/0 description "Connect to Router Earhart S1/0 ip address 172.20.15.2 255.255.255.252 ! |
配置: |
hostname Cochran ! interface Loopback0 ip address 192.168.17.1 255.255.255.0 ! interface Serial1/0 description "Connect to Router Earhart S1/1" ip address 172.20.15.6 255.255.255.0 ! |
需要输入的指令如下:
配置: |
Earhart(config)# router eigrp 15 Earhart(config-router)# network 172.20.0.0 Earhart(config-router)# exit Earhart(config)# |
配置: |
Lindbergh(config)# router eigrp 15 Lindbergh(config-router)# network 172.20.0.0 Lindbergh(config-router)# network 192.168.16.0 Lindbergh(config-router)# exit Lindbergh(config)# |
配置: |
Cochran(config)# router eigrp 15 Cochran(config-router)# network 172.20.0.0 Cochran(config-router)# network 192.168.17.0 Cochran(config-router)# exit Cochran(config)# |
当所有的设定做完之后,结果如下:
配置: |
Earhart#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set 172.20.0.0/16 is variably subnetted, 3 subnets, 2 masks C 172.20.10.0/24 is directly connected, Loopback0 C 172.20.15.4/30 is directly connected, Serial1/1 C 172.20.15.0/30 is directly connected, Serial1/0 D 192.168.17.0/24 [90/2297856] via 172.20.15.6, 00:00:13, Serial1/1 D 192.168.16.0/24 [90/2297856] via 172.20.15.2, 00:00:50, Serial1/0 Earhart# |
配置: |
Lindbergh#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set 172.20.0.0/16 is variably subnetted, 4 subnets, 3 masks D 172.20.10.0/24 [90/2297856] via 172.20.15.1, 00:02:19, Serial1/0 D 172.20.15.4/30 [90/2681856] via 172.20.15.1, 00:02:19, Serial1/0 C 172.20.15.0/30 is directly connected, Serial1/0 D 172.20.0.0/16 is a summary, 00:02:09, Null0 D 192.168.17.0/24 [90/2809856] via 172.20.15.1, 00:01:31, Serial1/0 C 192.168.16.0/24 is directly connected, Loopback0 Lindbergh# |
配置: |
Cochran#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set 172.20.0.0/16 is variably subnetted, 4 subnets, 3 masks D 172.20.10.0/24 [90/2297856] via 172.20.15.5, 00:02:26, Serial1/0 D 172.20.15.0/30 [90/2681856] via 172.20.15.5, 00:02:26, Serial1/0 C 172.20.15.0/24 is directly connected, Serial1/0 D 172.20.0.0/16 is a summary, 00:02:12, Null0 C 192.168.17.0/24 is directly connected, Loopback0 D 192.168.16.0/24 [90/2809856] via 172.20.15.5, 00:02:26, Serial1/0 Cochran# |
Kuo...
PS: 这个 Lab 基本上很简单。但是,对完全�]有设定过 Cisco 路由器的人来说,还是会有点困难的。所以,通过这样的方式,让没有机会碰到路由器的人,也可以在自己的家里练习。
另外,也希望大家可以说出自己的想法与意见。
本文出自 “沉沦-给生命另外一个起点” 博客,谢绝转载!