Home | Mirror | Search |
S3600 SI 沒有DHCP Server,只有EI版本提供,狗日的H3C(fuck h3c)
dhcp enable dhcp server ip-pool 0 static-bind ip-address 172.16.0.2 static-bind mac-address 000f-e200-0002 dns-list 172.16.0.254 gateway-list 172.16.0.254 quit
dhcp server forbidden-ip 10.1.1.2 dhcp server forbidden-ip 10.1.1.4 dhcp server forbidden-ip 10.1.1.126 dhcp server forbidden-ip 10.1.1.254 dhcp server ip-pool 0 network 10.1.1.0 mask 255.255.255.0 domain-name aabbcc.com dns-list 10.1.1.2 nbns-list 10.1.1.4 expired day 10 hour 12 quit
3. 配置步驟 (1) 配置連接埠屬於VLAN及對應VLAN介面的IP地址(略) (2) 配置DHCP服務 # 使能DHCP服務。 <H3C> system-view [H3C] dhcp enable # 配置不參與自動分配的IP地址(DNS伺服器、WINS伺服器和出口網關地址)。 [H3C] dhcp server forbidden-ip 10.1.1.2 [H3C] dhcp server forbidden-ip 10.1.1.4 [H3C] dhcp server forbidden-ip 10.1.1.126 [H3C] dhcp server forbidden-ip 10.1.1.254 # 配置DHCP地址池0的共有屬性(地址池範圍、DNS伺服器地址)。 [H3C] dhcp server ip-pool 0 [H3C-dhcp-pool-0] network 10.1.1.0 mask 255.255.255.0 [H3C-dhcp-pool-0] domain-name aabbcc.com [H3C-dhcp-pool-0] dns-list 10.1.1.2 [H3C-dhcp-pool-0] quit # 配置DHCP地址池1的屬性(地址池範圍、出口網關、地址租用期限)。 [H3C] dhcp server ip-pool 1 [H3C-dhcp-pool-1] network 10.1.1.0 mask 255.255.255.128 [H3C-dhcp-pool-1] gateway-list 10.1.1.126 [H3C-dhcp-pool-1] expired day 10 hour 12 [H3C-dhcp-pool-1] quit # 配置DHCP地址池2的屬性(地址池範圍、出口網關、WINS伺服器地址、地址租用期限)。 [H3C] dhcp server ip-pool 2 [H3C-dhcp-pool-2] network 10.1.1.128 mask 255.255.255.128 [H3C-dhcp-pool-2] expired day 5 [H3C-dhcp-pool-2] nbns-list 10.1.1.4 [H3C-dhcp-pool-2] gateway-list 10.1.1.254
# 進入系統視圖。 <H3C> system-view # 使能DHCP服務。 [H3C] dhcp enable # 配置DHCP Server的組號為1,IP地址為202.38.1.2。 [H3C] dhcp-server 1 ip 202.38.1.2 # 配置VLAN介面2對應DHCP Server組1。 [H3C] interface Vlan-interface 2 [H3C-Vlan-interface2] dhcp-server 1 # 配置VLAN介面2的IP地址,需與DHCP Client屬於同一網段。 [H3C-Vlan-interface2] ip address 10.110.1.1 255.255.0.0