核心交换机DHCP配置命令 (华为 )

核心交换机DHCP配置命令 (华为 )_第1张图片

 

SW1
#
dhcp enable
#
ip pool vlan64
 gateway-list 172.16.64.254
 network 172.16.64.0 mask 255.255.255.0
 dns-list 114.114.114.114
#
ip pool vlan65
 gateway-list 172.16.65.254
 network 172.16.65.0 mask 255.255.255.0
 dns-list 114.114.114.114
#
ip pool vlan72
 gateway-list 172.16.72.254
 network 172.16.72.0 mask 255.255.255.0
 dns-list 114.114.114.114
#
ip pool vlan128
 gateway-list 172.16.128.254
 network 172.16.128.0 mask 255.255.255.0
#
interface Vlanif12
 ip address 172.16.0.1 255.255.255.0
 dhcp select global
#
interface Vlanif13
 ip address 172.16.1.1 255.255.255.0
 dhcp select global

SW2 
#
dhcp enable
#
interface Vlanif64
 ip address 172.16.64.254 255.255.255.0
 dhcp select relay
 dhcp relay server-ip 172.16.0.1
#
interface Vlanif128
 ip address 172.16.128.254 255.255.255.0
 dhcp select relay
 dhcp relay server-ip 172.16.0.1
#

SW3
#
dhcp enable
#
interface Vlanif65
 ip address 172.16.65.254 255.255.255.0
 dhcp select relay
 dhcp relay server-ip 172.16.1.1
#
interface Vlanif72
 ip address 172.16.72.254 255.255.255.0
 dhcp select relay
 dhcp relay server-ip 172.16.1.1
#

核心交换机DHCP配置命令 (华为 )_第2张图片

 

你可能感兴趣的:(华为,服务器,数据库)