4terre 发表于 2014-10-23 09:46:16

华为交换机S5700配置DHCP



配置命令:
sys
Enter system view, return user view withCtrl+Z.
sysna         
sysname dhcp
vlan 11
vlan 22
qu
interface vlan11
ip add
ip add 192.168.0.254255.255.255.0
inter vlan 22

ip add 192.168.2.254255.255.255.0

qu
interface g   
interface GigabitEthernet 0/0/1
port link-typeaccess
port defaultvlan 11

inter g0/0/2
port link-t
port link-typeacc      
port link-typeaccess
port def   
port default vla
port defaultvlan 22
qu

dhcp enable
Info: The operation may take a few seconds.Please wait for a moment.done.

ip pool vlan11
Info:It's successful to create an IPaddress pool.
gateway-list192.168.0.254
network 192.168.0.0mask 255.255.255.0
dns-list202.102.224.68
qu

ip pool vlan22
Info:It's successful to create an IPaddress pool.

gateway-list192.168.2.254
network 192.168.2.0mask 255.255.255.0
dns-list202.102.224.68
excluded-ip-address192.168.2.253
qu

quit

save
The current configuration will be writtento the device.
Are you sure to continue?y
Now saving the current configuration to theslot 0.
Oct 22 2014 15:07:36-08:00 dhcp%%01CFM/4/SAVE(l):The user chose Y when decidi
ng whether to save the configuration to thedevice.
Save the configuration successfully.

-------------------------------------------------------------------------------------
最终配置结果:
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
………………

验证配置结果,并测试:





页: [1]
查看完整版本: 华为交换机S5700配置DHCP