display current-configuration
#
sysname H3C
#
radius scheme system
#
domain system
#
#
#
interface Vlan-interface10
ip address 10.10.19.1 255.255.255.0
#
interface Vlan-interface20
ip address 10.10.20.1 255.255.255.0
#
interface Aux1/0/0
#
配置H3C的dhcp功能:
dhcp-server 0 ip 172.180.15.1
dhcp-server 1 ip 172.168.17.0
进入vlan中,配置dhcp服务:
interface Vlan-interface 3
dhcp-server 0
Invalid DHCP server group. The relay ip and server ip are on the same network!
interface Vlan-interface 5
dhcp-server 1
Invalid DHCP server group. The relay ip and server ip are on the same network!
H3C交换机DHCP配置
1.dhcp配置
dhcp enable:开启dhcp功能
dhcp server forbidden-ip 10.1.130.2 10.1.130.10----排除dhcp的一些地址
dhcp server forbidden-ip 10.1.130.201 10.1.130.254----排除dhcp的一些地址
dhcp server ip-pool 5F-LAN_130
gateway-list 10.1.130.1
network 10.1.130.0 mask 255.255.255.0
static-bind ip-address 10.1.13.100 mac-address 8030-4954-0869----静态绑定
dns-list 10.1.41.101 223.5.5.5
expired day 3
2.绑定IP时报错:Error:The IP address's status is error的错误
reset ip pool name 5F-LAN_130 10.1.130.100
此命令为释放IP。 H3C交换机配置DHCP环境说明:DHCP server链接到H3C交换机的e1/0/1端口上,并属于vlan100;pc1与H3C交换机e1/0/2互联,属于vlan2;pc2与H3C交换机e1/0/3互联,属于vlan3.
H3C交换机配置DHCP实例:
dhcp-server 0 ip 172.16.0.254 指定DHCP服务器地址
vlan 100
port e1/0/1 将服务器端口放入vlan100
quit
interface vlan-interface 100
ip address 172.16.0.1 255.255.255.0
vlan 2
port Ethernet 1/0/2
quit
interface Vlan-interface 2
ip address 10.1.1.1 255.255.255.0
dhcp-server 0 在vlan2中指定dhcp中继
vlan 3
port Ethernet 1/0/3
quit
interface Vlan-interface 3
ip address 10.1.2.1 255.255.255.0
dhcp-server 0 在vlan3中指定dhcp中继
以上就是H3C交换机配置DHCP的具体操作和命令。
页:
[1]