MGRE综合实验
实验步骤:
1.先写DHCP服务(动态主机配置协议)
私有网段AR1-4对应内网的不冲突设计
R1-R4的DHCP和网关配置,写完代码,打开PC基础配置将静态改为DHCP
[r1]dhcp enable
[r1]ip pool 1
[r1-ip-pool-1]network 192.168.1.0 mask 24
[r1-ip-pool-1]gateway-list 192.168.1.254
[r1-ip-pool-1]dns-list 8.8.8.8
[r1-ip-pool-1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.254 24
[r1-GigabitEthernet0/0/0]dhcp select global
[r2]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[r2]ip pool 2
Info: It’s successful to create an IP address pool.
[r2-ip-pool-2]network 192.168.2.0 mask 24
[r2-ip-pool-2]dns-list 8.8.8.8
[r2-ip-pool-2]gateway-list 192.168.2.254
[r2-ip-pool-2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip address 192.168.2.254 24
[r2-GigabitEthernet0/0/0]dhcp select global
[r3]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[r3]ip pool 3
Info: It’s successful to create an IP address pool.
[r3-ip-pool-3]network 192.168.3.0 mask 24
[r3-ip-pool-3]dns-list 8.8.8.8
[r3-ip-pool-3]gateway-l