RIP的基本配置 |
您所在的位置:网站首页 › 怎么查看路由器ip网段 › RIP的基本配置 |
RIP的基本配置
如下图配置好对应的IP地址: 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)#exit3.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)#exit5.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)#
|
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |