650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4C/EB/wKioL1RHXKiibyRgAACenkUHKuk120.jpg "Title =" dhcp.jpg "alt =" wkiol1rhxkiibyrgaacenkuhkuk120.jpg "/>
Configuration command:
<Huawei> sys
Enter System View, return user view withctrl + Z.
[Huawei] sysna
[Huawei] sysname DHCP
[DHCP] VLAN 11
[Dhcp-vlan11] VLAN 22
[Dhcp-vlan22] QU
[DHCP] interface vlan11
[Dhcp-Vlanif11] IP add
[Dhcp-Vlanif11] IP add 192.168.0.25255.5.255.255.0
[Dhcp-Vlanif11] inter VLAN 22
Dhcp-Vlanif22
[Dhcp-Vlanif22] IP add 192.168.2.25255.5.255.255.0
Dhcp-Vlanif22
[Dhcp-Vlanif22] QU
[DHCP] interface g
[DHCP] interface gigabitethernet 0/0/1
[Dhcp-GigabitEthernet0/0/1] Port Link-typeaccess
[Dhcp-GigabitEthernet0/0/1] Port defavlan VLAN 11
[Dhcp-GigabitEthernet0/0/1]
[Dhcp-GigabitEthernet0/0/1] inter G0/0/2
[Dhcp-GigabitEthernet0/0/2] Port Link-T
[Dhcp-GigabitEthernet0/0/2] Port Link-typeacc
[Dhcp-GigabitEthernet0/0/2] Port Link-typeaccess
[Dhcp-GigabitEthernet0/0/2] Port def
[Dhcp-GigabitEthernet0/0/2] Port default VLA
[Dhcp-GigabitEthernet0/0/2] Port defavlan VLAN 22
[Dhcp-GigabitEthernet0/0/2] QU
[DHCP]
[DHCP] DHCP enable
Info: The operation may take a few seconds. Please wait for a moment. Done.
[DHCP]
[DHCP] IP pool vlan11
Info: It's successful to create an IPaddress pool.
[Dhcp-ip-pool-vlan11] gateway-list192.168.0.254
[Dhcp-ip-pool-vlan11] network 192.168.0.0mask 255.255.255.0
[Dhcp-ip-pool-vlan11] dns-list202.102.224.68
[Dhcp-ip-pool-vlan11] QU
[DHCP]
[DHCP] IP pool vlan22
Info: It's successful to create an IPaddress pool.
Dhcp-ip-pool-vlan22
[Dhcp-ip-pool-vlan22] gateway-list192.168.2.254
[Dhcp-ip-pool-vlan22] network 192.168.2.0mask 255.255.255.0
[Dhcp-ip-pool-vlan22] dns-list202.102.224.68
[Dhcp-ip-pool-vlan22] excluded-ip-address192.168.2.253
[Dhcp-ip-pool-vlan22] QU
[DHCP]
[DHCP] Quit
<DHCP>
<DHCP> Save
The current configuration will be writtento the device.
Are you sure to continue? [Y/n] y
Now saving the current configuration to theslot 0.
Oct 22 2014 15:07:36-DHCP % 01cfm/4/Save (l) [0]: The user chose y when decidi
Ng whether to save the configuration to thedevice.
Save the configuration successfully.
<DHCP>
Bytes -------------------------------------------------------------------------------------
Final configuration result:
<DHCP> dis current-Configuration
#
Sysname DHCP
#
VLAN batch 11 22
#
Cluster enable
NTDP enable
NDP enable
#
Drop illegal-Mac alarm
#
DHCP enable
#
DiffServ domain default
#
Drop-profile default
#
IP pool pool1
Gateway-list 192.168.0.254
Network 192.168.0.0 mask 255.255.255.0
DNS-list 202.102.224.68
#
IP pool vlan1
#
IP pool vlan22
Gateway-list 192.168.2.254
Network 192.168.2.0 mask 255.255.255.0
Excluded-IP-address 192.168.2.253
#
Aaa
Authentication-scheme default
Authorization-scheme default
Accounting-scheme default
Domain default
Domain default_admin
Local-user admin password simple Admin
Local-user admin service-type HTTP
#
Interface vlanif1
#
Interface vlanif11
IPaddress 192.168.0.254 255.255.255.0
Dhcpselect global
#
Interface vlanif22
IPaddress 192.168.2.254 255.255.255.0
Dhcpselect global
#
Interface meth0/0/1
#
Interface gigabitethernet0/0/1
Portlink-type access
Portdefault VLAN 11
#
Interface gigabitethernet0/0/2
Portlink-type access
Portdefault VLAN 22
#
Interface gigabitethernet0/0/3
..................
Verify the configuration result and test:
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4C/E9/wKiom1RHXObi5ycZAANLR_dpsvY167.jpg "style =" float: none; "Title =" yz1.jpg "alt =" wkiom1rhxobi5yczaanlr_dpsvy167.jpg "/>
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4C/EB/wKioL1RHXTPTX_u7AAPM9VZNVYo247.jpg "style =" float: none; "Title =" yz2.jpg "alt =" wkiol1rhxtptx_u7aapm9vznvyo247.jpg "/>
This article is from the "Shinano" blog, please be sure to keep this source http://xinnuo.blog.51cto.com/4132978/1566724
DHCP configuration for the s5700 Huawei Switch