n9k的 dhcp配置
以下是一个基本的Nexus 9000系列交换机的DHCP配置示例:
- 首先进入全局配置模式:
switch# configure terminal
- 然后创建一个DHCP池:
switch(config)# ip dhcp pool pool_name
- 接下来指定DHCP池的网段和子网掩码:
switch(dhcp-config)# network network_address subnet_mask
- 然后指定默认网关:
switch(dhcp-config)# default-router default_gateway
- 然后指定DNS服务器:
switch(dhcp-config)# dns-server dns_server_address
- 最后指定租约时间:
switch(dhcp-config)# lease 0 12 0
这将设置租约时间为12小时。
- 退出DHCP池配置:
switch(dhcp-config)# exit
- 最后启用DHCP服务:
switch(config)# feature dhcp
完成配置后,保存并退出:
switch(config)# exit
switch# copy running-config startup-config
原文地址: https://www.cveoy.top/t/topic/b1WK 著作权归作者所有。请勿转载和采集!