H3C交换机dhcp中继配置案例

阅读: 评论:0

如图所示,需求如下:
1、所有交换机互联端口均为trunk口,并允许所有VLAN通过
2、客户端需要从dhcp服务器获取地址,但网关不在dhcp服务器上,网关在右侧交换机,dhcp服务器交换机只有一个管理地址110.189.70.11
3、模拟客户端交换机启用SVI接口VLAN 110,并且配置地址时允许自动获取
DHCP服务器配置:
interface Vlan-interface70
ip address 10.189.70.11 255.255.255.0
#
dhcp enable
vlan 70
vlan 110
#
dhcp server ip-pool vlan110
gateway-list 10.189.74.1
network 10.189.74.0 mask 255.255.254.0
#
interface GigabitEthernet1/0/1
真空海绵吸盘port link-mode bridge
port link-type trunk
port trunk permit vlan all
#
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan all
网关中继配置:
heffSystem-view
#
低频声波吹灰器
dhcp enable
#
vlan 70
#
vlan 110
#
interface Vlan-interface70
ip address 10.189.70.1 255.255.255.0
#
网络对时interface Vlan-interface110
ip address 10.189.74.1 255.255.254.0
dhcp select relay
dhcp relay server-address 10.189.70.11
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk热轧酸洗
port trunk permit vlan all
客户端配置:
System-view
#
#
vlan 110
#
interface Vlan-interface110
ip address dhcp-alloc
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan all
#
验证配置
[SW3]display ip int brief
Vlan110                  up      up      10.189.74.2    --
#
[SW3]display dhcp client  verbose
Vlan-interface110 DHCP client information:
  Current state: BOUND
  Allocated IP: 10.189.74.2 255.255.254.0
  Allocated lease: 86400 seconds, T1: 40460 seconds, T2: 75600 seconds
  Lease from Aug 17 09:44:08 2022  to  Aug 18 09:44:08 2022
  DHCP server: 10.189.70.11
  Transaction ID: 0x10261807
  Default router: 10.189.74.1
  Client ID type: ascii(type value=00)
铜管焊接  Client ID value: 60dd.c839.0302-Vlan110
  Client ID (with type) hex: 0036-3064-642e-6338-
                            3339-2e30-3330-322d-
                            566c-616e-3131-30
  T1 will timeout in 0 days 10 hours 47 minutes 56 seconds

本文发布于:2023-06-12 07:18:54,感谢您对本站的认可!

本文链接:https://patent.en369.cn/patent/1/137078.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:交换机   服务器   地址   配置   客户端   获取   网关   真空
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 369专利查询检索平台 豫ICP备2021025688号-20 网站地图