www国产亚洲精品久久小说,在线 | 一区二区三区四区,综合成人亚洲网友偷自拍,中文字幕人妻第一区,最近中文字幕mv

微思網(wǎng)絡(luò)
全國免費電話:400-881-4699
當前位置:首頁>微思動態(tài) > >詳情
全國熱線電話 400-881-4699

在線留言

配置DHCP服務(wù)器實現(xiàn)為動態(tài)客戶端和靜態(tài)客戶端分配不同網(wǎng)絡(luò)參數(shù)

發(fā)布作者:微思網(wǎng)絡(luò)   發(fā)布時間:2024-03-01   瀏覽量:0

組網(wǎng)需求

圖1所示,Router作為企業(yè)出口網(wǎng)關(guān),PC和IP Phone為某辦公區(qū)辦公設(shè)備。為了方便統(tǒng)一管理,降低手工配置成本,管理員希望網(wǎng)絡(luò)主機通過DHCP協(xié)議動態(tài)獲取IP地址。其中,PC為值班室固定終端,需要永久在線,且需要通過域名訪問網(wǎng)絡(luò)設(shè)備,因此,除了動態(tài)獲取IP地址,還需要地址的租期為無限長,且需要獲取DNS服務(wù)器信息;IP Phone使用固定IP地址10.1.1.4/24,MAC地址為00e0-fc96-e4c0,除了獲取IP地址,還需要動態(tài)獲取啟動配置文件,且啟動配置文件configuration.ini存放在FTP文件服務(wù)器上。IP Phone與FTP文件服務(wù)器路由可達。PC和IP Phone的網(wǎng)關(guān)地址為10.1.1.1/24。

圖1 配置DHCP服務(wù)器實現(xiàn)為動態(tài)客戶端和靜態(tài)客戶端分配不同網(wǎng)絡(luò)參數(shù)組網(wǎng)圖
47af471e3bbe66b15850916c2cced50.png


配置思路

  • 在Router上創(chuàng)建DHCP Option模板,并在DHCP Option模板視圖下為靜態(tài)客戶端IP Phone配置啟動配置文件和獲取啟動配置文件的網(wǎng)絡(luò)服務(wù)器的地址。

  • 在Router上創(chuàng)建全局地址池,并在全局地址池視圖下為動態(tài)客戶端PC配置租期和DNS服務(wù)器信息;為靜態(tài)客戶端IP Phone配置IP地址與MAC地址的綁定并綁定DHCP Option模板,從而實現(xiàn)為動態(tài)客戶端和靜態(tài)客戶端分配不同的網(wǎng)絡(luò)參數(shù)。




操作步驟

1、配置接口IP地址

[Huawei] sysname Router
[Router] interface gigabitethernet 1/0/0
[Router-GigabitEthernet1/0/0] ip address 10.1.1.1 24
[Router-GigabitEthernet1/0/0] quit

2、使能DHCP服務(wù)

[Router] dhcp enable

3、創(chuàng)建DHCP Option模板并在DHCP Option模板視圖下配置需要為IP Phone分配的啟動配置文件和獲取啟動配置文件的文件服務(wù)器地址

[Router] dhcp option template template1
[Router-dhcp-option-template-template1] gateway-list 10.1.1.1
[Router-dhcp-option-template-template1] bootfile configuration.ini 
[Router-dhcp-option-template-template1] next-server 10.1.1.3
[Router-dhcp-option-template-template1] quit

4、創(chuàng)建地址池并在地址池視圖下為PC配置網(wǎng)關(guān)地址、租期和DNS服務(wù)器地址;為IP Phone配置分配固定IP地址和啟動配置文件信息

[Router] ip pool pool1
[Router-ip-pool-pool1] network 10.1.1.0 mask 255.255.255.0
[Router-ip-pool-pool1] dns-list 10.1.1.2
[Router-ip-pool-pool1] gateway-list 10.1.1.1
[Router-ip-pool-pool1] excluded-ip-address 10.1.1.2 10.1.1.3
[Router-ip-pool-pool1] lease unlimited
[Router-ip-pool-pool1] static-bind ip-address 10.1.1.4 mac-address 00e0-fc96-e4c0 option-template template1 
[Router-ip-pool-pool1] quit

5、在接口下使能DHCP服務(wù)器

[Router] interface gigabitethernet 1/0/0
[Router-GigabitEthernet1/0/0] dhcp select global
[Router-GigabitEthernet1/0/0] quit

6、驗證配置結(jié)果

在Router上使用display ip pool name pool1命令用來查看IP地址池配置情況

[Router] display ip pool name pool1
  Pool-name        : pool1                                                        
  Pool-No          : 0                                                            
  Lease            : unlimited                                                    
  Domain-name      : -                                                            
  DNS-server0      : 10.1.1.2                                                     
  NBNS-server0     : -                                                            
  Netbios-type     : -                                                            
  Position         : Local           Status           : Unlocked                  
  Gateway-0        : 10.1.1.1                                                     
  Network          : 10.1.1.0                                          
  Mask             : 255.255.255.0                                                
  VPN instance     : --
  Logging          : Disable                                                    
  Conflicted address recycle interval: 1 Days 0 Hours 0 Minutes                 
  Address Statistic: Total       :253       Used        :4                      
                               Idle        :247       Expired     :0                      
                               Conflict    :0         Disable     :2                                                                                                    
 -------------------------------------------------------------------------------
  Network section                                                               
         Start           End       Total    Used Idle(Expired) Conflict Disabled
 -------------------------------------------------------------------------------
     192.168.1.1   192.168.1.254     253       4        247(0)       0     2    
 -------------------------------------------------------------------------------

在Router上使用display dhcp option template name template1命令用來查看DHCP Option模板的配置情況。

[Router] display dhcp option template name template1
 -------------------------------------------------------------------------------
  Template-Name    : template1                                                    
  Template-No      : 0                                                            
  Next-server      : 10.1.1.3                                                     
  Domain-name      : -                                                            
  DNS-server0      : -                                                            
  NBNS-server0     : -                                                            
  Netbios-type     : -                                                            
  Gateway-0        : 10.1.1.1                                                     
  Bootfile         : configuration.ini 



配置文件

Router的配置文件

sysname Router
#
dhcp enable
#                                                                               
dhcp option template template1                                                  
 gateway-list 10.1.1.1                                                          
 next-server 10.1.1.3                                                           
 bootfile configuration.ini  
#
ip pool pool1
 gateway-list 10.1.1.1                                                          
 network 10.1.1.0 mask 255.255.255.0                                            
 excluded-ip-address 10.1.1.2 10.1.1.3                                          
 static-bind ip-address 10.1.1.4 mac-address 00e0-fc96-e4c0 option-template template1                                                                          
 lease unlimited                                                                
 dns-list 10.1.1.2        
#
interface GigabitEthernet1/0/0
 ip address 10.1.1.1 255.255.255.0
 dhcp select global
#
return


什么是DHCP?

?
返回頂部