当前位置:网站首页>hcip第十天
hcip第十天
2022-08-05 22:51:00 【m0_64365851】

1.搭建拓扑
2.IP配置
R1
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 10.0.12.1 24
[r1-GigabitEthernet0/0/0]int loop 0
[r1-LoopBack0] ip add 1.1.1.1 24
R2
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip add 10.0.12.2 24
[r2-GigabitEthernet0/0/0]int g0/0/1
[r2-GigabitEthernet0/0/1]ip add 172.16.23.2 24
[r2-GigabitEthernet0/0/1]int g0/0/2
[r2-GigabitEthernet0/0/2]ip add 172.16.25.2 24
[r2-GigabitEthernet0/0/2]int loop 0
[r2-LoopBack0] ip add 172.16.0.2 24
[r2-LoopBack0]int loop 1
[r2-LoopBack1]ip add 172.16.2.1
R3
R4
R5
R6

R7
R8
3.ospf
[R2]ospf 2
[R2-ospf-2]area 0
[R2-ospf-2-area 0]nework 172.16.0.0 0.0.255.255
4. 把AS2的用户网段更改为BROADCAST
[R2] intface loopback 1
[R2-LoopBack1]ospf network-type broadcast
5.建立bgp邻居关系
[R1]bgp 1
[R1-bgp]peer 10.0.12.2 as-number 2
[R2]bgp 64512
[R2-bgp]confederation id 2
[R2-bgp]confederation peer-as 64513
[R2-bgp]peer 10.0.12.1 as-number 1
[R2-bgp]peer 172.16.0.3 as-number 64512
[R2-bgp]peer 172.16.0.3 connect-interface LoopBack0
[R2-bgp]peer 172.16.0.3 next-hop-local
[R2-bgp]peer 172.16.0.5 as-number 64513
[R2-bgp]peer 172.16.0.5 ebgp-max-hop 2
[R2-bgp]peer 172.16.0.5 connect-interface LoopBack0
[R3]bgp 64512
[R3-bgp]confederation id 2
[R3-bgp]peer 172.16.0.2 as-number 64512
[R3-bgp]peer 172.16.0.2 connect-interface LoopBack0
[R3-bgp]peer 172.16.0.4 as-number 64512
[R3-bgp]peer 172.16.0.4 connect-interface LoopBack0
[R3-bgp]peer 172.16.0.2 next-hop-local
[R3-bgp]peer 172.16.0.4 next-hop-local
[R4]bgp 64512
[R4-bgp]confederation id 2
[R4-bgp]confederation peer-as 64513
[R4-bgp]peer 172.16.0.3 as-number 64512
[R4-bgp]peer 172.16.0.3 connect-interface LoopBack0
[R4-bgp]peer 172.16.0.7 as-number 64513
[R4-bgp]peer 172.16.0.7 ebgp-max-hop 2
[R4-bgp]peer 172.16.0.7 connect-interface LoopBack0
[R4-bgp]peer 172.16.0.3 next-hop-local
[R5]bgp 64513
[R5-bgp]confederation id 2
[R5-bgp]confederation peer-as 64512
[R5-bgp]peer 172.16.0.2 as-number 64512
[R5-bgp]peer 172.16.0.2 ebgp-max-hop 2
[R5-bgp]peer 172.16.0.2 connect-interface LoopBack0
[R5-bgp]peer 172.16.0.6 as-number 64513
[R5-bgp]peer 172.16.0.6 connect-interface LoopBack0
[R5-bgp]peer 172.16.0.6 next-hop-local
[R6]bgp 64513
[R6-bgp]confederation id 2
[R6-bgp]peer 172.16.0.5 as-number 64513
[R6-bgp]peer 172.16.0.5 connect-interface LoopBack0
[R6-bgp]peer 172.16.0.7 as-number 64513
[R6-bgp]peer 172.16.0.7 connect-interface LoopBack0
[R6-bgp]peer 172.16.0.5 next-hop-local
[R6-bgp]peer 172.16.0.7 next-hop-local
[R7]bgp 64513
[R7-bgp]confederation id 2
[R7-bgp]confederation peer-as 64512
[R7-bgp]peer 10.0.78.8 as-number 3
[R7-bgp]peer 172.16.0.4 as-number 64512
[R7-bgp]peer 172.16.0.4 ebgp-max-hop 2
[R7-bgp]peer 172.16.0.4 connect-interface LoopBack0
[R7-bgp]peer 172.16.0.6 as-number 64513
[R7-bgp]peer 172.16.0.6 connect-interface LoopBack0
[R7-bgp]peer 172.16.0.6 next-hop-local
[R8]bgp 3
[R8-bgp]peer 10.0.78.7 as-number 2
6.建立反射器和宣告:


[R1]
network 1.1.1.0 255.255.255.0
[R8]
network 2.2.2.0 255.255.255.0
[R2]
import-route ospf 1
[R7]
import-route ospf 1
实验结果

边栏推荐
- Meet Alluxio, the "middleman" in MRS
- Nanoprobes丨Nanogold 印迹和免疫化学技术
- excel函数从0到掌握(官方文档+自我解析)
- 鲲鹏开发者创享日2022:鲲鹏全栈创新 与开发者共建数字湖南
- 休闲卤味的商业江湖里,周黑鸭的巨变与出路
- [Raspberry Pi] Install OpenWrt on Raspberry Pi
- Learn these VRay renderer HDRI lighting tricks and get 3ds Max with ease
- SwiftUI中应用Hero动画(Hero Animation)时一些需要填的坑
- 树莓派红外控制空调
- C#调用 kernel32.dll
猜你喜欢

【CocosCreator 3.x】实现场景小地图效果 => 攻略

Nanoprobes Nanogold标签:助力显示SAP-1 的分布和功能

APS Solutions for Rubber Manufacturing

Redis 定长队列的探索和实践

Basic use of CardView, DrawerLayout sliding menu, Fragment

ESXI7.0主机安装群晖DS3617xs

SwiftUI中应用Hero动画(Hero Animation)时一些需要填的坑

当你收到面试通知后,通过如下的准备可以大大提升面试成功率

APS Solutions for Printing Industry

代码越写越乱?那是因为你没用责任链!
随机推荐
从零开始配置 vim(8)——文件类型检测
AWTK开发编译环境踩坑记录2(VS Code检测到#include 错误)
微信小程序自定义组件的计算属性功能
Application of MES and APS in Food Processing Industry
头脑风暴:零钱兑换
push message to mobile
登录注册(无封装)flask
zabbix告警设置,自动发现,自动注册
【Eigen】旋转方向及eulerAngles函数参数说明
华朗复读衔接营励志开营!全名师阵容护航 解读高考成功秘钥
Nanoprobes Nanogold标签:助力显示SAP-1 的分布和功能
使用MQ的时候,怎么确保消息100%不丢失?
上课作业(8)——#631. 字符串匹配问题(strs)
About CRT password decompilation
Pagoda measurement - e-commerce ERP invoicing system source code
LINQ学习之旅(三)
2022-8-5 第六组 ptz 集合与树
TCP communications
DIKW体系对AI的影响
直播平台怎么搭建,蒙版(背景)与导航栏颜色的问题