全网可达
[r1]interface g0/0/1
[r1-GigabitEthernet0/0/1]ip ad
[r1-GigabitEthernet0/0/1]ip address 12.1.1.1 24
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip ad
[r2-GigabitEthernet0/0/0]ip address 12.1.1.2 24
[r2]interface g0/0/1
[r2-GigabitEthernet0/0/1]ip ad
[r2-GigabitEthernet0/0/1]ip address 23.1.1.1 24
[r2]interface g0/0/2
[r2-GigabitEthernet0/0/2]ip ad
[r2-GigabitEthernet0/0/2]ip address 32.1.1.1 24
[r3]interface g0/0/0
[r3-GigabitEthernet0/0/0]ip ad
[r3-GigabitEthernet0/0/0]ip address 23.1.1.2 24
[r3]interface g0/0/1
[r3-GigabitEthernet0/0/1]ip ad
[r3-GigabitEthernet0/0/1]ip address 32.1.1.2 24
[r4]interface g0/0/0
[r4-GigabitEthernet0/0/0]ip ad
[r4-GigabitEthernet0/0/0]ip address 34.1.1.2 24
[r4]interface g0/0/2
[r4-GigabitEthernet0/0/2]ip ad
[r4-GigabitEthernet0/0/2]ip address 46.1.1.1 24
pc1和pc2获得指定地址
[dhcp]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[dhcp]ip poo
[dhcp]ip pool 1
Info: It's successful to create an IP address pool.
[dhcp-ip-pool-1]net
[dhcp-ip-pool-1]netbios-type
[dhcp-ip-pool-1]network 172.16.1.0 m
[dhcp-ip-pool-1]network 172.16.1.0 mask 24
[dhcp-ip-pool-1]ga
[dhcp-ip-pool-1]gateway-list 172.16.1.1
[dhcp-ip-pool-1]dns
[dhcp-ip-pool-1]dns-list 8.8.8.8 114.114.114.114
[dhcp-ip-pool-1]st
[dhcp-ip-pool-1]static-bind ip
[dhcp-ip-pool-1]static-bind ip-address 172.16.1.11 ma
[dhcp-ip-pool-1]static-bind ip-address 172.16.1.11 mac-address 5489-9817-0CD5
[dhcp-ip-pool-1]st
[dhcp-ip-pool-1]static-bind ip
[dhcp-ip-pool-1]static-bind ip-address 172.16.1.13 ma
[dhcp-ip-pool-1]static-bind ip-address 172.16.1.13 mac-address 5489-9877-178B
[dhcp-ip-pool-1]qui
[dhcp-ip-pool-1]quit
[dhcp]in
[dhcp]info-center
[dhcp]interface g0/0/0
[dhcp-GigabitEthernet0/0/0]dhcp se
[dhcp-GigabitEthernet0/0/0]dhcp select g
[dhcp-GigabitEthernet0/0/0]dhcp select global
[dhcp-GigabitEthernet0/0/0]
PC>ipconfig
Link local IPv6 address...........: fe8