RIP的基本配置
RIP的基本配置
如下圖配置好對應的IP地址:
- RIP的配置與檢視命令
- 啟動RIP: router rip
- 設定本路由器的動態路由網路:network 與本路由器的直連路由的網路號
- 檢視RIP的配置:Router#show ip rout
- 清楚IP路由表的資訊:clear ip route
- 取消RIP協議:no route rip
- 取消路由器直連的網段:no network 網段
1.配置三臺PC的IP和閘道器
2.R1的IP配置
Router#configure
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostnam R1
R1(config)#int f0/0
R1(config-if)#ip add 192.168.1.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R1(config-if)#int s2/0
R1(config-if)#ip add 1.1.1.1 255.255.255.0
R1(config-if)#no sh
%LINK-5-CHANGED: Interface Serial2/0, changed state to down
R1(config-if)#shutdown
%LINK-5-CHANGED: Interface Serial2/0, changed state to administratively down
R1(config-if)#clock rate 64000
R1(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial2/0, changed state to down
R1(config-if)#exit
3.R2的IP配置
Router>enable
Router#configure
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R2
R2(config)#int f0/0
R2(config-if)#ip add 192.168.2.1 255.255.255.0
R2(config-if)#no sh
R2(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R2(config-if)#int s3/0
R2(config-if)#ip add 1.1.1.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#
%LINK-5-CHANGED: Interface Serial3/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/0, changed state to up
R2(config-if)#int s2/0
R2(config-if)#ip add 2.2.2.1 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no sh
%LINK-5-CHANGED: Interface Serial2/0, changed state to down
R2(config-if)#
R2(config-if)#exit
R2(config)#
4.R3的IP配置
Router>enable
Router#configure
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R3
R3(config)#int f0/0
R3(config-if)#ip add 192.168.3.1 255.255.255.0
R3(config-if)#no sh
R3(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R3(config-if)#int s3/0
R3(config-if)#ip add 2.2.2.2 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#
%LINK-5-CHANGED: Interface Serial3/0, changed state to up
R3(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/0, changed state to up
R3(config)#exit
5.R1,R2,R3的RIP協議配置命令
R1(config)#route rip
R1(config-router)#network 192.168.1.0
R1(config-router)#network 1.0.0.0
R1(config-router)#
R2(config)#router rip
R2(config-router)#network 192.168.2.0
R2(config-router)#network 1.0.0.0
R2(config-router)#network 2.0.0.0
R2(config-router)#
R3(config)#router rip
R3(config-router)#network 192.168.3.0
R3(config-router)#network 2.0.0.0
R3(config-router)#
6.最後PC之間都能相互ping通
7.檢視路由器的路由
R2#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Serial3/0
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Serial2/0
R 192.168.1.0/24 [120/1] via 1.1.1.1, 00:00:14, Serial3/0
C 192.168.2.0/24 is directly connected, FastEthernet0/0
R 192.168.3.0/24 [120/1] via 2.2.2.2, 00:00:03, Serial2/0
R2#
相關文章
- RIP配置
- 實驗四————RIP協議的配置協議
- 網路篇 RIP的實驗配置-23
- 配置rip動態路由實驗路由
- 配置RIP、OSPF實現全網互通
- RIP
- GoldenGate的基本配置流程Go
- RIP路由器路由器
- eNSP華為路由器OSPF配置----OSPF和RIP互相通訊路由器
- NGINX的配置和基本使用Nginx
- vscode 基本配置VSCode
- NGINX基本配置Nginx
- repmgr基本配置
- OSPF的基本配置實驗(四)
- nginx基本配置使用Nginx
- TeamCity : Build 基本配置UI
- “微信公眾號-設定-基本配置”的配置
- [RIP-9]RocketMQ Load BalancingMQ
- [RIP-9]RocketMQ Design RemotingMQREM
- 組網複習7 RIP
- 雲伺服器的基本配置:(一)伺服器
- 【MySQL】MHA的基本配置及註釋MySql
- vue基本指令與腳手架基本配置Vue
- vim配置及基本用法
- MFC 程式基本介面配置
- ensp概念和基本配置
- centos7基本配置CentOS
- 02 eclipse中配置Web專案(含eclipse基本配置和Tomcat的配置)EclipseWebTomcat
- Android Studio 配置目錄的建立和一些基本配置Android
- ENSP Demo2 RIP & static & OSPF
- 使用rollup打包庫的一種基本配置
- Webpack的基本配置和打包與介紹Web
- Cisco思科模擬器路由器各個埠IP地址的配置及路由協議RIP的配置 入門詳解 - 精簡歸納路由器協議
- webpack2-3基本配置Web
- vim基本配置與使用技巧
- OSPF多區域基本配置
- H3C基本配置
- git 部署與基本配置使用Git