博客
关于我
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之DML
查看>>
Mysql之IN 和 Exists 用法
查看>>
MYSQL之REPLACE INTO和INSERT … ON DUPLICATE KEY UPDATE用法
查看>>
MySQL之SQL语句优化步骤
查看>>
MYSQL之union和order by分析([Err] 1221 - Incorrect usage of UNION and ORDER BY)
查看>>
Mysql之主从复制
查看>>
MySQL之函数
查看>>
mysql之分组查询GROUP BY,HAVING
查看>>
mysql之分页查询
查看>>
Mysql之备份与恢复
查看>>
mysql之子查询
查看>>
MySQL之字符串函数
查看>>
mysql之常见函数
查看>>
Mysql之性能优化--索引的使用
查看>>
mysql之旅【第一篇】
查看>>
Mysql之索引选择及优化
查看>>
mysql之联合查询UNION
查看>>
mysql之连接查询,多表连接
查看>>
mysql乐观锁总结和实践 - 青葱岁月 - ITeye博客
查看>>
mysql也能注册到eureka_SpringCloud如何向Eureka中进行注册微服务-百度经验
查看>>