欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

思科CCNA路由器配置——DHCP+DHCP中繼服務(wù)配置實驗詳解

  發(fā)布時間:2020-03-04 15:08:50   作者:Stalk   我要評論
這篇文章主要介紹了思科CCNA路由器DHCP+DHCP中繼服務(wù)配置實驗,結(jié)合實例形式分析了思科路由器DHCP+DHCP中繼服務(wù)配置具體步驟、操作命令及相關(guān)注意事項,需要的朋友可以參考下

本文實例講述了思科CCNA路由器DHCP+DHCP中繼服務(wù)配置實驗。分享給大家供大家參考,具體如下:

一、實驗?zāi)康?/strong>:掌握DHCP服務(wù)基本配置及DHCP中繼服務(wù)配置,實現(xiàn)全網(wǎng)互通

二、拓撲圖

三、具體步驟配置

(1)R1路由器配置:

Router>enable  --進入特權(quán)模式

Router#configure terminal  --進入全局配置模式


Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R1  --修改路由器名為R1

R1(config)#interface f0/0  --進入端口

R1(config-if)#ip address 192.168.11.1 255.255.255.0  --為端口配置ip地址

R1(config-if)#no shutdown  --激活端口

R1(config-if)#interface s0/0/0  --進入端口

R1(config-if)#ip address 192.168.12.1 255.255.255.0  --為端口配置ip地址

R1(config-if)#clock rate 64000  --設(shè)置時鐘同步速率

R1(config-if)#no shutdown  --激活端口


%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down

R1(config-if)#exit  --返回上一級

R1(config)#service dhcp  --開啟dhcp服務(wù)

R1(config)#ip dhcp pool 1  --定義地址池

R1(dhcp-config)#network 192.168.11.0 255.255.255.0  --DHCP服務(wù)器要分配的網(wǎng)絡(luò)和掩碼

R1(dhcp-config)#default-router 192.168.11.1  --默認網(wǎng)關(guān),這個地址要和相應(yīng)網(wǎng)絡(luò)所連接的路由器的以太口地址相同

R1(dhcp-config)#exit  --返回上一級

R1(config)#ip dhcp pool 2  --定義地址池

R1(dhcp-config)#network 192.168.22.0 255.255.255.0  --DHCP服務(wù)器要分配的網(wǎng)絡(luò)和掩碼

R1(dhcp-config)#default-router 192.168.22.1  --默認網(wǎng)關(guān)

R1(dhcp-config)#exit  --返回上一級

R1(config)#ip dhcp pool 3  --定義地址池


R1(dhcp-config)#network 192.168.33.0 255.255.255.0  --DHCP服務(wù)器要分配的網(wǎng)絡(luò)和掩碼

R1(dhcp-config)#default-router 192.168.33.1  --默認網(wǎng)關(guān)

R1(dhcp-config)#exit  --返回上一級

R1(config)#ip dhcp excluded-address 192.168.11.1  --排除的地址段

R1(config)#ip dhcp excluded-address 192.168.22.1  --排除的地址段

R1(config)#ip dhcp excluded-address 192.168.33.1  --排除的地址段

R1(config)#route rip  --開啟rip協(xié)議


R1(config-router)#version 2  --版本2

R1(config-router)#no auto-summary  --關(guān)閉路由自動匯總

R1(config-router)#network 192.168.12.0  --添加直連網(wǎng)段到rip

R1(config-router)#network 192.168.11.0

R1(config-router)#network 192.168.22.0

R1(config-router)#network 192.168.33.0

R1(config-router)#end  --返回特權(quán)模式

R1#

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

%SYS-5-CONFIG_I: Configured from console by console

R1#

R1#

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up

(2)R2路由器配置:

Router>enable  --進入特權(quán)模式

Router#configure terminal  --進入全局配置模式

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R2  --修改路由器名為R2

R2(config)#interface f0/0  --進入端口

R2(config-if)#ip address 192.168.22.1 255.255.255.0  --為端口配置ip地址

R2(config-if)#ip helper-address 192.168.12.1  --配置幫助地址

R2(config-if)#no shutdown  --激活端口

R2(config-if)#interface s0/0/0  --進入端口

R2(config-if)#ip address 192.168.12.2 255.255.255.0  --為端口配置ip地址

R2(config-if)#no shutdown  --激活端口

R2(config-if)#interface s0/0/1  --進入端口

R2(config-if)#ip address 192.168.24.2 255.255.255.0  --為端口配置ip地址

R2(config-if)#clock rate 64000  --設(shè)置時鐘同步速率

R2(config-if)#no shutdown  --激活端口

%LINK-5-CHANGED: Interface Serial0/0/1, changed state to down

R2(config-if)#exit  --返回上一級

R2(config)#route rip  --開啟rip協(xié)議


R2(config-router)#version 2  --版本2

R2(config-router)#no auto-summary  --關(guān)閉路由自動匯總

R2(config-router)#network 192.168.12.0  --添加直連網(wǎng)段到rip

R2(config-router)#network 192.168.24.0

R2(config-router)#network 192.168.22.0

R2(config-router)#network

% Incomplete command.

R2(config-router)#end  --返回特權(quán)模式

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up

%LINK-5-CHANGED: Interface Serial0/0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/1, changed state to up

(3)R3路由器配置:

Router>enable  --進入特權(quán)模式

Router#configure terminal  --進入全局配置模式

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R3  --修改路由器名為R3

R3(config)#interface f0/0  --進入端口

R3(config-if)#ip address 192.168.33.1 255.255.255.0  --為端口配置ip地址

R3(config-if)#ip helper-address 192.168.12.1  --配置幫助地址

R3(config-if)#no shutdown  --激活端口

R3(config-if)#interface S0/0/0  --進入端口

R3(config-if)#ip address 192.168.24.1 255.255.255.0  --為端口配置ip地址

R3(config-if)#no shutdown  --激活端口

R3(config-if)#exit  --返回上一級

R3(config)#route rip  --開啟rip協(xié)議

R3(config-router)#version 2  --版本2

R3(config-router)#no auto-summary  --關(guān)閉自動路由匯總

R3(config-router)#network 192.168.24.0  --添加直連網(wǎng)段到rip

R3(config-router)#network 192.168.33.0

R3(config-router)#network 192.168.12.0

R3(config-router)#end

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

R3#

%SYS-5-CONFIG_I: Configured from console by console

R3#

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up

四、驗證測試

1、打開各臺虛擬機的DHCP功能查看是否接收到DHCP服務(wù)所分配的地址:

(1)PC1

(2)PC2

 

(3)PC3

分配地址成功

2、測試各臺主機之間是否互通

(1)PC1PC2

(2)PC2PC3

 

(3)PC3PC1

結(jié)果:全網(wǎng)互通成功

相關(guān)文章

最新評論