tft每日頭條

 > 科技

 > 思科怎樣配置dhcp服務器

思科怎樣配置dhcp服務器

科技 更新时间:2024-08-15 08:11:24

項目名稱:配置路由器的DHCP服務器

項目需求:配置路由器DHCP服務器

項目審核标準:實施完成所有路由器及交換機的端口地址配置

項目實施方案:

思科怎樣配置dhcp服務器(使用Cisco路由器配置DHCP服務器)1

路由器R1的FastEthernet 0/1接口連接交換機的FastEthernet 0/1接口。

交換機的FastEthernet 0/2接口PC1的FastEthernet接口。

交換機的FastEthernet 0/3接口PC2的FastEthernet接口。

路由器的配置過程如下:

1.Router>enable 從用戶模式進入特權模式 2.Router#configure terminal 從特權模式進入全局配置模式 3.Router(config)#hostname R1 更改設備名稱 4.R1(config)#interface fastEthernet 0/1 進入接口 5.R1(config-if)#ip address 192.168.2.1 255.255.255.0 配置IP地址 6.R1(config-if)#no shutdown 啟用以太網口 7.R1(config-if)#exit 進入全局配置模式 8.R1(config)#ip dhcp pool 876long 創建DHCP地址池 9.R1(dhcp-config)#network 192.168.2.0 255.255.255.0 發布地址池的網段 10.R1(dhcp-config)#default-router 192.168.2.1 設置網關地址 11.R1(dhcp-config)#dns-server 192.168.2.2 設置DNS地址 12.R1(dhcp-config)#exit 進入全局配置模式 13.R1(config)#ip dhcp excluded-address 192.168.2.1 排除網關地址192.168.2.1 14.R1(config)#ip dhcp excluded-address 192.168.2.2 排除DNS地址 192.168.2.2 15.R1(config)#ip dhcp excluded-address 192.168.2.3 192.168.2.20 設置預留地址 16.R1(config)#exit進入特權模式 17.R1(config)#write 保存當前配置 測試: PC1 地址獲取: 18.ipconfig /renew PC>ipconfig /renew IP Address......................: 192.168.2.21 Subnet Mask.....................: 255.255.255.0 Default Gateway.................: 192.168.2.1 DNS Server......................: 192.168.2.2 19.路由器上查看IP地址綁定情況: R1#show ip dhcp binding IP address Client-ID/ Lease expiration Type Hardware address 192.168.2.21 00E0.B08C.01C8 -- Automatic 192.168.2.22 00E0.F76B.3AB3 -- Automatic

鼓勵的話語:無論對手多麼強大,你都不要膽怯。因為你無處可逃,隻有勇敢面對!

,

更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!

查看全部

相关科技资讯推荐

热门科技资讯推荐

网友关注

Copyright 2023-2024 - www.tftnews.com All Rights Reserved