我的关于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
#