您好,登錄后才能下訂單哦!
默認路由協議、靜態路由協議、RIP協議、OSPF協議
·
1、托出六臺路由器,(右擊選擇Configure,選擇Slots添加一個端口NM-1FE-TX,其中R3需要添加2個NM-1FE-TX,點擊OK即可)
2、托出四臺PC機(VPCS)
3、將R6的圖標改為cloud(運營商)
·
R1詳細配置:
R1#conf t
RI#(config)int f0/0
R1#(config-if)ip add 192.168.10.1 255.255.255.0
R1#(config-if)no shut
R1#(config-if)int f0/1
R1#(config-if)ip add 192.168.20.1 255.255.255.0
R1#(config-if)no shut
R1#(config-if)ex
R1#(config)ip router 0.0.0.0 0.0.0.0 192.168.20.2 //在末梢網絡配置默認路由并指向下一條地址
·
R2詳細配置:
R2#conf t
R2(config)#int f0/1
R2(config-if)#ip add 192.168.20.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#ex
R2(config)#int f0/0
R2(config-if)#ip add 192.168.30.1 255.255.255.0
R2(config-if)#no shut
R2(config-if)#ex
R2(config)#router ospf 1 (//啟用OSPF1進程)
R2(config-router)#router-id 2.2.2.2 (//標注route-id 2.2.2.2)
R2(config-router)#network 192.168.30.0 0.0.0.255 area 1 (//在area1種宣告30段落網段)
R2(config-router)#ex
R2(config)#ip route 192.168.10.0 255.255.255.0 192.168.20.1
R2(config)#router ospf 1 (//啟用OSPF1進程)
R2(config-router)#redistribute connected subnets (//注入直連網段20段落)
R2(config-router)#redistribute static subnets (//注入靜態網段10段落)
R2(config-router)#ex
·
R3詳細配置:
R3#conf t
R3(config)#int f0/0
R3(config-if)#ip add 192.168.30.2 255.255.255.0
R3(config-if)#no shut
R3(config-if)#int f0/1
R3(config-if)#ip add 192.168.40.1 255.255.255.0
R3(config-if)#no shut
R3(config-if)#int f1/0
R3(config-if)#ip add 12.0.0.1 255.255.255.0
R3(config-if)#no shut
R3(config-if)#int f2/0
R3(config-if)#ip add 192.168.70.1 255.255.255.0
R3(config-if)#no shut
R3(config-if)#do show ip int b
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.30.2 YES manual up up
FastEthernet0/1 192.168.40.1 YES manual up up
FastEthernet1/0 12.0.0.1 YES manual up up
FastEthernet2/0 192.168.70.1 YES manual up up
R3(config-if)#ex
R3(config)#ip route 0.0.0.0 0.0.0.0 12.0.0.2 (//配置默認路由并指向下一跳地址)
R3(config)#router ospf 1 (//啟用OSPF1進程)
R3(config-router)#router-id 3.3.3.3 (//標注router-id 3.3.3.3)
R3(config-router)#network 192.168.30.0 0.0.0.255 area 1 (//在area1中宣告30段落地址)
R3(config-router)#network 192.168.40.0 0.0.0.255 area 0 (//在area0中宣告40段落地址)
R3(config-router)#network 192.168.70.0 0.0.0.255 area 0 (//在area0中宣告70段落地址)
R3(config-router)#default-information originate (//注入外部默認路由)
R3(config-router)#ex
·
R4詳細配置:
R4#conf t
R4(config)#int f0/0
R4(config-if)#ip add 192.168.40.2 255.255.255.0
R4(config-if)#no shut
R4(config-if)#int f0/1
R4(config-if)#ip add 192.168.50.1 255.255.255.0
R4(config-if)#no shut
R4(config-if)#ex
R4(config-router)#router rip (//配置rip協議)
R4(config-router)#ver 2
R4(config-router)#no atuo-summary
R4(config-router)#network 192.168.50.0
R4(config-router)#ex
R4(config-router)#router ip
R4(config-router)#redistribute ospf 1 metric 5 (//在OSPF協議中注入進程號和度量值)
R4(config-router)#ex
R4(config-router)#router ospf 1 (//啟動OSPF1進程)
R4(config-router)#router-id 4.4.4.4 (//標注router-id 4.4.4.4)
R4(config-router)#network 192.168.40.0 0.0.0.255 area 0
R4(config-router)#redistribute rip subnets (//注入rip協議)
R4(config-router)#ex
·
R5詳細配置:
R5#conf t
R5(config)#int f0/0
R5(config)# ip add 192.168.50.2 255.255.255.0
R5(config)#no shut
R5(config)#int f0/1
R5(config)#ip add 192.168.60.1 255.255.255.0
R5(config-if)#no shut
R5(config-if)#ex (//配置rip協議)
R5(config-if)#router rip
R5(config-router)#ver 2
R5(config-router)#no antuo-summary
R5(config-router)#network 192.168.50.0
R5(config-router)#network 192.168.60.0
R5(config-router)#ex
·
R6詳細配置:
R6#conf t
R6(config)#int f0/0
R6(config-if)#ip add 12.0.0.2 255.255.255.0
R6(config-if)#no shut
R6(config-if)#ex
R6(config)#int f0/1
R6(config-if)#ip add 13.0.0.1 255.255.255.0
R6(config-if)#no shut
R6(config-if)#ex
R6(config)#ip route 192.168.0.0 255.255.255.0 12.0.0.1 (//配置靜態路由)
·
1、PC1:192.168.10.2 192.168.10.1
2、PC2:192.168.70.2 192.168.70.1
3、PC3:13.0.0.13 13.0.0.1
4、P4:192.168.60.2 192.169.60.1
PC1> ip 192.168.10.2 192.168.10.1
Checking for duplicate address...
PC1 : 192.168.10.2 255.255.255.0 gateway 192.168.10.1
PC1> ping 192.168.70.2
192.168.70.2 icmp_seq=1 timeout
192.168.70.2 icmp_seq=2 timeout
84 bytes from 192.168.70.2 icmp_seq=3 ttl=61 time=93.680 ms
84 bytes from 192.168.70.2 icmp_seq=4 ttl=61 time=93.717 ms
84 bytes from 192.168.70.2 icmp_seq=5 ttl=61 time=93.722 ms
PC1> ping 13.0.0.13
13.0.0.13 icmp_seq=1 timeout
13.0.0.13 icmp_seq=2 timeout
84 bytes from 13.0.0.13 icmp_seq=3 ttl=60 time=124.965 ms
84 bytes from 13.0.0.13 icmp_seq=4 ttl=60 time=124.858 ms
84 bytes from 13.0.0.13 icmp_seq=5 ttl=60 time=125.056 ms
PC1> ping 192.168.60.2
192.168.60.2 icmp_seq=1 timeout
84 bytes from 192.168.60.2 icmp_seq=2 ttl=59 time=156.210 ms
84 bytes from 192.168.60.2 icmp_seq=3 ttl=59 time=157.946 ms
84 bytes from 192.168.60.2 icmp_seq=4 ttl=59 time=166.144 ms
84 bytes from 192.168.60.2 icmp_seq=5 ttl=59 time=156.238 ms
PC1>
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。