以下是一个基本的Nexus 9000系列交换机的DHCP配置示例:

  1. 首先进入全局配置模式:
switch# configure terminal
  1. 然后创建一个DHCP池:
switch(config)# ip dhcp pool pool_name
  1. 接下来指定DHCP池的网段和子网掩码:
switch(dhcp-config)# network network_address subnet_mask
  1. 然后指定默认网关:
switch(dhcp-config)# default-router default_gateway
  1. 然后指定DNS服务器:
switch(dhcp-config)# dns-server dns_server_address
  1. 最后指定租约时间:
switch(dhcp-config)# lease 0 12 0

这将设置租约时间为12小时。

  1. 退出DHCP池配置:
switch(dhcp-config)# exit
  1. 最后启用DHCP服务:
switch(config)# feature dhcp

完成配置后,保存并退出:

switch(config)# exit
switch# copy running-config startup-config
n9k的 dhcp配置

原文地址: https://www.cveoy.top/t/topic/b1WK 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录