当前位置:网站首页>Experiment 9 (Exchange Comprehensive Experiment)
Experiment 9 (Exchange Comprehensive Experiment)
2022-08-06 08:53:00 【The lazy king eats wolves】

实验要求
1,内网IP地址使用172.16.0.0/16分配
2,sw1和sw2之间互为备份
3,VRRP/STP/VLAN/Eth-trunk均使用
4,所有PC均通过DHCP获取IP地址
5,ISP只能配置IP地址
6,所有电脑可以正常访问ISP路由器环回
实验步骤
1,划分IP地址
R2 LoopBack0 1.1.1.1/24
G0/0/0 12.1.1.2/24
R1 G0/0/0 172.16.0.2/30
G0/0/1 12.1.1.1/24
G0/0/2 172.16.0.6/30
SW1 SVI 1 172.16.1.1/25
SVI 2 172.16.1.129/25
VRRP 172.16.126
SVI 100 172.16.0.1/30
SW2 VI 1 172.16.1.2/25
SVI 2 172.16.1.130/25
VRRP 172.16.1.254
SVI 100 172.16.0.5/30
2,配置eth-trunk
3,配置trunk干道

4,VLAN配置
SW1
vlan 2
q
1
2
SW2
vlan 2
q
1
2
SW3
vlan 2
q
int e0/0/2
port link-type access
port default vlan 2
1
2
3
4
5
SW4
vlan 2
q
int e0/0/2
port link-type access
port default vlan 2
5,配置STP
sw1

sw2

sw3
sw4
6,配置SVI和VRRP
配置DHCP
sw1
int Vlanif 1
ip add 172.16.1.1 25
int vlan 2
ip add 172.16.1.129 25
q
int Vlanif 1
vrrp vrid 1 virtual-ip 172.16.1.126 #创建虚拟IP 172.16.1.126
vrrp vrid 1 priority 120 #Adjust the priority to120
vrrp vrid 1 track interface GigabitEthernet 0/0/1 reduced 30
#上行链路追踪,There is a problem with the link,优先级下调30
int Vlanif 2
vrrp vrid 1 virtual-ip 172.16.1.254 #作为vlan2 的备份
sw2
int Vlanif 1
ip add 172.16.1.2 25
int vlan 2
ip add 172.16.1.130 25
q
int Vlanif 1
vrrp vrid 1 virtual-ip 172.16.1.126
int Vlanif 2
vrrp vrid 1 virtual-ip 172.16.1.254
vrrp vrid 1 priority 120
vrrp vrid 1 track interface GigabitEthernet 0/0/1 reduced 30
7,配置DHCP
sw1
dhcp enable
ip pool g1
network 172.16.1.0 mask 25
gateway-list 172.16.1.126
dns-list 8.8.8.8
q
ip pool g2
network 172.16.1.128 mask 25
gateway-list 172.16.1.254
dns-list 8.8.8.8
q
int Vlanif 1
dhcp select global
int vlan 2
dhcp select global
sw2
dhcp enable
ip pool g1
network 172.16.1.0 mask 25
gateway-list 172.16.1.126
dns-list 8.8.8.8
q
ip pool g2
network 172.16.1.128 mask 25
gateway-list 172.16.1.254
dns-list 8.8.8.8
q
int Vlanif 1
dhcp select global
int vlan 2
dhcp select global
边栏推荐
- [图]Edge 104稳定版发布:引入“增强安全模式”
- 需要具备哪些能力,才能算得上是一个合格的软件测试工程师...
- ROS error [rospack] Error: package ‘.....‘ not found
- CPU Architecture at a Glance
- CSDN official plug-in
- 第十六天(配置BPDU,TCN BPDU)
- dalle2: hierarchical text-conditional image generation with clip
- VLAN实验
- UNIX environment advanced programming - the first chapter
- Program development that runs the game is prohibited
猜你喜欢

深度学习——怎样读取本地数据作为训练集和测试集

Use the aggird component to implement sliding request paging to achieve the effect of infinite scrolling

From "prairie cattle" to "digital cattle": Mengniu's digital transformation!

海外媒体知名媒体宣发:欧美媒体发稿的基本流程

VLAN实验

18 days (link aggregation of configuration, the working process of the VRRP, IPV6 configuration)

自动化测试定位不到元素?可能是 frame 在搞鬼

一文3000字解析Pytest单元测试框架【保姆级教程】

Go 语言快速入门指南:结构体

需要具备哪些能力,才能算得上是一个合格的软件测试工程师...
随机推荐
Leetcode77. 组合
深度学习——怎样读取本地数据作为训练集和测试集
About the third parameter of np.zeros(): c represents similar to c language, row priority; F represents column priority record
Timed task appears A component required a bean named ‘xxx‘ that could not be found
Hd 2022多校训练(5) BuyFigrines
字节跳动最爱问的智力题总结
/var/log/messages is empty
代码签名证书多少钱?
老人没有继承人,其去世后房屋应归谁?
Native js implements mouse following to display floating box information
dos命令大全 黑客必知的DOS命令集合
Linux——MySQL安装的几种方式
Two important self-learning functions in pytorch dir(); help()
从“草原牛”到“数字牛”:蒙牛的数字化转型之道!
Stone Atom Technology officially joined the openGauss community
第十八天(链路聚合的配置、VRRP的工作过程、IPV6的配置)
山石发声 | 做好安全运营,没有你想象的那么难
剑指 Offer 39. 数组中出现次数超过一半的数字
海外媒体知名媒体宣发:欧美媒体发稿的基本流程
深度学习——以花朵识别为例,分析构造神经网络时用到的各个类构造函数(Dense、Conv2D、Flatten等)