交换机DCHP配置:
!
service dhcp
!
ip dhcp conflict ping-detection enable
ip dhcp excluded-address 192.168.100.1 192.168.100.10
!
!
ip dhcp pool vlan100
network-address 192.168.100.0 255.255.255.0
default-router 192.168.100.254
dns-server 114.114.114.114
!
接入交换机配置:
!
ip dhcp snooping enable
!
!
Interface Ethernet1/0/24
switchport mode trunk
ip dhcp snooping trust
!