本帖最后由 乾颐堂 于 2022-9-22 16:48 编辑
DHCP
dhcp可以自动分配给终端ip地址、子网掩码、网关和dns服务器。
实验
[dhcp-server]dhcp enable \\开启dhcp功能
[dhcp-server]ip pool OA \\创建ip池OA
[dhcp-server-ip-pool-OA]gateway-list 192.168.1.254 \\配置网关地址
[dhcp-server-ip-pool-OA]network 192.168.1.0 mask 24 \\配置全局地址池下分配的网段地址
[dhcp-server-ip-pool-OA]lease day 1 hour 1 minute 1 \\配置地址租期为1天1小时1分钟
[dhcp-server-ip-pool-OA]dns-list 8.8.8.8 \\配置dns服务器地址
[dhcp-server-ip-pool-OA]int g0/0/0
[dhcp-server-GigabitEthernet0/0/0]ip address 192.168.1.254 24
[dhcp-server-GigabitEthernet0/0/0]dhcp select global \\开启接口采用全局地址池的dhcp功能
[dhcp-server-GigabitEthernet0/0/0]int g0/0/1
[dhcp-server-GigabitEthernet0/0/1]ip address 192.168.2.254 24
[dhcp-server-GigabitEthernet0/0/1]dhcp select interface \\开启接口采用接口地址池的dhcp功能
[dhcp-server-GigabitEthernet0/0/1]dhcp server static-bind ip-address 192.168.2.3 mac-address 5489-98F4-21C6 \\配置静态绑定,使192.168.2.3与pc3的mac地址绑定
获取更多资料请加QQ群:3378266435
|