多平台统一管理软件接口,如何实现多平台统一管理软件接口
288
2022-09-26
DHCP服务器和DHCP中继的配置(什么是DHCP中继)
AR1[AR1]dhcp enable //全局开启DHCP服务[AR1]ip pool p1 //创建地址池并命名[AR1-ip-pool-p1]network 192.168.1.0 mask 255.255.255.0 //分配终端要获取的网段信息[AR1-ip-pool-p1]gateway-list 192.168.1.254 //配置下发的网关地址[AR1-ip-pool-p1]dns-list 8.8.8.8 //配置下发的DNS地址[AR1-ip-pool-p1]lease day 3 //配置分配的租期时间[AR1]interface GigabitEthernet0/0/0 //进入g0/0/0接口[AR1-GigabitEthernet0/0/0]ip address 192.168.1.254 24 //接口的地址就是网关地址[AR1-GigabitEthernet0/0/0]dhcp select global //在接口开启DHCP功能
基于接口的DHCPAR1[Huawei]dhcp enable //全局开启DHCP服务[AR1]interface GigabitEthernet0/0/0 //进入g0/0/0接口[Huawei-GigabitEthernet0/0/0]ip address 192.168.2.254 24 //配置网关地址(相当于非配了网段)[Huawei-GigabitEthernet0/0/0]dhcp select interface //接口下开启DHCP功能[Huawei-GigabitEthernet0/0/0]dhcp server dns-list 4.4.4.4 //配置DNS地址[Huawei-GigabitEthernet0/0/0]dhcp server lease day 6 //配置租期时间[Huawei-GigabitEthernet0/0/0]dhcp server excluded-ip-address 192.168.2.200 192.168.2.253 //配置保留的IP地址范围
AR1 DHCP服务器[Huawei]dhcp enable //全局开启DHCP服务[AR1]ip pool 1314 //创建地址池[AR1-ip-pool-1314]network 192.168.10.0 mask 255.255.255.0 //分配终端要获取的网段信息[AR1-ip-pool-1314]gateway-list 192.168.10.254 //配置下发的网关地址[AR1-ip-pool-1314]dns-list 1.3.1.4 //配置下发的DNS地址[AR1-ip-pool-1314]excluded-ip-address 192.168.10.100 192.168.10.100 设置保留地址[AR1-ip-pool-1314]lease day 3 //配置分配的租期时间[AR1]interface GigabitEthernet 0/0/0 //进入g0/0/0接口[AR1]ip address 192.168.20.1 255.255.255.0 //配置IP地址[AR1] dhcp select global //在接口开启DHCP功能 [AR1]ip route-static 192.168.10.0 24 192.168.20.2 吓一跳
AR2 DHCP中继[AR2]dhcp enable //全局开启DHCP服务[AR2]interface GigabitEthernet 0/0/1 //进入接口g0/0/1[AR2-GigabitEthernet0/0/1]ip address 192.168.20.2 24 配置IP地址[AR2]interface GigabitEthernet0/0/0 //进入接口g0/0/0[AR2-GigabitEthernet0/0/0]ip address 192.168.10.254 24 //配置IP地址的网关[AR2-GigabitEthernet0/0/0]dhcp select relay //进入接口上应用DHCP中继功能[AR2-GigabitEthernet0/0/0]dhcp relay server-ip 192.168.20.1 //指向DHCP服务器的IP地址
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~