ensp配置dhcp

本文档详细介绍了如何配置路由器R1的两个接口g0/0/0和g0/0/1为DHCP服务,创建并设置两个地址池xx和zz,分配192.168.1.0和172.168.1.0子网的IP地址,并配置了默认网关和DNS服务器。同时,还设置了路由器的AAA认证,为用户提供admin和guest账号,并对密码进行了加密。
摘要由CSDN通过智能技术生成

对R1进行配置


[dhcp]interface g0/0/0
[dhcp-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[dhcp]interface g0/0/1
[dhcp-GigabitEthernet0/0/0]ip address 172.168.1.1 24

开启dhcp服务

[dhcp]dhcp enable

创建地址池

[dhcp]ip pool xx
Info: It's successful to create an IP address pool.
[dhcp-ip-pool-xx]network 192.168.1.0 mask 255.255.255.0
[dhcp-ip-pool-xx]gateway-list 192.168.1.1
[dhcp-ip-pool-xx]dns-list 8.8.8.8 114.114.114.114
[dhcp]ip pool zz
Info: It's successful to create an IP address pool.
[dhcp-ip-pool-zz]network 172.168.1.0 mask 255.255.255.0
[dhcp-ip-pool-zz]gateway-list 172.168.1.1
[dhcp-ip-pool-zz]dns-list 8.8.8.8 114.114.114.114

调用

  1. [dhcp]interface g0/0/0

  2. [dhcp-GigabitEthernet0/0/0]dhcp select globa

  3. [dhcp]interface g0/0/1

  4. [dhcp-GigabitEthernet0/0/1]dhcp select global

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值