R0配置:
ip dhcp pool 2
network 192.168.2.0 255.255.255.0
default-router 192.168.2.2
dns-server 8.8.8.8
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
ip route 192.168.2.0 255.255.255.0 192.168.1.2
R1配置:
interface FastEthernet0/0
ip address 192.168.1.2 255.255.255.0
no shutdown
interface FastEthernet0/1
ip address 192.168.2.2 255.255.255.0
no shutdown
ip helper-address 192.168.1.1