H3C交换机DHCP分配地址与接口ID绑定
2023-06-13 09:17:25 时间
如图所示,交换机S1作为dhcp服务器,S2/S3/S4为dhcp客户端,
服务器分配的地址为10.1.1.0/24网段,其接口下的设备获取的地址为与该接口的id值相同,即S2地址为10.1.1.1,S3地址为10.1.1.4.S4地址为10.1.1.10.
2配置步骤
dhcp enable
dhcp snooping enable
#
dhcp class port1 //配置port1规则
if-match rule 1 option 82 hex 706f727431 offset 2 length 5
dhcp class port4
if-match rule 1 option 82 hex 706f727434 offset 2 length 5
dhcp class port8
if-match rule 1 option 82 hex 706f727438 offset 2 length 5
dhcp class port10
if-match rule 1 option 82 hex 706f72743130 offset 2 length 6
#
dhcp server ip-pool 10
gateway-list 10.1.1.254
network 10.1.1.0 mask 255.255.255.0
class port1 range 10.1.1.1 10.1.1.1
class port4 range 10.1.1.4 10.1.1.4
class port8 range 10.1.1.8 10.1.1.8
class port10 range 10.1.1.10 10.1.1.10
#
interface GigabitEthernet1/0/1 //接口需要获取dhcp snooping信息
dhcp snooping information enable
dhcp snooping information circuit-id string port1 //绑定dhcp class信息
#
interface GigabitEthernet1/0/4
dhcp snooping information enable
dhcp snooping information circuit-id string port4
#
interface GigabitEthernet1/0/8
dhcp snooping information enable
dhcp snooping information circuit-id string port8
#
interface GigabitEthernet1/0/10
dhcp snooping information enable
dhcp snooping information circuit-id string port10
#
结果
相关文章
- 如何运用LoadRunner进行http接口测试[通俗易懂]
- JLink接口的SWD接法
- jmeter进阶-webservice接口「建议收藏」
- 【说站】【无BUG微信去水印小程序】全网首发完美可运营美化版+送免费接口
- UE5 中用 Python 接口创建 Level Sequence 与设置 TriggerEvent
- 纯 Nginx 打造 IP 地址查询接口
- 测试之路 pytest接口自动化框架-yaml数据驱动
- 如何设计一个安全的对外接口,老司机总结了这几点
- Python 封装SNMP调用接口
- 《上海悠悠接口自动化平台》体验地址与使用教程
- 接口测试|HttpRunner环境变量与跨文件输出传递变量
- 他离开Neuralink后,创办了这样一家脑机接口公司
- NeurIPS'22|Hinton团队开源:用一个统一的接口处理四大视觉任务
- 瞧瞧大佬写的接口,那叫一个优雅
- IP 地址免费查询接口收集
- ChatGPT|用ChatGPT聊GPT(内有体验地址和接口)
- 接口调用的安全问题详解程序员
- springboot+async异步接口实现和调用详解编程语言
- Java中类继承、接口实现的一些细节(长期更新)详解编程语言
- MySQL的API接口:快速、便捷的数据库访问方式(mysql的api接口)
- API接口实现MySQL数据库连接(api接口连接MySQL)
- 管理接口数据存储到Redis中(接口数据放到redis)
- GooglePR查询接口checksum新算法
- android触屏的震动响应接口调用方法