dhcp动态获取ip 详细实验流程

article/2025/10/20 2:35:08

简介

DHCP(动态主机配置协议)是一个局域网的网络协议。指的是由服务器控制一段IP地址范围,客户机登录服务器时就可以自动获得服务器分配的IP地址和子网掩码。默认情况下,DHCP作为Windows Server的一个服务组件不会被系统自动安装,还需要管理员手动安装并进行必要的配置。

DHCP原理

DHCP协议采用UDP作为传输协议,主机发送请求消息到DHCP服务器的67号端口,DHCP服务器回应应答消息给主机的68号端口
1、DHCP Client以广播的方式发出DHCP Discover报文。
2、所有的DHCP Server都能够接收到DHCP Client发送的DHCP Discover报文,所有的DHCP Server都会给出响应,向DHCP Client发送一个DHCP Offer报文。 DHCP Offer报文中“Your(Client) IP Address”字段就是DHCP Server能够提供给DHCP Client使用的IP地址,且DHCP Server会将自己的IP地址放在“option”字段中以便DHCP Client区分不同的DHCP Server。DHCP Server在发出此报文后会存在一个已分配IP地址的纪录。
3、DHCP Client只能处理其中的一个DHCP Offer报文,一般的原则是DHCP Client处理最先收到的DHCP Offer报文. DHCP Client会发出一个广播的DHCP Request报文,在选项字段中会加入选中的DHCP Server的IP地址和需要的IP地址。
4、DHCP Server收到DHCP Request报文后,判断选项字段中的IP地址是否与自己的地址相同。如果不相同,DHCP Server不做任何处理只清除相应IP地址分配记录;如果相同,DHCP Server就会向DHCP Client响应一个DHCP ACK报文,并在选项字段中增加IP地址的使用租期信息。
5、DHCP Client接收到DHCP ACK报文后,检查DHCP Server分配的IP地址是否能够使用。如果可以使用,则DHCP Client成功获得IP地址并根据IP地址使用租期自动启动续延过程;如果DHCP Client发现分配的IP地址已经被使用,则DHCP Client向DHCPServer发出DHCP Decline报文,通知DHCP Server禁用这个IP地址,然后DHCP Client开始新的地址申请过程。
6、DHCP Client在成功获取IP地址后,随时可以通过发送DHCP Release报文释放自己的IP地址,DHCP Server收到DHCP Release报文后,会回收相应的IP地址并重新分配。 在使用租期超过50%时刻处,DHCP Client会以单播形式向DHCP Server发送DHCPRequest报文来续租IP地址。如果DHCP Client成功收到DHCP Server发送的DHCP ACK报文,则按相应时间延长IP地址租期;如果没有收到DHCP Server发送的DHCP ACK报文,则DHCP Client继续使用这个IP地址 .在使用租期超过87.5%时刻处,DHCP Client会以广播形式向DHCP Server发送DHCPRequest报文来续租IP地址。如果DHCP Client成功收到DHCP Server发送的DHCP ACK报文,则按相应时间延长IP地址租期;如果没有收到DHCP Server发送的DHCP ACK报文,则DHCP Client继续使用这个IP地址,直到IP地址使用租期到期时,DHCP Client才会向DHCP Server发送DHCP Release报文来释放这个IP地址,并开始新的IP地址申请过程。 需要说明的是:DHCP客户端可以接收到多个DHCP服务器的DHCPOFFER数据包,然后可能接受任何一个DHCPOFFER数据包,但客户端通常只接受收到的第一个DHCPOFFER数据包。另外,DHCP服务器DHCPOFFER中指定的地址不一定为最终分配的地址,通常情况下,DHCP服务器会保留该地址直到客户端发出正式请求。 正式请求DHCP服务器分配地址DHCPREQUEST采用广播包,是为了让其它所有发送DHCPOFFER数据包的DHCP服务器也能够接收到该数据包,然后释放已经OFFER(预分配)给客户端的IP地址。
**

实验过程

**
在这里插入图          片描述

LSW1配置
The device is running!

huawei>u t m /关闭终端监视器

Info: Current terminal monitor is off.
huewei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysn
[Huawei]sysname
[Huawei]sysname sw
[Huawei]sysname sw1
[sw1]v b 10 20
Info: This operation may take a few seconds. Please wait for a moment…done.
[sw1]int e0/0/1
[sw1-Ethernet0/0/1]p l a /接口类型为access
[sw1-Ethernet0/0/1]p d v 10
[sw1-Ethernet0/0/1]un sh
Info: Interface Ethernet0/0/1 is not shutdown.
[sw1-Ethernet0/0/1]int e0/0/2
[sw1-Ethernet0/0/2]p l a
[sw1-Ethernet0/0/2]p d v 20
[sw1-Ethernet0/0/2]un sh
Info: Interface Ethernet0/0/2 is not shutdown.
[sw1-Ethernet0/0/2]q
[sw1]int e0/0/3
[sw1-Ethernet0/0/3]p l a
[sw1-Ethernet0/0/3]p d v 10
[sw1-Ethernet0/0/3]un sh
Info: Interface Ethernet0/0/3 is not shutdown.
[sw1-Ethernet0/0/3]int e0/0/4
[sw1-Ethernet0/0/4]p l a
[sw1-Ethernet0/0/4]p d v 20
[sw1-Ethernet0/0/4]un sh
Info: Interface Ethernet0/0/4 is not shutdown.
[sw1-Ethernet0/0/4]q
[sw1]q
p l t
^
Error:Ambiguous command found at ‘^’ position.
sys
Enter system view, return user view with Ctrl+Z.
[sw1]int g0/0/1
[sw1-GigabitEthernet0/0/1]p l t /接口类型为trunk
[sw1-GigabitEthernet0/0/1]p t a v 10 20
[sw1-GigabitEthernet0/0/1]un sh
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[sw1-GigabitEthernet0/0/1] User interface con0 is available

Please Press ENTER.

sa
save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Jun 24 2020 11:54:09-08:00 sw1 %%01CFM/4/SAVE(l)[0]:The user chose Y when decidi
ng whether to save the configuration to the device.
Now saving the current configuration to the slot 0.
Save the configuration successfully.

AR1配置
The device is running!

u t m
Info: Current terminal monitor is off.
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysn
[Huawei]sysname AR1
[AR1]int g0/0/0
[AR1-GigabitEthernet0/0/0]ip add 12.0.0.1 24
[AR1-GigabitEthernet0/0/0]un sh
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[AR1-GigabitEthernet0/0/0]q
[AR1]int g0/0/1.10
[AR1-GigabitEthernet0/0/1.10]q
[AR1]dhcp e
[AR1]dhcp enable /启动dhcp
Info: The operation may take a few seconds. Please wait for a moment.done.
[AR1]int g0/0/1.10
[AR1-GigabitEthernet0/0/1.10]dhcp t
[AR1-GigabitEthernet0/0/1.10]dhcp te
[AR1-GigabitEthernet0/0/1.10]dhcp d
[AR1-GigabitEthernet0/0/1.10]dhcp do
[AR1-GigabitEthernet0/0/1.10]ddo
[AR1-GigabitEthernet0/0/1.10]do
[AR1-GigabitEthernet0/0/1.10]dot1q t
[AR1-GigabitEthernet0/0/1.10]dot1q termination v
[AR1-GigabitEthernet0/0/1.10]dot1q termination vid 10
[AR1-GigabitEthernet0/0/1.10]d
[AR1-GigabitEthernet0/0/1.10]dh
[AR1-GigabitEthernet0/0/1.10]dhcp s
[AR1-GigabitEthernet0/0/1.10]ip add 192.168.10.1 24
[AR1-GigabitEthernet0/0/1.10]un sh
Info: Interface GigabitEthernet0/0/1.10 is not shutdown.
[AR1-GigabitEthernet0/0/1.10]dhcp s
GigabitEthernet0/0/1.10]d
[AR1-GigabitEthernet0/0/1.10]dh
[AR1-GigabitEthernet0/0/1.10]dhcp s
[AR1-GigabitEthernet0/0/1.10]dhcp sr
[AR1-GigabitEthernet0/0/1.10]dhcp sev
[AR1-GigabitEthernet0/0/1.10]dhcp ser
[AR1-GigabitEthernet0/0/1.10]dhcp server d
[AR1-GigabitEthernet0/0/1.10]dhcp server dns-list 2.2.2.2 8.8.8.8
[AR1-GigabitEthernet0/0/1.10]dh
[AR1-GigabitEthernet0/0/1.10]dhcp s
[AR1-GigabitEthernet0/0/1.10]dhcp ser
[AR1-GigabitEthernet0/0/1.10]dhcp server l
[AR1-GigabitEthernet0/0/1.10]dhcp server lease d
[AR1-GigabitEthernet0/0/1.10]dhcp server lease day 5
[AR1-GigabitEthernet0/0/1.10]dis th
[AR1-GigabitEthernet0/0/1.10]dis this
[AR1-GigabitEthernet0/0/1.10]dis this
[V200R003C00]

interface GigabitEthernet0/0/1.10
dot1q termination vid 10
ip address 192.168.10.1 255.255.255.0
dhcp select interface
dhcp server lease day 5 hour 0 minute 0
dhcp server dns-list 2.2.2.2 8.8.8.8

return
[AR1-GigabitEthernet0/0/1.10]int g0/0/1.20
[AR1-GigabitEthernet0/0/1.20]d
[AR1-GigabitEthernet0/0/1.20]o
[AR1-GigabitEthernet0/0/1.20]do
[AR1-GigabitEthernet0/0/1.20]dot1q t
[AR1-GigabitEthernet0/0/1.20]dot1q termination v
[AR1-GigabitEthernet0/0/1.20]dot1q termination vid 20
[AR1-GigabitEthernet0/0/1.20]ip add 192.168.20.1 24
[AR1-GigabitEthernet0/0/1.20]se
[AR1-GigabitEthernet0/0/1.20]sel
[AR1-GigabitEthernet0/0/1.20]sel
[AR1-GigabitEthernet0/0/1.20]sele
[AR1-GigabitEthernet0/0/1.20]dh
[AR1-GigabitEthernet0/0/1.20]dhcp i
[AR1-GigabitEthernet0/0/1.20]dhcp im
[AR1-GigabitEthernet0/0/1.20]dhcp in
[AR1-GigabitEthernet0/0/1.20]dhcp int
[AR1-GigabitEthernet0/0/1.20]dhcp s
[AR1-GigabitEthernet0/0/1.20]dhcp select i
[AR1-GigabitEthernet0/0/1.20]dhcp select interface
[AR1-GigabitEthernet0/0/1.20]dh
[AR1-GigabitEthernet0/0/1.20]dhcp se
[AR1-GigabitEthernet0/0/1.20]dhcp ser
[AR1-GigabitEthernet0/0/1.20]dhcp server dn
[AR1-GigabitEthernet0/0/1.20]dhcp server dns-list 2.2.2.2 8.8.8.8
[AR1-GigabitEthernet0/0/1.20]dhcp s
[AR1-GigabitEthernet0/0/1.20]dhcp ser
[AR1-GigabitEthernet0/0/1.20]dhcp server 1
^
Error: Unrecognized command found at ‘^’ position.
[AR1-GigabitEthernet0/0/1.20]dhcp ser
[AR1-GigabitEthernet0/0/1.20]dhcp server l
[AR1-GigabitEthernet0/0/1.20]dhcp server lease d
[AR1-GigabitEthernet0/0/1.20]dhcp server lease day 6
[AR1-GigabitEthernet0/0/1.20]un sh
Info: Interface GigabitEthernet0/0/1.20 is not shutdown.
[AR1-GigabitEthernet0/0/1.20]dis this
[V200R003C00]

interface GigabitEthernet0/0/1.20
dot1q termination vid 20
ip address 192.168.20.1 255.255.255.0
dhcp select interface
dhcp server lease day 6 hour 0 minute 0
dhcp server dns-list 2.2.2.2 8.8.8.8

return
[AR1-GigabitEthernet0/0/1.20]q
[AR1]int g0/0/1.10
[AR1-GigabitEthernet0/0/1.10]a
[AR1-GigabitEthernet0/0/1.10]arp b
[AR1-GigabitEthernet0/0/1.10]arp broadcast en
[AR1-GigabitEthernet0/0/1.10]arp broadcast enable
[AR1-GigabitEthernet0/0/1.10]un sh
Info: Interface GigabitEthernet0/0/1.10 is not shutdown.
[AR1-GigabitEthernet0/0/1.10]int g0/0/1.20
[AR1-GigabitEthernet0/0/1.20]a
[AR1-GigabitEthernet0/0/1.20]arp b
[AR1-GigabitEthernet0/0/1.20]arp broadcast e
[AR1-GigabitEthernet0/0/1.20]arp broadcast enable
[AR1-GigabitEthernet0/0/1.20]un sh
Info: Interface GigabitEthernet0/0/1.20 is not shutdown.
[AR1-GigabitEthernet0/0/1.20]q
[AR1]ip ro
[AR1]ip route-
[AR1]ip route-static 15.0.0.0 24 12.0.0.2
[AR1]

Please check whether system data has been changed, and save data in time

Configuration console time out, please press any key to log on

sa
save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:u
Error: Input error

sa
save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait…
Configuration file had been saved successfully

AR2配置
The device is running!

u t m
Info: Current terminal monitor is off.
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysn
[Huawei]sysname AR2
[AR2]dh
[AR2]dhcp en
[AR2]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[AR2]int g0/0/0
[AR2-GigabitEthernet0/0/0]ip add 12.0.0.2 24
[AR2-GigabitEthernet0/0/0]int g0/0/1
[AR2-GigabitEthernet0/0/1]ip add 12.0.0.1 24
Error: The specified address conflicts with another address.
[AR2-GigabitEthernet0/0/1]ip add 15.0.0.1 24
[AR2-GigabitEthernet0/0/1]int g0/0/0
[AR2-GigabitEthernet0/0/0]dis th
[AR2-GigabitEthernet0/0/0]dis thIS
[V200R003C00]

interface GigabitEthernet0/0/0
ip address 12.0.0.2 255.255.255.0

return
[AR2-GigabitEthernet0/0/0]
[AR2-GigabitEthernet0/0/0]INT
[AR2-GigabitEthernet0/0/0]int g0/0/1
[AR2-GigabitEthernet0/0/1]dh
[AR2-GigabitEthernet0/0/1]dhcp en
[AR2-GigabitEthernet0/0/1]dhcp ena
[AR2-GigabitEthernet0/0/1]dhcp se
[AR2-GigabitEthernet0/0/1]dhcp select g
[AR2-GigabitEthernet0/0/1]dhcp select global
[AR2-GigabitEthernet0/0/1]q
[AR2]ip pool dhcp 15
^
Error:Too many parameters found at ‘^’ position.
[AR2]ip pool dhcp15
Info: It’s successful to create an IP address pool.
[AR2-ip-pool-dhcp15]n
[AR2-ip-pool-dhcp15]ne
[AR2-ip-pool-dhcp15]network 15.0.0.0 mask 24
[AR2-ip-pool-dhcp15]ga
[AR2-ip-pool-dhcp15]gateway-list 15.0.0.1
[AR2-ip-pool-dhcp15]dn
[AR2-ip-pool-dhcp15]dns-list 8.8.8.8 2.2.2.2
[AR2-ip-pool-dhcp15]

Please check whether system data has been changed, and save data in time

Configuration console time out, please press any key to log on

sys
Enter system view, return user view with Ctrl+Z.
[AR2]ip p
[AR2]ip poo
[AR2]ip pool d
[AR2]ip pool dhcp15
[AR2-ip-pool-dhcp15]st
[AR2-ip-pool-dhcp15]static-bind ip-
[AR2-ip-pool-dhcp15]static-bind ip-address 15.0.0.188 mac
[AR2-ip-pool-dhcp15]static-bind ip-address 15.0.0.188 mac-address 54-89-98-

sys
Enter system view, return user view with Ctrl+Z.
[AR2]ip pool dhcp15
[AR2-ip-pool-dhcp15]static-bind ip-address 15.0.0.188 mac-address 5489-9849-4E
44
[AR2-ip-pool-dhcp15]ip ro
[AR2-ip-pool-dhcp15]q
[AR2]ip ro
[AR2]ip route-
[AR2]ip route-static 0.0.0.0 0.0.0.0
^
Error:Incomplete command found at ‘^’ position.
[AR2]ip route-static 0.0.0.0 0.0.0.0 12.0.0.1
[AR2]dis this
[V200R003C00]

sysname AR2

snmp-agent local-engineid 800007DB03000000000000
snmp-agent

clock timezone China-Standard-Time minus 08:00:00

portal local-server load portalpage.zip

drop illegal-mac alarm

set cpu-usage threshold 80 restore 75

dhcp enable

ip route-static 0.0.0.0 0.0.0.0 12.0.0.1

return
[AR2]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 1

Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 12.0.0.2/24 up up
GigabitEthernet0/0/1 15.0.0.1/24 up up
GigabitEthernet0/0/2 unassigned down down
NULL0 unassigned up up(s)
[AR2]dis ip ro
[AR2]dis ip routing-table
Route Flags: R - relay, D - download to fib

Routing Tables: Public
Destinations : 11 Routes : 11

Destination/Mask Proto Pre Cost Flags NextHop Interface

    0.0.0.0/0   Static  60   0          RD   12.0.0.1        GigabitEthernet

0/0/0
12.0.0.0/24 Direct 0 0 D 12.0.0.2 GigabitEthernet
0/0/0
12.0.0.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/0
12.0.0.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/0
15.0.0.0/24 Direct 0 0 D 15.0.0.1 GigabitEthernet
0/0/1
15.0.0.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/1
15.0.0.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/1
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0

[AR2]

Please check whether system data has been changed, and save data in time

Configuration console time out, please press any key to log on

sa
save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait…
Configuration file had been saved successfully


http://chatgpt.dhexx.cn/article/3LxEZTFn.shtml

相关文章

H3C交换机配置镜像命令及示例

配置H3C镜像(端口镜像配置命令) 1.1.1 display mirroring-group display mirroring-group命令用来显示镜像组的信息 【命令】display mirroring-group { group-id | all | local | remote-destination | remote-source }【视图】任意视图【缺省用户角…

静态路由

路由概括 路由:从源主机到目标的转发过程 路由表的形式 路由器中维护的路由条目的集合 路由表根据路由表做路径选择 根据路由表转发数据 路由表的形式 直接网段 配置IP地址、端口哈UP状态、形成直连路由 非直连网段 静态路由 静态路由是由管理员在路由器中手动…

静态路由实验作业

第一步:划分子网 一共需要14个网段,包括6个骨干链路和8个环回接口。 在192.168.1.0/24上进行子网划分,划分如下: 192.168.1.0/24192.168.1.000.00000/27 ----骨干链路192.168.1.000 000 00/30 --- 192.168.1.0/30192.168.1.000…

生成树(STP)

1.详细说明STP的工作原理 在二层交换网络中,逻辑的阻塞部分的接口,实现从跟交换机到所有节点唯一的路径称为最佳路径,生成一个没有环路的拓扑。当最佳路径出现故障时,个别被阻塞的接口将打开,形成备份链路。 2. STP的…

秒懂!详细!DHCP中继

DHCP中继原理 1 当dhcp client 启动并进行dhcp 初始化时,它会在本地网络广播配置请求报文。 2 如果本地网络存在dhcp server,则可以直接进行dhcp 配置,不需要dhcp relay。 3 如果本地网络没有dhcp server,则与本地网络相连的具有…

H3C_IRF_BFD配置

H3C_IRF_BFD配置 IRF典型配置举例(BFD MAD检测方式)1. 组网需求  由于网络规模迅速扩大,当前中心交换机(Device A)转发能力已经不能满足需求,现需要在保护现有投资的基础上将网络转发能力提高一倍,并要求网络易管理、易维护。2. 组网图  IRF 典型配置组网图(BFD M…

ENSP之静态、缺省路由的配置实验

目录 一、学习目标 二、实验前的准备 1. 拓扑图: 2. ENSP版本: 3. 路由器S1、S2、S3 三、实验步骤: 1. 在R1、R2、R3上配置接口ip地址以及回环口地址 2. 执行ping命令,测试路由器之间的连通性 3. 执行ping命令,…

5台路由1台交换机环回实验

左下角为实验要求&#xff0c;上为设备所在位置。 大致思路&#xff1a;首先先写清几台路由的地址&#xff0c;为后续的连接做到基础 在CRT中依次写下地址 R1 <Huawei> <Huawei>sys <Huawei>system-view Enter system view, return user view with CtrlZ…

环路检测技术

概述 网络中的环路会导致设备对广播、组播以及未知单播等报文进行重复发送&#xff0c;造成网络资源浪费甚至网络瘫痪。为了能够及时发现二层网络中的环路&#xff0c;避免对整个网络造成严重影响&#xff0c;需要提供一种检测技术&#xff0c;使网络中出现环路时能及时通知用…

6 个网络实战案例,横扫 RIP 所有场景......

上文《图解 RIP 》对 RIP 进行了全方位的原理讲解&#xff0c;但仅仅知道什么 RIP 是不够用的&#xff0c;现在来分享下 RIP 是怎么用的&#xff0c;即 RIP 网络实操&#xff0c;看看这些技术是怎么在网络设备上面实现的&#xff0c;如何用 RIP 解决实际的网络问题。 RIPv2 基础…

IRF

IRF IRF技术具有管理渐变、网络扩展能力强、可靠性高等优点。 前提条件 两个系统启动后 配置swi-2 1、线路连接好&#xff0c;修改主机名 [H3C]sysname swi-1 [swi-1]2、shutdown 用于IRF的端口 [swi-1]interface range Ten-GigabitEthernet 1/0/49 to Ten-GigabitEthe…

学习日记——(路由与交换技术)OSPF协议

一、相关知识 1、基本概念 OSPF是一个内部网关协议&#xff0c;用于单一自治系统内决策路由OSPF是链路状态路由协议OSPF通过路由器之间通告网络接口的状态来建立链路状态数据库&#xff0c;生成最短路径树&#xff0c;每个OSPF路由器使用这些最短路径构造路由表OSPF路由器利用…

【ENSP模拟器】RIP(HCNP)——RIPv2的配置及实现

目录 案例1&#xff1a;RIPv2基础配置 R1的配置&#xff1a; R2的配置&#xff1a; R3的配置&#xff1a; PC1的配置&#xff1a; PC2的配置&#xff1a; 案例2&#xff1a;Silent-Interface R1的配置如下&#xff1a; R2的配置如下&#xff1a; 案例3&#xff1a;RI…

华为路由器用Linux开发,华为路由交换设备配置综合实验(实验六合一)

华为路由交换设备配置综合实验&#xff1a; 单臂路由、三层交换、动静路由、VRRP路由、DHCP中继、捆绑Etrunk链路(实验六合一) 实验拓扑图&#xff1a; 目的&#xff1a;实现全网各个PC之间的互联互通 全部实验脚本如下&#xff0c;以下脚本直接复制即可使用 一、实现右部DHCP中…

排错-通过LLDP信息查找环路(以H3C S5100为例)

故障现象 某栋宿舍楼中有多个用户报修&#xff0c;现场查勘后发现室内进线接主机无法获取地址&#xff0c;物理线路连通。因假期期间&#xff0c;只有少数用户留校&#xff0c;不能确定是否是该栋所有用户都无法上网。 组网信息 如图&#xff0c;两台接入交换机光纤级联&…

BGP综合实验

目录 实验说明 开始实验 1.在SW4上进行配置 &#xff08;1&#xff09;配置VLAN和接口划入VLAN &#xff08;2&#xff09;配置trunk干道 &#xff08;3&#xff09;R10上配置子接口 &#xff08;4&#xff09;测试 2.配置IP地址 3.总部、分部、骨干网获取各自部分的路由…

XX市高中网络拓扑整体规划配置

2台核心交换机irf配置&#xff1a; <HX_A>dis cu <HX_A>dis current-configuration version 7.1.075, Alpha 7571 sysname HX_A irf mac-address persistent timer irf auto-update enable undo irf link-delay irf member 1 priority 32 irf member 2 priority 1…

[计算机网络】【网络设备】网关冗余和负载平衡 (HSRP)

为了减少交换机故障的影响&#xff0c;交换上有STP技术。然而作为网关的路由器出故障了&#xff0c;又有什么办法&#xff1f;HSRP和VRRP是最常用的网关冗余技术。HSRP和VRRP类似&#xff0c;由多个路由器共同组成一个组&#xff0c;虚拟一个网关&#xff0c;其中的一台路由器处…

HCIP静态路由实验(一):

第一步&#xff1a;划分地址 由实验要求可知R1、R2、R4各有两个用户网段&#xff0c;且R5需要一个用户网段&#xff0c;所以在此处我们可以将R1、R2、R4的用户网段看成一个&#xff0c;然后再进行二次划分&#xff0c;然后加上骨干网段&#xff0c;我们一共需要8个网段: 192.16…

ensp关于interface GigabitEthernet指令的报错.(AR3260接口配置)

1. 上面的问题是因为忘了system-view的命令 这样就可以接入接口的配置了。 并且当你对其他接口进行配置前都需要system-view指令哦。 2. 指令错误&#xff0c;指令如上。 3.接口不存在&#xff0c;如下 在不存在0/0/3的接口情况下就会报错。