监控安装 ERP

系统集成论坛

 找回密码
 注册通行证

QQ登录

只需一步,快速开始

路由器交换机防火墙系统集成商城 优质产品采购平台
查看: 4304|回复: 0
打印 上一主题 下一主题

华为交换机配置DHCP

[复制链接]

81

主题

82

帖子

175

积分

实习生

跳转到指定楼层
1
发表于 2015-11-23 14:54:16 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
华为金牌代理
<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接口下的终
您需要登录后才可以回帖 登录 | 注册通行证

本版积分规则

联系我们| 手机版|系统集成论坛 ( 京ICP备11008917号 )

GMT+8, 2024-9-22 23:25 , Processed in 0.055474 second(s), 24 queries .

系统集成论坛

BBS.XTJC.COM

快速回复 返回顶部 返回列表