步骤(针对需求粘贴关键性代码(show running的结果)和相关截图):

1、

RI配置:

Router >en

Router#configuration terminal

Router(config)#hostname R1

R2配置:

Router >en

Router#configuration terminal

Router(config)#hostname R2

 

R3配置:

Router >en

Router#configuration terminal

Router(config)#hostname R3

 

2、

R1配置:

R1(config)#interface GigabitEthernet 0/0

R1(config-if)#ip address 10.10.1.254 255.192.0.0

R1(config-if)#ip helper-address 20.20.16.253

R1(config)#interface GigabitEthernet 0/1

R1(config-if)#ip address 192.168.1.1 255.255.255.0

 

R1(config)#ip route 20.20.16.0 255.255.240.0 192.168.1.2

R1 (config)# ip route 30.30.30.28 255.255.255.252 192.168.2.2

R1(config)#ip route 192.168.2.0 255.255.255.0 192.168.1.2


 

R3配置:

R3(config)#interface GigabitEthernet 0/0

R3(config-if)#ip address 192.168.2.2 255.255.255.0

R3(config)#interface GigabitEthernet 0/1

R3(config-if)#ip address 30.30.30.30 255.255.255.252

R3(config-if)#ip helper-address 20.20.16.253

R3(config)#ip route 10.0.0.0 255.192.0.0 192.168.2.1

R3(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.1

R3(config)#ip route 20.20.16.0 255.255.240.0 192.168.2.1

服务器配置:

20.20.16.253 IP地址

255.255.240.0  子网掩码

20.20.16.254网关

 

DHCP地址池配置:

10.10.10.10/10

10.0.0.0网络地址

10.10.1.254 网关

7.7.7.7  DNS

255.192.0.0子网掩码

20.20.20.20/20

20.20.16.0  网络地址

20.20.16.254网关

255.255.240.0 子网掩码

8.8.8.8  DNS

30.30.30.30/30

30.30.30.28网络地址

30.30.30.30网关

255.255.255.252子网掩码

9.9.9.9  DNS

自动获取的主机ip地址:

PC1:10.0.0.1  255.192.0.0 10.10.1.254

PC4:20.20.16.1 255.255.240.0 20.20.16.254

PC5:30.30.30.29 255.255.255.252 30.30.30.30

 

3.R2配置:

  R2(config)#interface GigabitEthernet 0/0

  R2(config-if)#ip address 192.168.1.2 255.255.255.0

  R2(config)#interface GigabitEthernet 0/1

  R2(config-if)#ip address 192.168.2.1 255.255.255.0

  R2(config)#interface GigabitEthernet 0/2

  R2(config-if)#ip address 20.20.16.254 255.255.240.0

  R2(config)#ip route 10.0.0.0 255.192.0.0 192.168.1.1

  R2(config)#ip route 30.30.30.28 255.255.255.252 192.168.2.2