도 실험 GNS3 토폴로지 :
실험 :
R2 및 R3은 AREA1, R3 및 R4는 AREA0 라우팅 프로토콜 OSPF 속한다 속하는 RIP는 R4 및 R5의 라우팅 프로토콜, R6은, 전기 통신 사업자에 속하는 전체 네트워크의 상호 운용성을 달성한다
실험 절차 :
1 구성 환경 실험 포트 주소의 포트 토폴로지 및 라우팅 프로토콜에 따라
A, R1
전체 패턴으로 R1 # conf의 t F0 / 0 인터페이스 입력 0 #int F0 / R1 (구성) RL (구성 - IF)는 추가 #ip 배치 192.168.10.1 255.255.255.0 IP 주소 R1 (구성-IF) #no 차단 가능 인터페이스 F0 #int R1 (구성-IF) / 1 인터페이스 0/1 입사 RL (구성 - IF)는 192.168.20.1 255.255.255.0 IP 주소에 추가 #ip 배치 R1이 (구성-IF) 오픈 종료 #no R1 (구성-IF) #ex 출구 인터페이스 모드 R1 (구성) #ip 경로 0.0.0.0 0.0.0.0 192.168.20.2는 기본 경로 R1로서 구성 될
B, R 2
Rt#conft 进入全局模式 R2(config)#intf0/1 设置接口f0/1 R2(config- if)#ip add 192 168.20.2 255.255 255.0 R2(config- if)#no shut 开启 R2(config- if)#int f0/0 设置接口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)#ip route 192.168.10.0 255 255.255.0192.168.20.1 设置R2为静态路由 R2(config)#router ospf 1 启动ospf进程 1 R2(config-router)#router-id 2.2.2.2 设置路由id R2(config-router)#network 192 16830.0 0.0.0.255 area 1 宣告30网段在area1中 R2(config-router) #redistribute connected subnets 将直连的20网段宣告 R2(config-router) #redistribute static subnets 宣告默认路由10段 R2(config- router)#ex
c、R3
R3#conft 进入全局模式 R3(config)#int f0/0 设置接口f0/0 R3(config-if)#ip add 192.168.30.2 255 255 255.0 配置IP地址 R3(config-if)#no shut 开启 R3(config-if)#int f0/1 设置接口f0/1 R3(config-if)ip add 192.168 40.1255.255 255.0 配置IP地址 R3(config-if)#no shut 开启 R3(config-if)#int1/0 设置接口f1/0 R3(config-if)ip add 12.0.0.1 255 255.255.0 配置IP地址 R3(config-if)#no shut 开启 R3(config-if)#intf2/0 设置接口f2/0 R3(config-if)# ip add 192.168.70.1 255255 255.0 配置IP地址 R3(config-if)#no shut 开启 R3(config-if)#ex R3(config)#ip route 0.0.0.0 0.0.0.0 12.0.0.2 将R3配置为默认路由 R3(config)#router ospf 1 开启ospf进程1 R3(config-router) #router-id 3.3.33 设置路由id R3(config-router) #network 192.168.30.0 0.0.0.255 area 1 宣告30网段在area1中 R3(config-router) #network 192.168 40.0 0.0.0.255 area 0 宣告40,70网段在area0中 R3(config-router) #network 192.168.70.0 0.0.0.255 area 0 R3(config-router) #default-information originate 注入外部默认路由 R3(config- router)#ex R3(config)#do show ip route查看路由表
d、R4
Rt4#conf t 进入全局模式 R4(config)#int f0/0 配置接口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 配置接口f0/1 R4(config- if)#ip add 192 168. 50.1255 255.255.0 R4(config- if)#no shut 开启 R4(config)#router rip 进入rip协议 R4(config router)#ver2 版本2 R4(config - router )#no auto-summary 关闭路由汇总 R4(config router #network 192.168.50.0 宣告50网段 R4(config - router #redistribute ospf 1 metric 5 在rip中注入ospf R4(config router)#router ospf 1 开启ospf进程1 R4(config router)#router-id 4.4.4.4 设置路由id R4(config router #network 192.168 40.0 0.0.0.255 area 0 告40网段在area0中 R4(config - router #redistribute rip subnets 在ospf中注入rip R4(config - router)#ex R4(config)#do show ip route查看路由信息
e、R5
Rrs#conft 进入全局模式 R5(config)#int f0/0 配置接口f0/0 R5(config- if)ip add 192.168 50.2255.255.255.0 R5(config - if)#no shut R5(config- if)#int f0/1 配置接口f0/1 R5(config- if)ip add 192.168.60.1 255 255 255.0 R5(config - if #no shut R5(config - if)#ex R5(config)#router rip 进入rip协议 R5(config router)#ver 2 版本2 R5(config-router )#no auto summary 关闭路由汇总 R5(config router )#network 192.168.50.0 宣告50, 60网段 R5 (구성 라우터) #network 192.168.60.0
F, R6
R6 # conf의 t는 글로벌 모드로 진입 R6 (구성) #int F0 / 0 인터페이스 구성 F0 / 0 R6 (구성 - IF) #ip 255 추가 12.0.0.2 255,255.0 R6 (구성 - IF)는 종료 #no R6이 (구성 - IF) F0 / 1 구성 인터페이스 F0 /. 1 #int 255.255 255.0 13.0.0.1 추가 #ip R6 (configif) 종료 #no R6 (configif)을 R6 (구성) #ip 경로 192.168.0.0 정적 세트를 255 255.0.0를 12.0.0.1 라우팅
2, IP 주소를 구성하고 PC를 게이트웨이
A, PC1
IP 192.168.10.2 192.168.10.1 주소 구성 pc1IP
B, PC2
IP 192.168.70.2 192.168.70.1 주소 구성 pc2IP
C, PC3
IP 13.0.0.13 13.0.0.1 주소 구성 pc3IP
D, PC4
IP 192.168.160.2 192.168.60.1 주소 구성 pc4IP
3, 전체 네트워크의 상호 운용성 테스트
립 성공적인 실험과 포괄적 인 합의를 구축 OSPF의 계약.