博客
关于我
BGP实验
阅读量:304 次
发布时间:2019-03-03

本文共 4738 字,大约阅读时间需要 15 分钟。

实验

在这里插入图片描述

R1的配置

The device is running!
sysEnter system view, return user view with Ctrl+Z.[Huawei]undo info [Huawei]undo info-center enInfo: Information center is disabled.[Huawei]sys r1[r1]inter g0/0/0[r1-GigabitEthernet0/0/0]ip address 192.168.13.1 24[r1-GigabitEthernet0/0/0]inter loopback 0[r1-LoopBack0]ip address 1.1.1.1 32[r1-LoopBack0]inter loopback 1[r1-LoopBack1]ip address 100.1.1.1 24[r1-LoopBack1]bgp 100[r1-bgp]router-id 1.1.1.1[r1-bgp]peer 192.168.13.2 as-number 300[r1-bgp]network 1.1.1.1 32[r1-bgp]network 100.1.1.1 24[r1-bgp]

R2的配置

The device is running!
sysEnter system view, return user view with Ctrl+Z.[Huawei]undo ifno [Huawei]undo info [Huawei]undo info-center enInfo: Information center is disabled.[Huawei]sys r2[r2]inter g0/0/0[r2-GigabitEthernet0/0/0]ip address 192.168.24.1 24[r2-GigabitEthernet0/0/0]inter loopback 0[r2-LoopBack0]ip address 2.2.2.2 32[r2-LoopBack0]inter loopback 1[r2-LoopBack1]ip address 100.1.1.2 24[r2-LoopBack1]bgp 200[r2-bgp]router-id 2.2.2.2[r2-bgp]peer 192.168.24.2 as-number 300[r2-bgp]network 2.2.2.2 32[r2-bgp]network 100.1.1.2 24[r2-bgp]

R3的配置

The device is running!
sysEnter system view, return user view with Ctrl+Z.[Huawei]undo info [Huawei]undo info-center enInfo: Information center is disabled.[Huawei]sys r3[r3]inter g0/0/0[r3-GigabitEthernet0/0/0]ip address 192.168.13.2 24[r3-GigabitEthernet0/0/0]inter g0/0/1[r3-GigabitEthernet0/0/1]ip address 192.168.35.1 24[r3-GigabitEthernet0/0/1]inter loopback 0[r3-LoopBack0]ip address 3.3.3.3 32[r3-LoopBack0]ospf 1[r3-ospf-1]ospf 1 router-id 3.3.3.3Info: The configuration succeeded. You need to restart the OSPF process to validate the new router ID.[r3-ospf-1]area 0[r3-ospf-1-area-0.0.0.0]network 192.168.35.0 0.0.0.255[r3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0[r3-ospf-1-area-0.0.0.0]bgp 300[r3-bgp]router-id 3.3.3.3[r3-bgp]peer 4.4.4.4 as-number 300[r3-bgp]peer 4.4.4.4 con [r3-bgp]peer 4.4.4.4 connect-interface loopback 0[r3-bgp]peer 5.5.5.5 as-number 300[r3-bgp]peer 5.5.5.5 connect-interface loopback 0[r3]bgp 300[r3-bgp]peer 192.168.13.1 as-number 100[r3-bgp]peer 4.4.4.4 next-hop-local[r3-bgp]peer 3.3.3.3 next-hop-localError: The peer does not exist.[r3-bgp]peer 5.5.5.5 next-hop-local[r3-bgp]ospf 1[r3-ospf-1]area 0[r3-ospf-1-area-0.0.0.0]network 192.168.13.0 0.0.0.255[r3-ospf-1-area-0.0.0.0]bgp 300[r3-bgp]import-route ospf 1[r3-bgp]

R4的配置

The device is running!
sysEnter system view, return user view with Ctrl+Z.[Huawei]undo info [Huawei]undo info-center enInfo: Information center is disabled.[Huawei]sys r4[r4]inter g0/0/1[r4-GigabitEthernet0/0/1]ip address 192.168.45.1 24[r4-GigabitEthernet0/0/1]inter g0/0/1[r4-GigabitEthernet0/0/1]inter g0/0/0[r4-GigabitEthernet0/0/0]ip address 192.168.24.2 24[r4-GigabitEthernet0/0/0]inter loopback 0[r4-LoopBack0]ip address 4.4.4.4 32[r4-LoopBack0]ospf 1[r4-ospf-1]ospf 1 router-id 4.4.4.4Info: The configuration succeeded. You need to restart the OSPF process to validate the new router ID.[r4-ospf-1]area 0[r4-ospf-1-area-0.0.0.0]network 192.168.45.0 0.0.0.255[r4-ospf-1-area-0.0.0.0]network 4.4.4.4 0.0.0.0[r4-ospf-1-area-0.0.0.0][r4-ospf-1-area-0.0.0.0]bgp 300[r4-bgp]router-id 4.4.4.4[r4-bgp]peer 3.3.3.3 as-number 300[r4-bgp]peer 3.3.3.3 c [r4-bgp]peer 3.3.3.3 conn [r4-bgp]peer 3.3.3.3 connect-interface loopback 0[r4-bgp]peer 5.5.5.5 as-number 300[r4-bgp]peer 5.5.5.5 connect-interface loopback 0[r4]bgp 300[r4-bgp]peer 192.168.24.1 as-number 200[r4-bgp]peer 3.3.3.3 next-hop-local [r4-bgp]peer 5.5.5.5 next-hop-local[r4-bgp]ospf 1[r4-ospf-1]area 0[r4-ospf-1-area-0.0.0.0]network 192.168.24.0 0.0.0.255[r4-ospf-1-area-0.0.0.0]

R5的配置

The device is running!
sysEnter system view, return user view with Ctrl+Z.[Huawei]undo info [Huawei]undo info-center enInfo: Information center is disabled.[Huawei]sys r5[r5]inter g0/0/0[r5-GigabitEthernet0/0/0]ip address 192.168.35.2 24[r5-GigabitEthernet0/0/0]inter g0/0/1[r5-GigabitEthernet0/0/1]ip address 192.168.45.2 24[r5-GigabitEthernet0/0/1]inter loopback 0[r5-LoopBack0]ip address 5.5.5.5 32[r5-LoopBack0]ospf 1[r5-ospf-1]ospf 1 router-id 5.5.5.5Info: The configuration succeeded. You need to restart the OSPF process to validate the new router ID.[r5-ospf-1]area 0[r5-ospf-1-area-0.0.0.0]network 192.168.35.0 0.0.0.255[r5-ospf-1-area-0.0.0.0]network 192.168.45.0 0.0.0.255[r5-ospf-1-area-0.0.0.0]network 5.5.5.5 0.0.0.0[r5-ospf-1-area-0.0.0.0][r5-ospf-1-area-0.0.0.0]bgp 300[r5-bgp]router-id 5.5.5.5[r5-bgp]peer 3.3.3.3 as-number 300[r5-bgp]peer 3.3.3.3 conn [r5-bgp]peer 3.3.3.3 connect-interface loopback 0[r5-bgp]peer 4.4.4.4 as-number 300[r5-bgp]peer 4.4.4.4 connect-interface loopback 0[r5-bgp]dis bgp routing-table[r5-bgp]import-route ospf 1[r5-bgp]network 5.5.5.5 32

转载地址:http://tqhl.baihongyu.com/

你可能感兴趣的文章
mysql-group_concat
查看>>
MySQL-redo日志
查看>>
MySQL-【1】配置
查看>>
MySQL-【4】基本操作
查看>>
Mysql-丢失更新
查看>>
Mysql-事务阻塞
查看>>
Mysql-存储引擎
查看>>
mysql-开启慢查询&所有操作记录日志
查看>>
MySQL-数据目录
查看>>
MySQL-数据页的结构
查看>>
MySQL-架构篇
查看>>
MySQL-索引的分类(聚簇索引、二级索引、联合索引)
查看>>
Mysql-触发器及创建触发器失败原因
查看>>
MySQL-连接
查看>>
mysql-递归查询(二)
查看>>
MySQL5.1安装
查看>>
mysql5.5和5.6版本间的坑
查看>>
mysql5.5最简安装教程
查看>>
mysql5.6 TIME,DATETIME,TIMESTAMP
查看>>
mysql5.6.21重置数据库的root密码
查看>>