实验04DHCPRelay配置_第1页
实验04DHCPRelay配置_第2页
实验04DHCPRelay配置_第3页
实验04DHCPRelay配置_第4页
实验04DHCPRelay配置_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

S6506 交换实验上机指导书 实验 4 DHCP Relay i 目录 实验 04 DHCP Relay 1 4 1实验目的 1 4 2实验环境 1 4 3实验步骤 1 4 3 1DHCP Server 的配置 1 4 3 2配置 DHCP Relay 3 S6506 交换实验上机指导书 实验 4 DHCP Relay 1 实验实验 4 DHCP Relay 4 1 实验目的 熟悉 S6506 以太网交换机的 DHCP Relay 功能 熟悉并掌握 S6506 以太网交换机 DHCP Relay 的配置 4 2 实验环境 在实验中 我们需要一台 Quidway S6506 以太网交换机 一台 Quidway S3526 至少 1 台 PC 一台 DHCP Server 专用配置电缆一 根 网线若干 实验组网如下图所示 SwitchA 为 S6506 交换机 SwitchA 的端口 E2 0 17 与 SwitchB 的端口 E0 17 相连 SwitchA 的端 口 E2 0 1 接客户端 Client C SwitchB 的端口 E0 1 端口 E0 2 分别接 DHCP Server 和 Client A 且在同一 VLAN 下 SwitchB 的端口 E0 9 接 Client B 在另一 VLAN 内 DHCP RelayDHCP Relay SwitchA Client C 10 0 3 0 24 Client B Client A DHCP Server 10 0 0 2 10 0 0 0 24 SwitchB 10 0 1 0 24 10 0 2 0 24 E 1 0 17 E 1 0 1 E 1 0 9E 1 0 1 E 1 0 17 4 3 实验步骤 本实验主要目的是学习华为 Quidway S6506 以太网交换机的 DHCP Relay 功能 同时进行简单的 DHCP Server 的配置准备介绍 4 3 1 DHCP Server 的配置 实验中 我们可以采用 Windows2000 Server 提供的 DHCP Server 进 行实验 也可以采用华为 Quidway S 系列路由器提供的 DHCP Server 进行实验 为了加强大家对 Quidway S 系列路由器的理解和配置 本实 验采用后者 S6506 交换实验上机指导书 实验 4 DHCP Relay 2 1配置 DHCP Server DHCP Server interface Ethernet 0 DHCP Server Ethernet0 ip address 10 0 0 2 255 255 255 0 DHCP Server dhcpdhcp enableenable DHCP Server dhcpdhcp serverserver forbidden ipforbidden ip 10 0 0 110 0 0 1 10 0 0 210 0 0 2 DHCP Server dhcpdhcp serverserver forbidden ipforbidden ip 10 0 1 110 0 1 1 10 0 1 110 0 1 1 DHCP Server dhcpdhcp serverserver forbidden ipforbidden ip 10 0 2 110 0 2 1 10 0 2 210 0 2 2 DHCP Server dhcpdhcp serverserver forbidden ipforbidden ip 10 0 3 110 0 3 1 10 0 3 110 0 3 1 DHCP Server dhcpdhcp serverserver ip poolip pool 0 0 DHCP Server dhcp0 networknetwork 10 0 0 010 0 0 0 maskmask 255 255 255 0255 255 255 0 DHCP Server dhcp0 gateway listgateway list 10 0 0 110 0 0 1 DHCP Server dhcp0 dns listdns list 202 106 196 152202 106 196 152 202 106 196 115202 106 196 115 DHCP Server dhcp0 domain namedomain name DHCP Server dhcp0 quit DHCP Server dhcpdhcp serverserver ip poolip pool 1 1 DHCP Server dhcp1 networknetwork 10 0 1 010 0 1 0 maskmask 255 255 255 0255 255 255 0 DHCP Server dhcp1 gateway listgateway list 10 0 1 110 0 1 1 DHCP Server dhcp1 dns listdns list 202 106 196 152202 106 196 152 202 106 196 115202 106 196 115 DHCP Server dhcp1 domain namedomain name DHCP Server dhcp1 quit DHCP Server dhcpdhcp serverserver ip poolip pool 2 2 DHCP Server dhcp2 networknetwork 10 0 2 010 0 2 0 maskmask 255 255 255 0255 255 255 0 DHCP Server dhcp2 gateway listgateway list 10 0 2 110 0 2 1 10 0 0 210 0 0 2 DHCP Server dhcp2 dns listdns list 202 106 196 152202 106 196 152 202 106 196 115202 106 196 115 DHCP Server dhcp2 domain namedomain name DHCP Server dhcp2 quit DHCP Server dhcpdhcp serverserver ip poolip pool 3 3 DHCP Server dhcp3 networknetwork 10 0 3 010 0 3 0 maskmask 255 255 255 0255 255 255 0 S6506 交换实验上机指导书 实验 4 DHCP Relay 3 DHCP Server dhcp3 gateway listgateway list 10 0 3 110 0 3 1 DHCP Server dhcp3 dns listdns list 202 106 196 152202 106 196 152 202 106 196 115202 106 196 115 DHCP Server dhcp3 domain namedomain name 为了 DHCP Server 能够相应远端客户端主机 还需要配置路由 DHCP Server ospf enable DHCP Server ospf interface Ethernet 0 DHCP Server Ethernet0 ospf enable area 0 2验证 DHCP Server 是否正常 在和 DHCP Server 同一本地局域子网内 使用客户端自动获取 IP 地址 以 Win2000 为例 C ipconfig Windows 2000 IP Configuration Ethernet adapter Local Connection specific DNS Suffix IP Address 10 0 0 310 0 0 3 Subnet Mask 255 255 255 0 Default Gateway 10 0 0 1 DHCP 客户端成功获取 IP 地址 说明 DHCP Server 工作正常 下面我 们着手配置 S6506 上交换机的 DHCP Relay 配置 4 3 2 配置 DHCP Relay 1配置 DHCP Relay 分别在 SwitchA 和 SwitchB 上配置 DHCP Server 组 VLAN 接口 并 为 VLAN 接口制定 DHCP Server 组 SwitchA SwitchA dhcp server 1 ip 10 0 0 2 SwitchA vlan 2 SwitchA vlan2 port Ethernet 1 0 9 to Ethernet 1 0 16 S6506 交换实验上机指导书 实验 4 DHCP Relay 4 SwitchA vlan2 interface Vlan interface 2 SwitchA Vlan interface2 ip address 10 0 3 1 255 255 255 0 SwitchA Vlan interface2 dhcp server 1 SwitchA Vlan interface2 vlan 3 SwitchA vlan3 port Ethernet 1 0 17 to Ethernet 1 0 24 SwitchA vlan3 interface Vlan interface 3 SwitchA Vlan interface3 ip address 10 0 2 2 255 255 255 0 SwitchA Vlan interface3 dhcp server 1 SwitchB SwitchB dhcp server 1 ip 10 0 0 2 SwitchB interface Vlan interface 1 SwitchB Vlan interface1 ip address 10 0 0 1 255 255 255 0 SwitchB Vlan interface1 vlan 2 SwitchB vlan2 port Ethernet 1 0 9 to Ethernet 1 0 16 SwitchB vlan2 interface Vlan interface 2 SwitchB Vlan interface2 ip address 10 0 1 1 255 255 255 0 SwitchB Vlan interface2 dhcp server 1 SwitchB Vlan interface2 vlan 3 SwitchB vlan3 port Ethernet 1 0 17 to Ethernet 1 0 24 SwitchB vlan3 interface Vlan interface 3 SwitchB Vlan interface3 ip address 10 0 2 1 255 255 255 0 SwitchB Vlan interface3 dhcp server 1 2配置路由 为了保证交换机能够正确转发客户端的 DHCP 请求报文 必须保证客户 端和 Server 的连同性 所以需要配置路由 SwitchA SwitchA ospf SwitchA ospf area 0 SwitchA ospf area 0 0 0 0 network 10 0 2 0 0 0 0 255 SwitchA ospf area 0 0 0 0 network 10 0 3 0 0 0 0 255 S6506 交换实验上机指导书 实验 4 DHCP Relay 5 SwitchB SwitchB ospf SwitchB ospf area 0 SwitchB ospf area 0 0 0 0 network 10 0 0 0 0 0 0 255 SwitchB ospf area 0 0 0 0 network 10 0 1 0 0 0 0 255 SwitchB ospf area 0 0 0 0 network 10 0 2 0 0 0 0 255 3验证 DHCP Relay 工作是否正常 在 SwitchA 的 VLAN2 内 接客户端 Client C 使 Client C 自动获取 IP 地址成功 表明 DHCP Relay 成功 C ipconfig renew Windows 2000 IP Configuration Ethernet adapter Local Connection specific DNS Suffix IP Address 10 0 3 2 Subnet Mask 255 255 255 0 Default Gateway 10 0 3 1 我们还可以打开交换机的调试信息开关 先释放客户端的 IP 地址后 重 新获取 IP 地址 可以方便的看到交换机在 DHCP Relay 中转发的数据 包 terminal debugging Current terminal debugging is on debugging dhcp relay 0 8932720 DHCP 8 S1 dhcp debug From client to server Interface Vlan interface2 ServerGroupNo 1 Type dhcp discoverdhcp discover ClientHardAddress 0003 47b6 ebfb S6506 交换实验上机指导书 实验 4 DHCP Relay 6 ServerIpAddress 10 0 0 2 0 8933720 DHCP 8 S1 dhcp debug From server to client Interface Vlan interface2 ServerGroupNo 1 Type dhcp offerdhcp offer ClientHardAddress 0003 47b6 ebfb AllocatedIpAddress 10 0 3 2 0 8933981 DHCP 8 S1 dhcp debug From client to server Interface Vlan interface2 ServerGroupNo 1 Type dhcp requestdhcp request ClientHardAddress 0003 47b6 ebfb ServerIpAddress 10 0 0 2 0 8934244 DHCP 8 S1 dhcp debug From server to client Interface Vlan interface2 ServerGroupNo 1 Type dhcp ackdhcp ack ClientHardAddress 0003 47b6 ebfb AllocatedIpAddress 10 0 3 2 由此 我们可以清楚理解客户端在向 DHCP Server 申请 IP 地址时的流 程 S6506 交换实验上机指导书 实验 4 DHCP Relay 7 另外 我们还可以在 DHCP Server 上打开信息调试开关 方便的看到 DHCP Server 和 DHCP Agent 之间的报文交互 DHCP Server info center console DHCP Server debug dhcp server packet DHCP Server DhcpServer receive DHCPRELEASE from 00

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论