[Huawei]dhcp snooping enable //全局使能DHCP Snooping功能
[Huawei]dhcp snooping enable vlan 10 //使能DHCP Snooping功能
[Huawei-vlan10]dhcp snooping enable
[Huawei-GigabitEthernet0/0/1]dhcp snooping enable
[Huawei-GigabitEthernet0/0/1]dhcp snooping trusted //配置接口为“信任”接口
[Huawei-vlan10]dhcp snooping trusted interface g0/0/1
[Huawei]undo dhcp snooping user-transfer enable //去使能DHCP Snooping用户位置迁移功能
[Huawei]arp dhcp-snooping-detect enable //使能ARP与DHCP Snooping的联动功能
[Huawei]dhcp snooping user-offline remove mac-address //使能当DHCP Snooping动态表项清除时移除对应用户的MAC表项功能
[Huawei]dhcp snooping check dhcp-giaddr enable vlan 10 //使能检测DHCP Request报文中GIADDR字段是否非零的功能
[Huawei-vlan10]dhcp snooping check dhcp-giaddr enable
[Huawei]display dhcp snooping configuration //查看DHCP Snooping的配置信息
[Huawei]display dhcp snooping //查看DHCP Snooping的运行信息
[Huawei]display dhcp snooping user-bind all //查看DHCP Snooping绑定表信息
[Huawei]dhcp server detect //使能DHCP Server探测功能
[Huawei]dhcp snooping check dhcp-rate enable //使能对DHCP报文上送DHCP报文处理单元的速率进行检测功能
[Huawei]dhcp snooping check dhcp-rate 100 //配置DHCP报文上送DHCP报文处理单元的最大允许速率,缺省为100pps
[Huawei-vlan10]dhcp snooping check dhcp-rate enable
[Huawei-vlan10]dhcp snooping check dhcp-rate 100
[Huawei-GigabitEthernet0/0/1]dhcp snooping check dhcp-rate enable
[Huawei-GigabitEthernet0/0/1]dhcp snooping check dhcp-rate 100
[Huawei]dhcp snooping alarm dhcp-rate enable //使能当丢弃的DHCP报文数达到告警阈值时的告警功能
[Huawei]dhcp snooping alarm dhcp-rate threshold 100 //配置接口下被丢弃的DHCP报文的告警阈值,缺省为100packets
[Huawei-GigabitEthernet0/0/1]dhcp snooping alarm dhcp-rate enable
[Huawei-GigabitEthernet0/0/1]dhcp snooping alarm dhcp-rate threshold 100
[Huawei]dhcp snooping check dhcp-request enable vlan 10 //开启对从指定VLAN内上送的DHCP报文进行绑定表匹配检查的功能
[Huawei]dhcp snooping check dhcp-chaddr enable vlan 10 //开启检测DHCP Request报文帧头源MAC地址与CHADDR字段是否相同的功能
[Huawei-vlan10]dhcp snooping check dhcp-request enable
[Huawei-vlan10]dhcp snooping check dhcp-chaddr enable
[Huawei]dhcp snooping max-user-number 1024 vlan 10 //配置设备允许学习的DHCP Snooping绑定表项的最大个数
[Huawei-vlan10]dhcp snooping max-user-number 1024 //配置接口允许学习的DHCP Snooping绑定表项的最大个数
[Huawei]dhcp snooping check dhcp-chaddr enable vlan 10 //使能检测DHCP Request报文帧头MAC与DHCP数据区中CHADDR字段是否一致功能
[Huawei-vlan10]dhcp snooping check dhcp-chaddr enable
[Huawei-vlan10]dhcp option82 insert enable interface g0/0/1 //使能在DHCP报文中添加Option82选项功能
[Huawei-vlan10]dhcp option82 rebuild enable interface g0/0/1
[Huawei-GigabitEthernet0/0/1]dhcp option82 insert enable
[Huawei-GigabitEthernet0/0/1]dhcp option82 inse enable //使能在DHCP报文中添加Option82选项功能
[Huawei-GigabitEthernet0/0/1]dhcp option82 rebuild enable
[Huawei]dhcp option82 format default //配置在DHCP报文中添加的Option82选项的格式
[Huawei]dhcp option82 format common
[Huawei]dhcp option82 format extend
[Huawei]dhcp option82 format user-defined a1
[Huawei-GigabitEthernet0/0/1]dhcp option82 format default
[Huawei-GigabitEthernet0/0/1]dhcp option82 format common
[Huawei-GigabitEthernet0/0/1]dhcp option82 format extend
[Huawei-GigabitEthernet0/0/1]dhcp option82 format user-defined a1
[Huawei]dhcp option82 vendor-specific format vendor-sub-option 1 ascii s1 //配置在DHCP报文中的Option82选项中插入Sub9子选项
[Huawei]display dhcp option82 configuration //查看DHCP Option82的配置信息
reset dhcp snooping statistics global //清除全局的报文丢弃统计计数
reset dhcp snooping statistics interface g0/0/1 //清除接口下的报文丢弃统计计数
reset dhcp snooping statistics vlan 10 //清除VLAN下的报文丢弃统计计数
reset dhcp snooping user-bind //清除DHCP Snooping绑定表
[Huawei]dhcp snooping user-bind autosave a1 //使能DHCP Snooping绑定表的本地自动备份功能文章来源地址https://www.toymoban.com/news/detail-472038.html
文章来源:https://www.toymoban.com/news/detail-472038.html
到了这里,关于华为设备DHCP snooping配置命令的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!