系统集成论坛

标题: 华为交换机配置DHCP [打印本页]

作者: 胡振宇    时间: 2015-11-23 14:54
标题: 华为交换机配置DHCP
<HUAWEI> system-view
[HUAWEI] sysname Switch
[Switch] dhcp enable
步骤2 配置接口加入VLAN
# 配置GE0/0/1接口加入VLAN10。
[Switch] vlan batch 10 to 11
[Switch] interface gigabitethernet 0/0/1
[Switch-GigabitEthernet0/0/1] port link-type access
[Switch-GigabitEthernet0/0/1] port default vlan 10
[Switch-GigabitEthernet0/0/1] quit
# 配置GE0/0/2加接口入VLAN11。
[Switch] interface gigabitethernet 0/0/2
[Switch-GigabitEthernet0/0/2] port link-type access
[Switch-GigabitEthernet0/0/2] port default vlan 11
[Switch-GigabitEthernet0/0/2] quit
步骤3 配置VLANIF接口IP地址
# 配置VLANIF10接口地址。
[Switch] interface vlanif 10
[Switch-Vlanif10] ip address 10.1.1.1 24 //企业为固定办公终端的网段
[Switch-Vlanif10] quit
# 配置VLANIF11接口地址。
[Switch] interface vlanif 11
[Switch-Vlanif11] ip address 10.1.2.1 24 //企业为出差人员分配的网段
[Switch-Vlanif11] quit
步骤4 配置接口地址池
# 配置VLANIF10接口下的终端从接口地址池中获取IP地址。
[Switch] interface vlanif 10
[Switch-Vlanif10] dhcp select interface //使能接口采用接口地址池的DHCP服务器功能,缺省未使能
[Switch-Vlanif10] dhcp server lease day 30 //租期的缺省值为1天,修改租期为30天
[Switch-Vlanif10] dhcp server static-bind ip-address 10.1.1.100 mac-address 286e-d488-b684 //为
Client_1分配固定的IP地址
[Switch-Vlanif10] quit
# 配置VLANIF11接口下的终




欢迎光临 系统集成论坛 (http://bbs.xtjc.com/) Powered by Discuz! X3.1