[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.2.1 24
[r1-GigabitEthernet0/0/0]int g0/0/0.1
[r1-GigabitEthernet0/0/0.1]ip add 192.168.1.1 24
[r1-GigabitEthernet0/0/0.1]q
[r1]dhcp en
[r1]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[r1]ip pool v345
Info: It’s successful to create an IP address pool.
[r1-ip-pool-v345]net 192.168.2.0 mask 24
[r1-ip-pool-v345]ga
[r1-ip-pool-v345]gateway-list 192.168.2.1
[r1-ip-pool-v345]dns
[r1-ip-pool-v345]dns-list 114.114.114.114 8.8.8.8
[r1-ip-pool-v345]q
[r1]int g0/0/0.1
[r1-GigabitEthernet0/0/0.1]do
[r1-GigabitEthernet0/0/0.1]dot1q ter vid 2
[r1-GigabitEthernet0/0/0.1]arp br
[r1-GigabitEthernet0/0/0.1]arp broadcast en
[r1-GigabitEthernet0/0/0.1]arp broadcast enable
[r1-GigabitEthernet0/0/0.1]q
[r1]ip pool v2
Info: It’s successful to create an IP address pool.
[r1-ip-pool-v2]net 192.168.1.0 mask 24
[r1-ip-pool-v2]ga
[r1-ip-pool-v2]gateway-list 192.168.1.1
[r1-ip-pool-v2]dn
[r1-ip-pool-v2]dns-list 114.114.114.114 8.8.8.8
[r1-ip-pool-v2]q
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]dh s g
[r1-GigabitEthernet0/0/0]int g0/0/0.1
[r1-GigabitEthernet0/0/0.1]dh s g