DHCP的配置

实验一 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机能够自动从路

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值