实验一 DHCP的基本配置
R0上配置
Router>enable
Router#configure terminal
Router(config)#hostname R0
R0(config)#interface fastEthernet 0/0
R0(config-if)#ip address 172.16.1.1 255.255.255.0
R0(config-if)#exit
R0(config)#interface fastEthernet 0/0
R0(config-if)#no shutdown
R0(config-if)#exit
R0(config)#ip dhcp excluded-address 172.16.1.1
R0(config)#ip dhcp pool DHCP-POOL
R0(dhcp-config)#network 172.16.1.0 255.255.255.0
R0(dhcp-config)#default-router 172.16.1.1
R0(dhcp-config)#dns-server 202.206.100.36
实验二 DHCP中继的基本配置
Router>enable
Router#configure terminal
Router(config)#hostname R2
R2(config)#interface serial 2/0
R2(config-if)#ip address 192.168.1.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip address 172.16.1.1 255.255.255.0
R1(config-if)#exit
R1(config)#ip route 172.16.1.0 255.255.255.0 192.168.1.2
R1(config)#ip dhcp excluded-address 172.16.1.1
R1(config)#ip dhcp pool DHCP-POOL
R1(dhcp-config)#network 172.16.1.0 255.255.255.0
R1(dhcp-config)#default-router 172.16.1.1
R1(dhcp-config)#dns-server 202.206.100.36
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip helper-address 192.168.1.1
实验三 三层交换机不同VLAN的DHCP中继配置
本实验模拟公司网络场景,该公司有市场部和技术部两大部门,分别划分到VLAN 2和VLAN 3中,要求市场部和技术部员工的PC机能够自动从路