華為路由器上配置基於介面的DHCP服務

2021-09-08 21:21:47 字數 786 閱讀 5926

如上圖所示配置路由器ar4介面g0/0/0的ip位址為192.168.1.254子網掩碼 為255.255.255.0

客戶端pc2為dhcp方式獲取ip位址。

在路由器ar4上做如下配置:

sys[huawei]sysname ar4

[ar4]

[ar4]dhcp en

[ar4]int gig 0/0/0

[ar4-gigabitethernet0/0/0]ip add 192.168.1.254 255.255.255.0 //配置g0/0/0介面ip

[ar4-gigabitethernet0/0/0]dhcp select inte***ce //選擇介面的位址池給dhcp客戶端使用

[ar4-gigabitethernet0/0/0]dhcp server dns-list 1.1.1.1 //dns伺服器位址

[ar4-gigabitethernet0/0/0]dhcp server lease day 2 //有效期

[ar4-gigabitethernet0/0/0]dhcp server excluded-ip-address 192.168.1.240 192.1

68.1.252 //在位址池中排除192.168.1.240到192.168.1.252這段位址

華為路由器介面如何區分 華為路由器介面介紹

e1 f和t1 f介面 e1 f和t1 f介面是指部分 fractional 化e1 t1介面,它們分別是ce1 pri和ct1 pri介面的簡化版本。在e1 t1接入應用中,如果不需要劃分出多個通道組 channel group 或不需要isdn pri功能,使用ce1 pri或ct1 pri介面...

華為路由器學習指南 基於介面位址

r1配置 inte ce vlanif10 ip address 192.168.1.1 255.255.255.128 dhcp select inte ce dhcp server excluded ip address 192.168.1.2 dhcp server lease day 2 h...

華為策略路由加等價路由 華為路由器配置路由策略

如圖1所示,某公司的部門a和部門b相距較遠,router 1和router 6分別作為這兩個部門的出口裝置,as 100內部使用ospf作為igp。現要求 通過部署bgp,使部門a和部門b可以通訊。通過配置路由策略,將router 2 router 3 router 4鏈路作為主鏈路,負責 rout...