华为s5700交换机配置全局地址池dhcp

相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

华为s5700交换机配置全局地址池dhcp

SW1配置如下:

sy

system-view (进入全局模式)

Enter system view, return user view with Ctrl+Z.

[Huawei]sy

[Huawei]sysname SW1 ( 设备命名)

[SW1]

[SW1]d

[SW1]dhcp en

[SW1]dhcp enable (使用DHCP功能)

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

[SW1]

[SW1]ip pool 10 (创建全局地址池,同时进入全局地址池视图)

Info:It's successful to create an IP address pool.

[SW1-ip-pool-10]netw

[SW1-ip-pool-10]network 192.168.10.0 m [SW1-ip-pool-10]network 192.168.10.0 mask 24(配置全局地址池可动态分配的IP地址范围)

[SW1-ip-pool-10]

[SW1-ip-pool-10]dns-list 8.8.8.8 (配置DNS )

[SW1-ip-pool-10]

[SW1-ip-pool-10]gateway-list 192.168.10.1 (配置网关)

[SW1-ip-pool-10]ex

[SW1-ip-pool-10]excluded-ip-address

192.168.10.201 192.168.10.254 (保留不被分

配的地址)

[SW1-ip-pool-10]

[SW1-ip-pool-10]lease d

[SW1-ip-pool-10]lease day 7 (IP租约期限)[SW1-ip-pool-10]

[SW1-ip-pool-10]dis this (查询当前模式的配置)

#

ip pool 10

gateway-list 192.168.10.1 (网关)

network 192.168.10.0 mask 255.255.255.0 (IP地址范围)

excluded-ip-address 192.168.10.201 192.168.10.254 (保留IP地址范围)

lease day 7 hour 0 minute 0 (IP租约周期) dns-list 8.8.8.8

#

return

[SW1-ip-pool-10]

[SW1-ip-pool-10]

[SW1-ip-pool-10]quit (退出)

[SW1]

[SW1]

[SW1]

[SW1]ip pool 20

Info:It's successful to create an IP address pool.

[SW1-ip-pool-20]

[SW1-ip-pool-20]

[SW1-ip-pool-20]netw

[SW1-ip-pool-20]network 192.168.20.0 m [SW1-ip-pool-20]network 192.168.20.0 mask 24

[SW1-ip-pool-20]

[SW1-ip-pool-20]

[SW1-ip-pool-20]d

[SW1-ip-pool-20]dns-list 8.8.8.8

[SW1-ip-pool-20]

[SW1-ip-pool-20]g

[SW1-ip-pool-20]gateway-list 192.168.20.1 [SW1-ip-pool-20]

[SW1-ip-pool-20]

[SW1-ip-pool-20]ex

[SW1-ip-pool-20]excluded-ip-address

192.168.20.201 192.168.20.254

[SW1-ip-pool-20]

[SW1-ip-pool-20]

[SW1-ip-pool-20]l

[SW1-ip-pool-20]lease d

[SW1-ip-pool-20]lease day 7

[SW1-ip-pool-20]

[SW1-ip-pool-20]

[SW1-ip-pool-20]

[SW1-ip-pool-20]

[SW1-ip-pool-20]dis this

#

ip pool 20

gateway-list 192.168.20.1

network 192.168.20.0 mask 255.255.255.0 excluded-ip-address 192.168.20.201 192.168.20.254

lease day 7 hour 0 minute 0

dns-list 8.8.8.8

#

return

[SW1-ip-pool-20]

[SW1-ip-pool-20]

[SW1-ip-pool-20]q

[SW1]

[SW1]

[SW1]v

[SW1]vlan b

[SW1]vlan batch 10 20 (批量创建vlan)Info: This operation may take a few seconds. Please wait for a moment...done.

[SW1]

[SW1]

[SW1]int

[SW1]interface g

[SW1]interface GigabitEthernet 0/0/1 (进入port 1)

[SW1-GigabitEthernet0/0/1]por

[SW1-GigabitEthernet0/0/1]port l

[SW1-GigabitEthernet0/0/1]port link-t

相关文档
最新文档