我的关于H3C基于二三层交换DHCP Server DHCP Snooping并Trunk连接的实验

 

 核心交换机:建vlan 配vlanif 配pool


<HeXin>dis cur
#
dhcp enable
#
ip pool vlan10pool
gateway-list 192.168.10.254
network 192.168.10.0 mask 255.255.255.0
dns-list 202.99.166.4
#
ip pool vlan20pool
gateway-list 192.168.20.254
network 192.168.20.0 mask 255.255.255.0
dns-list 202.99.166.4
#
interface Vlanif1
ip address 192.168.1.1 255.255.255.0
#
interface Vlanif10
ip address 192.168.10.254 255.255.255.0
dhcp select global
#
interface Vlanif20
ip address 192.168.20.254 255.255.255.0
dhcp select global
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/10
port link-type trunk
port trunk allow-pass vlan 10 20
#

接入交换机

sysname JieRu
#
vlan batch 10 20
#
dhcp enable
#
dhcp snooping enable
#
interface Vlanif1
ip address 192.168.1.2 255.255.255.0
#
interface Ethernet0/0/1
port link-type access
port default vlan 10
#
interface Ethernet0/0/2
port link-type access
port default vlan 20
#
interface Ethernet0/0/10
port link-type trunk
port trunk allow-pass vlan 10 20
dhcp snooping trusted
#

posted @   techNote  阅读(412)  评论(0编辑  收藏  举报
(评论功能已被禁用)
相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 25岁的心里话
· 按钮权限的设计及实现
点击右上角即可分享
微信分享提示