#
dhcp enable
#
interface GigabitEthernet0/0/2
ip address 192.168.1.254 255.255.255.0
dhcp select interface
dhcp server excluded-ip-address 192.168.1.252
dhcp server lease day 1 hour 12 minute 0
dhcp server dns-list 192.168.1.1
#
#
sysname R2
#
#
dhcp enable
#
ip pool dhcp
gateway-list 192.168.2.254
network 192.168.2.0 mask 255.255.255.0
#
interface GigabitEthernet0/0/2
ip address 192.168.2.254 255.255.255.0
dhcp select global
#
注释:
1、dis ip pool