A-A+

ospf与rip下实现末节,路由归纳,虚拟链路的试验

2015年11月20日 站长资讯 暂无评论

这个试验囊括了ospf和rip这两个路由西医,同时实现了末节、路由归纳和虚拟链路。下面是OSPF下末节路由归纳虚拟链路配置。

配置r1:

  1. [r1]inter e0  
  2.   
  3. [r1-Ethernet0]ip address 192.168.0.1 24  
  4.   
  5. [r1-Ethernet0]loopback                  
  6.   
  7.   Ethernet0 running on loopback mode  
  8.   
  9. %01:02:23: Interface Ethernet0 is UP  
  10.   
  11. %01:02:23: Line protocol ip on the interface Ethernet0 is UP  
  12.   
  13.   Duplicate IP Address  
  14.   
  15. [r1-Ethernet0]ip address 192.168.1.1 24 sub  
  16.   
  17. [r1-Ethernet0]ip address 192.168.2.1 24 sub  
  18.   
  19. [r1-Ethernet0]ip address 192.168.3.1 24 sub  
  20.   
  21. [r1-Ethernet0]ip address 192.168.4.1 24 sub  
  22.   
  23. [r1-Ethernet0]ip address 192.168.5.1 24 sub  
  24.   
  25. [r1-Ethernet0]ip address 192.168.6.1 24 sub  
  26.   
  27. [r1-Ethernet0]ip address 192.168.7.1 24 sub  
  28.   
  29. [r1-Ethernet0]inter s0  
  30.   
  31. [r1-Serial0]ip address 192.168.8.1 24  
  32.   
  33. [r1-Serial0]  
  34.   
  35. %01:04:37: Line protocol ip on the interface Serial0 is UP  
  36.   
  37. [r1-Serial0]quit  
  38.   
  39. [r1]ospf enable  
  40.   
  41.   Start OSPF task...  
  42.   
  43.   OSPF enabled  
  44.   
  45. [r1-ospf]inter e0  
  46.   
  47. [r1-Ethernet0]ospf enable area 1  
  48.   
  49. [r1-Ethernet0]inter s0  
  50.   
  51. [r1-Serial0]ospf enable area 1  
  52.   
  53. [r1-Serial0]quit  
  54.   
  55. [r1]local-user user1 pass sim 123 servi adm  

配置r2:

  1. [r2]inter s0  
  2.   
  3. [r2-Serial0]ip address 192.168.8.2 24  
  4.   
  5. [r2-Serial0]inter s1  
  6.   
  7. [r2-Serial1]ip address 192.168.9.1 24  
  8.   
  9.  [r2-Serial1]inter e0  
  10.   
  11. [r2-Ethernet0]ip address 192.168.12.1 24  
  12.   
  13. [r2]inter s0  
  14.   
  15. [r2-Serial0]shut  
  16.   
  17. % Interface Serial0 is shut down  
  18.   
  19. [r2-Serial0]  
  20.   
  21. %22:04:42: Interface Serial0 is DOWN  
  22.   
  23. %22:04:42: Line protocol ip on the interface Serial0 is DOWN     
  24.   
  25. [r2-Serial0]undo shut  
  26.   
  27. [r2-Serial0]quit  
  28.   
  29. [r2]ospf en  
  30.   
  31.   Start OSPF task...  
  32.   
  33.   OSPF enabled  
  34.   
  35. [r2-ospf]inter s0  
  36.   
  37. [r2-Serial0]ospf enable area 1  
  38.   
  39. [r2-Serial0]inter s1  
  40.   
  41. [r2-Serial1]ospf enable area 0  
  42.   
  43. [r2-Serial1]quit  
  44.   
  45. [r2]rip  
  46.   
  47.     waiting...  
  48.   
  49.   RIP is running  
  50.   
  51. [r2-rip]network 192.168.12.0  
  52.   
  53. [r2-rip]quit  
  54.   
  55. [r2]local-user user1 password sim 123 ser adm  

配置r3:

  1. [r3]inter s0  
  2.   
  3. [r3-Serial0]ip address 192.168.9.2 24  
  4.   
  5. [r3-Serial0]inter s1  
  6.   
  7. [r3-Serial1]ip address 192.168.10.1 24  
  8.   
  9. [r3-Serial1]  
  10.   
  11. %01:02:48: Line protocol ip on the interface Serial1 is UP  
  12.   
  13. [r3-Serial1]int s0  
  14.   
  15. [r3-Serial0]shut  
  16.   
  17. % Interface Serial0 is down  
  18.   
  19. %01:03:07: Interface Serial0 is DOWN  
  20.   
  21. [r3-Serial0]undo shut  
  22.   
  23. % Interface Serial0 is reset  
  24.   
  25. %01:03:18: Interface Serial0 is UP  
  26.   
  27. %01:03:18: Line protocol ip on the interface Serial0 is UP  
  28.   
  29. [r3-Serial0]quit  
  30.   
  31. [r3]ospf en  
  32.   
  33.   Start OSPF task...  
  34.   
  35.   OSPF enabled  
  36.   
  37. [r3-ospf]inter s0  
  38.   
  39. [r3-Serial0]ospf en area 0  
  40.   
  41. [r3-Serial0]inter s1  
  42.   
  43. [r3-Serial1]ospf en area 2  
  44.   
  45. [r3-Serial1]quit  
  46.   
  47. [r3]local-user user1 pass sim 123 ser adm  

测试一下:

  1. [r3]ping 192.168.8.1  
  2.   
  3.   PING 192.168.8.1: 56  data bytes, press CTRL_C to break  
  4.   
  5.     Reply from 192.168.8.1: bytes=56 Sequence=0 ttl=254 time = 50 ms  
  6.   
  7.     Reply from 192.168.8.1: bytes=56 Sequence=1 ttl=254 time = 50 ms  
  8.   
  9.     Reply from 192.168.8.1: bytes=56 Sequence=2 ttl=254 time = 50 ms  
  10.   
  11.     Reply from 192.168.8.1: bytes=56 Sequence=3 ttl=254 time = 50 ms  
  12.   
  13.     Reply from 192.168.8.1: bytes=56 Sequence=4 ttl=254 time = 52 ms  
  14.   
  15.    
  16.   
  17.   --- 192.168.8.1 ping statistics ---  
  18.   
  19.     5 packets transmitted  
  20.   
  21.     5 packets received  
  22.   
  23.     0.00% packet loss  
  24.   
  25.     round-trip min/avg/max = 50/50/52 ms  

配置r4:

  1. [r4]inter s0  
  2.   
  3. [r4-Serial0]ip address 192.168.10.2 24  
  4.   
  5. [r4-Serial0]inter e0  
  6.   
  7. [r4-Ethernet0]ip address 192.168.11.1 24  
  8.   
  9. [r4-Ethernet0]inter s0  
  10.   
  11. [r4-Serial0]shut   
  12.   
  13. [r4-Serial0]undo shut  
  14.   
  15. % Interface Serial0 is reset  
  16.   
  17. [r4-Serial0]  
  18.   
  19. %01:02:40: Interface Serial0 is UP  
  20.   
  21. %01:02:41: Line protocol ip on the interface Serial0 is UPquit  
  22.   
  23. [r4]inter e0  
  24.   
  25. [r4-Ethernet0]loopback  
  26.   
  27.   Ethernet0 running on loopback mode  
  28.   
  29. [r4-Ethernet0]  
  30.   
  31. [r4-Ethernet0]  
  32.   
  33. %01:03:00: Interface Ethernet0 is UP  
  34.   
  35. %01:03:00: Line protocol ip on the interface Ethernet0 is UP  
  36.   
  37. [r4-Ethernet0]quit  
  38.   
  39. [r4]ospf en  
  40.   
  41.   Start OSPF task...  
  42.   
  43.   OSPF enabled  
  44.   
  45. [r4-ospf]inter s0  
  46.   
  47. [r4-Serial0]ospf en area 2  
  48.   
  49. [r4-Serial0]inter e0  
  50.   
  51. [r4-Ethernet0]ospf en area 2  
  52.   
  53. [r4-Ethernet0]quit  
  54.   
  55. [r4]local-user user1 pass sim 123 ser adm  

测试一下:

  1. [r4]ping 192.168.8.1  
  2.   
  3.   PING 192.168.8.1: 56  data bytes, press CTRL_C to break  
  4.   
  5.     Reply from 192.168.8.1: bytes=56 Sequence=0 ttl=253 time = 74 ms  
  6.   
  7.     Reply from 192.168.8.1: bytes=56 Sequence=1 ttl=253 time = 78 ms  
  8.   
  9.     Reply from 192.168.8.1: bytes=56 Sequence=2 ttl=253 time = 74 ms  
  10.   
  11.     Reply from 192.168.8.1: bytes=56 Sequence=3 ttl=253 time = 74 ms  
  12.   
  13.     Reply from 192.168.8.1: bytes=56 Sequence=4 ttl=253 time = 83 ms  
  14.   
  15.    
  16.   
  17.   --- 192.168.8.1 ping statistics ---  
  18.   
  19.     5 packets transmitted  
  20.   
  21.     5 packets received  
  22.   
  23.     0.00% packet loss  

配置r5:

  1. [R5]vlan 10  
  2.   
  3.   [R5-vlan10]port e0/1  
  4.   
  5. [R5-vlan10]inter vlan10    
  6.   
  7. [R5-Vlan-interface10]ip address 192.168.12.2 255.255.255.0  
  8.   
  9.  [R5-Vlan-interface10]quit  
  10.   
  11. [R5]vlan 20  
  12.   
  13. [R5-vlan20]port e0/2  
  14.   
  15. [R5-vlan20]inter vlan 20  
  16.   
  17.   [R5-Vlan-interface20]ip address 192.168.13.1 255.255.255.0  

启动rip:

  1. [R5]rip  
  2.   
  3. [R5-rip]network 192.168.13.0  
  4.   
  5. [R5-rip]network 192.168.12.0  

退出时还有配置telnet

配置r6:(防火墙)

  1.  [r6]fire packet defau per  
  2.   
  3.  [r6]firewall zone trust  
  4.   
  5. [r6-zone-trust]add inter e0/0  
  6.   
  7.  The interface has been added to trust security zone.  
  8.   
  9. [r6-zone-trust]quit  
  10.   
  11.  [r6]fire zone untrust  
  12.   
  13. [r6-zone-untrust]add inter e0/1  
  14.   
  15.  The interface has been added to trust security zone.  
  16.   
  17. [r6-zone-untrust]quit  
  18.   
  19. [r6]inter eth0/0  
  20.   
  21. [r6-Ethernet0/0]ip address 192.168.13.2 24  
  22.   
  23.  [r6-Ethernet0/0]shut           
  24.   
  25. [r6-Ethernet0/0]undo shut  
  26.   
  27. [r6-Ethernet0/0]quit  
  28.   
  29.  [r6]inter eth0/1  
  30.   
  31. [r6-Ethernet0/1]ip address 192.168.14.1 24  
  32.   
  33. [r6-Ethernet0/1]loopback  
  34.   
  35. [r6]rip  
  36.   
  37.  [r6-rip]network 192.168.14.0  
  38.   
  39. [r6-rip]network 192.168.13.0  

退出时还有配置telnet

  1. [R5]dis ip rout  
  2.   
  3.  Routing Table: public net  
  4.   
  5. Destination/Mask   Protocol Pre  Cost        Nexthop         Interface  
  6.   
  7. 127.0.0.0/8        DIRECT   0    0           127.0.0.1       InLoopBack0  
  8.   
  9. 127.0.0.1/32       DIRECT   0    0           127.0.0.1       InLoopBack0  
  10.   
  11. 192.168.0.0/24     RIP      100  1           192.168.12.1    Vlan-interface10  
  12.   
  13. 192.168.1.0/24     RIP      100  1           192.168.12.1    Vlan-interface10  
  14.   
  15. 192.168.2.0/24     RIP      100  1           192.168.12.1    Vlan-interface10  
  16.   
  17. 192.168.3.0/24     RIP      100  1           192.168.12.1    Vlan-interface10  
  18.   
  19. 192.168.4.0/24     RIP      100  1           192.168.12.1    Vlan-interface10  
  20.   
  21. 192.168.5.0/24     RIP      100  1           192.168.12.1    Vlan-interface10  
  22.   
  23. 192.168.6.0/24     RIP      100  1           192.168.12.1    Vlan-interface10  
  24.   
  25. 192.168.7.0/24     RIP      100  1           192.168.12.1    Vlan-interface10  
  26.   
  27. 192.168.8.0/24     RIP      100  1           192.168.12.1    Vlan-interface10  
  28.   
  29. 192.168.9.0/24     RIP      100  1           192.168.12.1    Vlan-interface10  
  30.   
  31. 192.168.10.0/24    RIP      100  1           192.168.12.1    Vlan-interface10  
  32.   
  33. 192.168.11.0/24    RIP      100  1           192.168.12.1    Vlan-interface10  
  34.   
  35. 192.168.12.0/24    DIRECT   0    0           192.168.12.2    Vlan-interface10  
  36.   
  37. 192.168.12.2/32    DIRECT   0    0           127.0.0.1       InLoopBack0  
  38.   
  39. 192.168.13.0/24    DIRECT   0    0           192.168.13.1    Vlan-interface20  
  40.   
  41. 192.168.13.1/32    DIRECT   0    0           127.0.0.1       InLoopBack0  
  42.   
  43. 192.168.14.0/24    RIP      100  1           192.168.13.2    Vlan-interface20  

末节区域:

[r3]ospf

[r3-ospf]stub cost 100 area 2

[r4-ospf]stub cost 100 area 2

在r4上查看路由表

  1. [r4]dis ip rout  
  2.   
  3. Routing Tables:  
  4.   
  5.   Destination/Mask  Proto   Pref     Metric     Nexthop    Interface  
  6.   
  7.         0.0.0.0/0     OSPF   10      1662     192.168.10.1 Serial0               
  8.   
  9.       127.0.0.0/8   Direct    0         0        127.0.0.1 LoopBack0            
  10.   
  11.       127.0.0.1/32  Direct    0         0        127.0.0.1 LoopBack0            
  12.   
  13.     192.168.0.0/24    OSPF   10      4696     192.168.10.1 Serial0              
  14.   
  15.     192.168.1.0/24    OSPF   10      4696     192.168.10.1 Serial0              
  16.   
  17.     192.168.2.0/24    OSPF   10      4696     192.168.10.1 Serial0              
  18.   
  19.     192.168.3.0/24    OSPF   10      4696     192.168.10.1 Serial0              
  20.   
  21.     192.168.4.0/24    OSPF   10      4696     192.168.10.1 Serial0              
  22.   
  23.     192.168.5.0/24    OSPF   10      4696     192.168.10.1 Serial0              
  24.   
  25.     192.168.6.0/24    OSPF   10      4696     192.168.10.1 Serial0              
  26.   
  27.     192.168.7.0/24    OSPF   10      4696     192.168.10.1 Serial0              
  28.   
  29.     192.168.8.0/24    OSPF   10      4686     192.168.10.1 Serial0              
  30.   
  31.     192.168.9.0/24    OSPF   10      3124     192.168.10.1 Serial0              
  32.   
  33.    192.168.10.0/24  Direct    0         0     192.168.10.1 Serial0              
  34.   
  35.    192.168.10.1/32  Direct    0         0     192.168.10.1 Serial0              
  36.   
  37.    192.168.10.2/32  Direct    0         0        127.0.0.1 LoopBack0            
  38.   
  39.    192.168.11.0/24  Direct    0         0     192.168.11.1 Ethernet0             
  40.   
  41.    192.168.11.1/32  Direct    0         0        127.0.0.1 LoopBack0     

完全末节区域;

  1. [r3]ospf  
  2.   
  3. [r3-ospf]undo stub cost 100 area 2  
  4.   
  5. [r3-ospf]stub cost 100 area 2 ?  
  6.   
  7.   <cr>  
  8.   
  9.  no-summary     Disallow summary LSA send into stub area  
  10.   
  11. [r3-ospf]stub cost 100 area 2 no-summ  
  12.   
  13.    
  14.   
  15.    
  16.   
  17. [r4]dis ip rout  
  18.   
  19. Routing Tables:  
  20.   
  21.   Destination/Mask  Proto   Pref     Metric     Nexthop    Interface  
  22.   
  23.         0.0.0.0/0     OSPF   10      1662     192.168.10.1 Serial0              
  24.   
  25.       127.0.0.0/8   Direct    0         0        127.0.0.1 LoopBack0            
  26.   
  27.       127.0.0.1/32  Direct    0         0        127.0.0.1 LoopBack0            
  28.   
  29.    192.168.10.0/24  Direct    0         0     192.168.10.1 Serial0              
  30.   
  31.    192.168.10.1/32  Direct    0         0     192.168.10.1 Serial0              
  32.   
  33.    192.168.10.2/32  Direct    0         0        127.0.0.1 LoopBack0            
  34.   
  35.    192.168.11.0/24  Direct    0         0     192.168.11.1 Ethernet0            
  36.   
  37.    192.168.11.1/32  Direct    0         0        127.0.0.1 LoopBack0   

路由归纳:

  1. [r2-ospf]abr 192.168.0.0 mask 255.255.248.0 area 1  
  2.   
  3. [r3]dis ip rout  
  4.   
  5. Routing Tables:  
  6.   
  7.   Destination/Mask  Proto   Pref     Metric     Nexthop    Interface  
  8.   
  9.       127.0.0.0/8   Direct    0         0        127.0.0.1 LoopBack0            
  10.   
  11.       127.0.0.1/32  Direct    0         0        127.0.0.1 LoopBack0            
  12.   
  13.     192.168.0.0/21    OSPF   10      3134      192.168.9.1 Serial0              
  14.   
  15.     192.168.8.0/24    OSPF   10      3124      192.168.9.1 Serial0              
  16.   
  17.     192.168.8.1/32   O_ASE  150         1      192.168.9.1 Serial0              
  18.   
  19.     192.168.9.0/24  Direct    0         0      192.168.9.1 Serial0              
  20.   
  21.     192.168.9.1/32  Direct    0         0      192.168.9.1 Serial0              
  22.   
  23.     192.168.9.2/32  Direct    0         0        127.0.0.1 LoopBack0            
  24.   
  25.    192.168.10.0/24  Direct    0         0     192.168.10.2 Serial1               
  26.   
  27.    192.168.10.1/32  Direct    0         0        127.0.0.1 LoopBack0            
  28.   
  29.    192.168.10.2/32  Direct    0         0     192.168.10.2 Serial1              
  30.   
  31.    192.168.11.0/24    OSPF   10      1572     192.168.10.2 Serial1              
  32.   
  33.    192.168.12.0/24   O_ASE  150         1      192.168.9.1 Serial0              
  34.   
  35.    192.168.13.0/24   O_ASE  150         1      192.168.9.1 Serial0              
  36.   
  37.    192.168.14.0/24   O_ASE  150         1      192.168.9.1 Serial0          

虚拟链路:

[r4-ospf]undo stub cost 100 area 2

R3上undo stub

先undoospf

[r3]ospf en

Start OSPF task...

OSPF enabled

[r3-ospf]inter s0

[r3-Serial0]ospf en area 1

[r2]int s0

[r2-Serial0]undo ospf en area 1

[r2-Serial0]ospf en area 0

[r2-Serial0]inter s1

[r2-Serial1]undo ospf en area 0

[r2-Serial1]ospf en area 1

[r1]int e0

[r1-Ethernet0]undo ospf en area 1

[r1-Ethernet0]ospf en area 0

[r1-Ethernet0]int s0

[r1-Serial0]undo ospf en area 1

[r1-Serial0]ospf en area 0

进入r3:

  1. [r3]dis ip rout  
  2.   
  3. Routing Tables:  
  4.   
  5.   Destination/Mask  Proto   Pref     Metric     Nexthop    Interface  
  6.   
  7.       127.0.0.0/8   Direct    0         0        127.0.0.1 LoopBack0            
  8.   
  9.       127.0.0.1/32  Direct    0         0        127.0.0.1 LoopBack0            
  10.   
  11.     192.168.0.0/24    OSPF   10      3134      192.168.9.1 Serial0              
  12.   
  13.     192.168.1.0/24    OSPF   10      3134      192.168.9.1 Serial0              
  14.   
  15.     192.168.2.0/24    OSPF   10      3134      192.168.9.1 Serial0              
  16.   
  17.     192.168.3.0/24    OSPF   10      3134      192.168.9.1 Serial0               
  18.   
  19.     192.168.4.0/24    OSPF   10      3134      192.168.9.1 Serial0              
  20.   
  21.     192.168.5.0/24    OSPF   10      3134      192.168.9.1 Serial0              
  22.   
  23.     192.168.6.0/24    OSPF   10      3134      192.168.9.1 Serial0              
  24.   
  25.     192.168.7.0/24    OSPF   10      3134      192.168.9.1 Serial0              
  26.   
  27.     192.168.8.0/24    OSPF   10      3124      192.168.9.1 Serial0              
  28.   
  29.     192.168.8.1/32   O_ASE  150         1      192.168.9.1 Serial0              
  30.   
  31.     192.168.9.0/24  Direct    0         0      192.168.9.1 Serial0              
  32.   
  33.     192.168.9.1/32  Direct    0         0      192.168.9.1 Serial0              
  34.   
  35.     192.168.9.2/32  Direct    0         0        127.0.0.1 LoopBack0            
  36.   
  37.    192.168.10.0/24  Direct    0         0     192.168.10.2 Serial1              
  38.   
  39.    192.168.10.1/32  Direct    0         0        127.0.0.1 LoopBack0            
  40.   
  41.    192.168.10.2/32  Direct    0         0     192.168.10.2 Serial1              
  42.   
  43.    192.168.11.0/24    OSPF   10      1572     192.168.10.2 Serial1              
  44.   
  45.    192.168.12.0/24   O_ASE  150         1      192.168.9.1 Serial0  
  46.   
  47.    
  48.   
  49. [r4]dis ip rout  
  50.   
  51. Routing Tables:  
  52.   
  53.   Destination/Mask  Proto   Pref     Metric     Nexthop    Interface  
  54.   
  55.       127.0.0.0/8   Direct    0         0        127.0.0.1 LoopBack0            
  56.   
  57.       127.0.0.1/32  Direct    0         0        127.0.0.1 LoopBack0            
  58.   
  59.    192.168.10.0/24  Direct    0         0     192.168.10.1 Serial0              
  60.   
  61.    192.168.10.1/32  Direct    0         0     192.168.10.1 Serial0              
  62.   
  63.    192.168.10.2/32  Direct    0         0        127.0.0.1 LoopBack0            
  64.   
  65.    192.168.11.0/24  Direct    0         0     192.168.11.1 Ethernet0            
  66.   
  67.    192.168.11.1/32  Direct    0         0        127.0.0.1 LoopBack0    

查询rout id

  1. [r3]dis ospf peer  
  2.   
  3.   Interface: 192.168.9.2     Area: 0.0.0.1         
  4.   
  5.       Neighbors:     
  6.   
  7.   RouterID: 192.168.8.2     Address: 192.168.9.1     
  8.   
  9.         State: Full  Mode: Master  Priority: 1  
  10.   
  11.         DR: None(ID)    None(IP)  
  12.   
  13.         BDR: None(ID)    None(IP)  
  14.   
  15.         Last Hello: 45:43  Last Exchange: 19:20  
  16.   
  17.    
  18.   
  19.   Interface: 192.168.10.1    Area: 0.0.0.2         
  20.   
  21.       Neighbors:     
  22.   
  23.   RouterID: 192.168.10.2    Address: 192.168.10.2    
  24.   
  25.         State: Full  Mode: Slave   Priority: 1  
  26.   
  27.         DR: None(ID)    None(IP)  
  28.   
  29.         BDR: None(ID)    None(IP)  
  30.   
  31.         Last Hello: 45:36  Last Exchange: 31:22  
  32.   
  33. [r3]ospf  
  34.   
  35. [r3-ospf]vlink peer-id 192.168.8.2 transit ?  
  36.   
  37.   <area_id>     area's area id  
  38.   
  39. [r3-ospf]vlink peer-id 192.168.8.2 transit 1  
  40.   
  41. [r2]ospf  
  42.   
  43. [r2-ospf]vlink peer-id 192.168.9.2 transit 1  
  44.   
  45.    192.168.12.0/24   O_ASE  150         1     192.168.10.1 Serial0              
  46.   
  47. [r4]dis ip rout  
  48.   
  49. Routing Tables:  
  50.   
  51.   Destination/Mask  Proto   Pref     Metric     Nexthop    Interface  
  52.   
  53.       127.0.0.0/8   Direct    0         0        127.0.0.1 LoopBack0            
  54.   
  55.       127.0.0.1/32  Direct    0         0        127.0.0.1 LoopBack0            
  56.   
  57.     192.168.0.0/24    OSPF   10      4696     192.168.10.1 Serial0              
  58.   
  59.     192.168.1.0/24    OSPF   10      4696     192.168.10.1 Serial0              
  60.   
  61.     192.168.2.0/24    OSPF   10      4696     192.168.10.1 Serial0              
  62.   
  63.     192.168.3.0/24    OSPF   10      4696     192.168.10.1 Serial0              
  64.   
  65.     192.168.4.0/24    OSPF   10      4696     192.168.10.1 Serial0              
  66.   
  67.     192.168.5.0/24    OSPF   10      4696     192.168.10.1 Serial0              
  68.   
  69.     192.168.6.0/24    OSPF   10      4696     192.168.10.1 Serial0              
  70.   
  71.     192.168.7.0/24    OSPF   10      4696     192.168.10.1 Serial0              
  72.   
  73.     192.168.8.0/24    OSPF   10      4686     192.168.10.1 Serial0              
  74.   
  75.     192.168.8.1/32   O_ASE  150         1     192.168.10.1 Serial0              
  76.   
  77.     192.168.9.0/24    OSPF   10      3124     192.168.10.1 Serial0              
  78.   
  79.     192.168.9.2/32   O_ASE  150         1     192.168.10.1 Serial0              
  80.   
  81.    192.168.10.0/24  Direct    0         0     192.168.10.1 Serial0              
  82.   
  83.    192.168.10.1/32  Direct    0         0     192.168.10.1 Serial0              
  84.   
  85.    192.168.10.2/32  Direct    0         0        127.0.0.1 LoopBack0            
  86.   
  87.    192.168.11.0/24  Direct    0         0     192.168.11.1 Ethernet0            
  88.   
  89.    192.168.11.1/32  Direct    0         0        127.0.0.1 LoopBack0            
  90.   
  91.    192.168.12.0/24   O_ASE  150         1     192.168.10.1 Serial0   

到此,这个试验算是完成了,大家可以自己动手去验证一下 ,也可以了解ospf和rip协议的异同!

标签:

给我留言