首页 > 其他分享 >DHCP中继代理配置案例2(eNSP)

DHCP中继代理配置案例2(eNSP)

时间:2024-04-04 23:05:14浏览次数:28  
标签:quit 中继 eNSP Relay ip 192.168 Server DHCP

本案例利用华为eNSP模拟器,由AC作DHCP服务器,三层交换机做DHCP中继代理,为网络中的AP和无线网络中的STA分配IP地址。

一、拓扑结构

二、网络规划

1、AC1做DHCP服务器,为所有AP和移动终端分配IP

2、AR1做DHCP中继服务器

3、VLAN地址规划

VLAN10地址段:192.168.10.0/24

VLAN20地址段:192.168.20.0/24

VLAN30地址段:192.168.30.0/24

VLAN110地址段:192.168.110.0/30

VLAN120地址段:192.168.120.0/30

4、IP地址规划

AC1 Vlanif30 192.168.30.254/24

AC1 Vlanif110 192.168.110.2/30

AR1 G0/0/0 192.168.110.1/30

AR1 G0/0/1 192.168.120.1/30

LSW1 VLAN10 192.168.10.254/24

LSW1 VLAN20 192.168.20.254/24

LSW1 VLAN120 192.168.120.2/30

三、配置步骤

3.1 配置AC1(DHCP服务器)

1、设备名、VLAN

<AC6605>system-view 
[AC6605]sysname DHCP-Server
[DHCP-Server]vlan batch 30 110

2、端口划分

配置GigabitEthernet 0/0/1

[DHCP-Server]interface GigabitEthernet 0/0/1
[DHCP-Server-GigabitEthernet0/0/1]port link-type access 
[DHCP-Server-GigabitEthernet0/0/1]port default vlan 110
[DHCP-Server-GigabitEthernet0/0/1]quit

配置GigabitEthernet 0/0/2

[DHCP-Server]interface GigabitEthernet 0/0/2
[DHCP-Server-GigabitEthernet0/0/2]port link-type access 
[DHCP-Server-GigabitEthernet0/0/2]port default vlan 30
[DHCP-Server-GigabitEthernet0/0/2]quit

3、配置全局DHCP池

创建vlan10的地址池

[DHCP-Server]dhcp enable 
[DHCP-Server]ip pool vlan10pool 
[DHCP-Server-ip-pool-vlan10pool]network 192.168.10.0 mask 24
[DHCP-Server-ip-pool-vlan10pool]gateway-list 192.168.10.254
[DHCP-Server-ip-pool-vlan10pool]quit

创建vlan20的地址池

[DHCP-Server]ip pool vlan20pool
[DHCP-Server-ip-pool-vlan20pool]network 192.168.20.0 mask 24
[DHCP-Server-ip-pool-vlan20pool]gateway-list 192.168.20.254
[DHCP-Server-ip-pool-vlan20pool]quit

创建vlan30的地址池

[DHCP-Server]ip pool vlan30pool
[DHCP-Server-ip-pool-vlan30pool]network 192.168.30.0 mask 24
[DHCP-Server-ip-pool-vlan30pool]gateway-list 192.168.30.254
[DHCP-Server-ip-pool-vlan30pool]quit

4、G0/0/1和G0/0/2接口上启用全局地址池

[DHCP-Server]interface Vlanif 30
[DHCP-Server-Vlanif30]ip address 192.168.30.254 24
[DHCP-Server-Vlanif30]dhcp select global 
[DHCP-Server-Vlanif30]quit

[DHCP-Server]interface Vlanif 110
[DHCP-Server-Vlanif110]ip address 192.168.110.2 30
[DHCP-Server-Vlanif110]dhcp select global 
[DHCP-Server-Vlanif110]quit

5、配置RIP路由

[DHCP-Server]rip
[DHCP-Server-rip-1]version 2
[DHCP-Server-rip-1]network 192.168.30.0
[DHCP-Server-rip-1]network 192.168.110.0
[DHCP-Server-rip-1]quit
[DHCP-Server]quit
<DHCP-Server>save
3.2 配置路由器AR1

1、设备名、IP地址

<Huawei>system-view 
[Huawei]sysname AR

[AR]interface GigabitEthernet 0/0/0
[AR-GigabitEthernet0/0/0]ip address 192.168.110.1 30
[AR-GigabitEthernet0/0/0]quit

[AR]interface GigabitEthernet 0/0/1
[AR-GigabitEthernet0/0/1]ip address 192.168.120.1 30
[AR-GigabitEthernet0/0/1]quit

2、配置RIP路由

[AR]rip
[AR-rip-1]version 2
[AR-rip-1]network 192.168.110.0
[AR-rip-1]network 192.168.120.0
[AR-rip-1]quit
[AR]quit
<AR>save
3.3 配置LSW1(中继代理)

1、设备名、VLAN

<Huawei>system-view 
[Huawei]sysname DHCP-Relay
[DHCP-Relay]vlan batch 10 20 120

2、端口划分

配置GigabitEthernet 0/0/1

[DHCP-Relay]interface GigabitEthernet 0/0/1
[DHCP-Relay-GigabitEthernet0/0/1]port link-type access 
[DHCP-Relay-GigabitEthernet0/0/1]port default vlan 120
[DHCP-Relay-GigabitEthernet0/0/1]quit

配置GigabitEthernet 0/0/2

[DHCP-Relay]interface GigabitEthernet 0/0/2
[DHCP-Relay-GigabitEthernet0/0/2]port link-type access  
[DHCP-Relay-GigabitEthernet0/0/2]port default vlan 10
[DHCP-Relay-GigabitEthernet0/0/2]quit

配置GigabitEthernet 0/0/3

[DHCP-Relay]interface GigabitEthernet 0/0/3
[DHCP-Relay-GigabitEthernet0/0/3]port link-type access  
[DHCP-Relay-GigabitEthernet0/0/3]port default vlan 20
[DHCP-Relay-GigabitEthernet0/0/3]quit

3、Vlanif10和Vlanif20配置IP、启用DHCP中继代理

在Vlanif10接口启用中继代理

[DHCP-Relay]dhcp enable 
[DHCP-Relay]interface Vlanif 10
[DHCP-Relay-Vlanif10]ip address 192.168.10.254 24
[DHCP-Relay-Vlanif10]dhcp select relay  
[DHCP-Relay-Vlanif10]dhcp relay server-ip 192.168.110.2
[DHCP-Relay-Vlanif10]quit

在Vlanif20接口启用中继代理

[DHCP-Relay]interface Vlanif 20
[DHCP-Relay-Vlanif20]ip address 192.168.20.254 24
[DHCP-Relay-Vlanif20]dhcp select relay 
[DHCP-Relay-Vlanif20]dhcp relay server-ip 192.168.110.2
[DHCP-Relay-Vlanif20]quit

[DHCP-Relay]interface Vlanif 120
[DHCP-Relay-Vlanif120]ip address 192.168.120.2 24
[DHCP-Relay-Vlanif120]quit

4、配置RIP路由

[DHCP-Relay]rip
[DHCP-Relay-rip-1]version 2
[DHCP-Relay-rip-1]network 192.168.10.0
[DHCP-Relay-rip-1]network 192.168.20.0
[DHCP-Relay-rip-1]network 192.168.120.0
[DHCP-Relay-rip-1]quit
[DHCP-Relay]quit
<DHCP-Relay>save

四、测试

1、在AP上使用display ip interface brief查看地址

2、在AC1上使用【display ip pool name 地址池**名 used】查看地址分配情况**

标签:quit,中继,eNSP,Relay,ip,192.168,Server,DHCP
From: https://blog.csdn.net/weixin_45605234/article/details/137255160

相关文章

  • 华为ENSP SSH使用RSA密钥交换进行远程登录实验
    实验拓扑:实验流程:1、AR1模拟客户端,AR2模拟远程登录服务器1、AR2开启SSH服务,配置AAA本地用户2、交换AR1和AR2的host主机密钥3、实现AR1远程登录AR2实验配置:先配置AR1和AR2的IP地址[AR1]intGigabitEthernet0/0/0[AR1-GigabitEthernet0/0/0]ipadd192.168.1.124[A......
  • 华为ENSP AC+AP二层漫游基础实验配置
    无线漫游是一种能让你的设备在移动过程中保持不间断网络连接的技术。配置流程:AC创建vlan200201,vlan200用于管理,给AP下发IP地址,vlan201用于业务给终端下发IP地址AC和SW1全部接口配置为Trunk,并且SW1的G0/0/3口和G0/0/2口需要加上PVIDAC上配置ssid模板、security模板、vap......
  • ENSP通过 ISAKMP 方式建立 IPsec 隧道(采用证书认证)更新中
    第一步:证书准备cd/etc/pki/CAopensslreq-newkeyrsa:2048-x509-days365-out//CN-HN-SY-SYZY-XXJS-CA_ROOT(剩下的都按回车)cacert.pem-keyoutcakey.pemmvcakey.pemprivate/cd~/certsopensslreq-newkeyrsa:2048-new-outr1csr.csr-keyoutr1key.pem/......
  • 基于全局地址池配置DHCP配置(eNSP)
    本案例利用华为eNSP模拟器,完成了基于全局地址池配置DHCP配置,由AC作DHCP服务器,为网络中的AP和无线网络中的STA分配IP地址。一、拓扑结构二、网络规划1、AC1做DHCP服务器,为AP1、AP2、AP3分配固定IP地址2、AC1做DHCP服务器,为移动接入用户分配动态IP3、AP1为VLAN10内设备,AP2......
  • DHCP(动态主机配置协议)
    动态主机配置协议统一分发管理IP地址。基于UDP67/68端口工作网络中存在DHCP的服务器为需要自动生成IP地址的设备分配IP地址。成为DHCP服务器的条件:①该设备存在接口或网卡连接到所要分发IP地址的广播域内。②该接口或网卡必须已经配置合法的IP地址,且可以正常通信。配......
  • WPF中继承ItemsControl子类控件数据模板获取选中属性
    需求场景列表类控件,如ListBox、ListView、DataGrid等。显示的行数据中,部分内容依靠选中时触发控制,例如选中行时行记录复选,部分列内容控制显隐。案例源码以ListView为例。Xaml部分<ListViewItemsSource="{BindingMyPropertys}"IsManipulationEnabled="False"><List......
  • DHCP的使用。
    打开服务管理器,点击方框中的添加角色和功能。点击下一步。点击下一步。点击下一步。将DHCP服务器勾选上,点击下一步。点击下一步。点击下一步。点击安装。等待安装。点击箭头所指处。点击,点击完成DHCP配置。点击提交。点击DHCP。右击IPv4,点击新建作用......
  • ENSP Demo 5 L3 Switch - Router
    可以将SW1的G0/0/1接口改为三层接口,也可以创建虚接口关联G0/0/1。syssysnsw1vlanbatch3040intg0/0/2portlink-typeaccessportdefaultvlan30intg0/0/1portlink-typeaccessportdefaultvlan40interfacevlanif30ipadd23.0.0.124interfacevlan......
  • ENSP Demo3 VLAN Trunk & Hybrid
    syssysnSW1vlanbatch1020100200intg0/0/1portlink-typetrunkporttrunkallow-passvlan1020100200intg0/0/2portlink-typehybridporthybriduntaggedvlan10100porthybridpvidvlan10intg0/0/3portlink-typehybridporthybridunta......
  • 华为交换机常用命令学习,已ENSP模拟器为例
    1.交换机命令手册手册地址:https://support.huawei.com/enterprise/zh/doc/EDOC1000047388?section=j004https://support.huawei.com/enterprise/zh/doc/EDOC1000047388?section=j0062.基础配置命令displaythis用来查看系统当前视图的运行配置。使用示例:<HUAWEI>system-......