祖瑞科技 全国计算机 网络IT运维社区!

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 6936|回复: 0

H3CNE 17 DHCP 配置

[复制链接]

205

主题

218

帖子

1286

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1286
发表于 2021-11-8 17:08:07 | 显示全部楼层 |阅读模式
17 DHCP 配置

DHCP 静态地址分配
<H3C>system-view
[H3C]sysname r1
[r1]interface gigabitethernet 0/0
[r1-GigabitEthernet0/0]ip address 192.168.10.1 24
[r1-GigabitEthernet0/0]quit
[r1]dhcp enable
[r1]dhcp server ip-pool caiwu
[r1-dhcp-pool-caiwu]gateway-list 192.168.10.1
[r1-dhcp-pool-caiwu]network 192.168.10.0 mask255.255.255.0
[r1-dhcp-pool-caiwu]dns-list 114.114.114.114 8.8.8.8
[r1-dhcp-pool-caiwu]expired day 0 hour 12 minute 0 second0
[r1-dhcp-pool-caiwu]forbidden-ip 192.168.10.1192.168.10.100
[r1-dhcp-pool-caiwu]static-bind ip-address 192.168.10.100hardware-address 001e-9098-a9bf
[r1-dhcp-pool-caiwu]quit
[r1]interface gigabitethernet 0/0
[r1-GigabitEthernet0/0]dhcp select server
[r1]interface gigabitethernet 0/2
[r1-GigabitEthernet0/2]ip address 192.168.20.1 24
[r1-GigabitEthernet0/2]dhcp select server
[r1-GigabitEthernet0/2]quit
[r1]dhcp server ip-pool shichang
[r1-dhcp-pool-shichang]gateway-list 192.168.20.1
[r1-dhcp-pool-shichang]network 192.168.20.0 mask255.255.255.0
[r1-dhcp-pool-shichang]dns-list 114.114.114.114 8.8.8.8
[r1-dhcp-pool-shichang]expired day 0 hour 12 minute 0
[r1-dhcp-pool-shichang]forbidden-ip 192.168.20.1
[r1-dhcp-pool-shichang]forbidden-ip-range 192.168.20.200192.168.20.254
[r1-dhcp-pool-shichang]static-bind ip-address192.168.20.100 hardware-address 1234-7654-9876
[r1-dhcp-pool-shichang]quit

R1
<H3C>system-view
[H3C]sysname r1
[r1]interface gigabitethernet 0/0
[r1-GigabitEthernet0/0]ip address 172.16.12.1 24
[r1-GigabitEthernet0/0]dhcp select server
[r1-GigabitEthernet0/0]quit
[r1]dhcp enable
[r1]dhcp server ip-pool dhcpserver
[r1-dhcp-pool-dhcpserver]gateway-list 192.168.10.1
[r1-dhcp-pool-dhcpserver]network 192.168.10.0 mask255.255.255.0
[r1-dhcp-pool-dhcpserver]dns-list 114.114.114.114 8.8.8.8
[r1-dhcp-pool-dhcpserver]expired day 2 hour 2 minute 2second 2
[r1-dhcp-pool-dhcpserver]forbidden-ip 192.168.10.1192.168.10.100
[r1-dhcp-pool-dhcpserver]forbidden-ip-range192.168.10.200 192.168.10.254
[r1-dhcp-pool-dhcpserver]static-bind ip-address192.168.10.100 hardware-address 1212-3344-4552
[r1-dhcp-pool-dhcpserver]quit
[r1]dhcp server ip-pool dhcpserver2
[r1-dhcp-pool-dhcpserver2]gateway-list 192.168.11.1
[r1-dhcp-pool-dhcpserver2]network 192.168.11.0 mask255.255.255.0
[r1-dhcp-pool-dhcpserver2]dns-list 114.114.114.1148.8.8.8
[r1-dhcp-pool-dhcpserver2]expired day 2 hour 2 minute 2second 2
[r1-dhcp-pool-dhcpserver2]forbidden-ip 192.168.11.1 192.168.11.100
[r1-dhcp-pool-dhcpserver2]static-bind ip-address192.168.11.100 hardware 3344-5544-3344
[r1-dhcp-pool-dhcpserver2]quit
[r1]ip route-static 192.168.10.0 255.255.255.0172.16.12.2
[r1]ip route-static 192.168.11.0 255.255.255.0172.16.12.2

R2
<H3C>system-view
[H3C]sysname r2
[r2]interface gigabitethernet 0/0
[r2-GigabitEthernet0/0]ip address 172.16.12.2 24
[r2-GigabitEthernet0/0]interface gigabitethernet 0/1
[r2-GigabitEthernet0/1]ip address 192.168.10.1 24
[r2-GigabitEthernet0/1]dhcp select relay
[r2-GigabitEthernet0/1]dhcp relay server 172.16.12.1
[r2-GigabitEthernet0/1]quit
[r2]interface gigabitethernet 0/2
[r2-GigabitEthernet0/2]ip address 192.168.11.1 24
[r2-GigabitEthernet0/2]dhcp select relay
[r2-GigabitEthernet0/2]dhcp relay server 172.16.12.1
[r2-GigabitEthernet0/2]quit
[r2]dhcp enable

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
祖瑞(上海)网络科技有限公司
我们在全国范围提供企业IT运维、网络工程、弱电安装、监控安防、计算机产品收售、办公设备耗材等服务!
期待与您的合作!
邮箱:sanne@zurkj.com
电话:021-51850021 18918292296
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

公司网站

QQ|Archiver|手机版|小黑屋|祖瑞科技 全国计算机 网络IT运维社区! ( 沪ICP备16021636号-2 )

GMT+8, 2024-11-25 23:25 , Processed in 0.035376 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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