当前位置: 首页 > news >正文

CCNP精粹系列之二十三--BGP单自治系统通信,推荐

                                 
 
                                           BGP单自治系统间的通信
 
Router(config)#host A
A(config)#int lo0
A(config-if)#ip addr 192.168.10.1 255.255.255.0
A(config-if)#no shut
 
A(config)#int s1/0
A(config-if)#ip addr 202.110.100.1 255.255.255.0
A(config-if)#encap hdlc
A(config-if)#clock rate 56000
 
A(config-if)#no shut
A(config)#router bgp 64500
A(config-router)#neighbor 202.110.100.2 remote-as 64500
A(config-router)#net 192.168.10.0
A(config-router)#net 202.110.100.0
A#show ip bgp
BGP table version is 3, local router ID is 192.168.10.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
 
   Network          Next Hop            Metric LocPrf Weight  Path
*> 192.168.10.0     0.0.0.0                  0         32768 i
* i202.110.100.0    202.110.100.2            0    100      0 i
*>                  0.0.0.0                  0         32768 i
 
B 路由器 ;:
Router(config)#host B
B(config)#int s1/0
B(config-if)#ip addr 202.110.100.2 255.255.255.0
B(config-if)#encap hdlc
B(config-if)#no shut
B(config-if)#exit
*Apr 21 20:39:14.679: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up
*Apr 21 20:39:15.679: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to uper bgp 64500
B(config-router)#router bgp 64500
B(config-router)#neighbor 202.110.100.1 remo
B(config-router)#neighbor 202.110.100.1 remote
B(config-router)#neighbor 202.110.100.1 remote-as 64500
B(config-router)#net 202.110.100.0
B#show ip ro
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
 
Gateway of last resort is not set
 
C    202.110.100.0/24 is directly connected, Serial1/0
B#
b ping A 路由器上 10 网段:
 
B#ping 192.168.10.1
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/43/96 ms
同一自治系统通信是没有问题的。在下一篇博文将有深的研究。


     本文转自shenleigang 51CTO博客,原文链接: http://blog.51cto.com/shenleigang/152603 ,如需转载请自行联系原作者

相关文章:

  • Ext-js 分页实现 (后台用Spring MVC)
  • 网络知识===wireshark抓包数据分析(一)
  • 用VNC进行远程维护
  • org.springframework.jdbc.BadSqlGrammarException: Cause: java.sql.SQLException: Column count 异常
  • 如何在esxi环境中重启LUN。
  • Android应用程序发送广播(sendBroadcast)的过程分析(2)
  • 如何快速学习一个开源项目源码?
  • 表格花式效果
  • VSCode Vue文件格式化
  • 访问量统计
  • centos6.8 yum安装mysql 5.6
  • sqldatasource控件处理image类型数据
  • 快速构建Windows 8风格应用9-竖直视图
  • c++ 检查工具
  • 网管3.0时代的全面来临——Mocha BSM 先锋引领
  • 【Leetcode】101. 对称二叉树
  • 【140天】尚学堂高淇Java300集视频精华笔记(86-87)
  • C++回声服务器_9-epoll边缘触发模式版本服务器
  • classpath对获取配置文件的影响
  • HomeBrew常规使用教程
  • idea + plantuml 画流程图
  • Nacos系列:Nacos的Java SDK使用
  • Spark in action on Kubernetes - Playground搭建与架构浅析
  • Swift 中的尾递归和蹦床
  • 动态魔术使用DBMS_SQL
  • 关键词挖掘技术哪家强(一)基于node.js技术开发一个关键字查询工具
  • 力扣(LeetCode)56
  • 小程序滚动组件,左边导航栏与右边内容联动效果实现
  • 用jQuery怎么做到前后端分离
  • 《天龙八部3D》Unity技术方案揭秘
  • 你学不懂C语言,是因为不懂编写C程序的7个步骤 ...
  • 新海诚画集[秒速5センチメートル:樱花抄·春]
  • ​比特币大跌的 2 个原因
  • ​渐进式Web应用PWA的未来
  • #etcd#安装时出错
  • #免费 苹果M系芯片Macbook电脑MacOS使用Bash脚本写入(读写)NTFS硬盘教程
  • (10)Linux冯诺依曼结构操作系统的再次理解
  • (3)nginx 配置(nginx.conf)
  • (Matalb时序预测)PSO-BP粒子群算法优化BP神经网络的多维时序回归预测
  • (ZT)出版业改革:该死的死,该生的生
  • (附源码)springboot学生选课系统 毕业设计 612555
  • (十六)Flask之蓝图
  • (转)原始图像数据和PDF中的图像数据
  • ./configure、make、make install 命令
  • .360、.halo勒索病毒的最新威胁:如何恢复您的数据?
  • .axf 转化 .bin文件 的方法
  • .mysql secret在哪_MYSQL基本操作(上)
  • .Net CF下精确的计时器
  • .net实现客户区延伸至至非客户区
  • .ui文件相关
  • []常用AT命令解释()
  • [autojs]逍遥模拟器和vscode对接
  • [AutoSar]状态管理(五)Dcm与BswM、EcuM的复位实现
  • [Contiki系列论文之2]WSN的自适应通信架构
  • [emuch.net]MatrixComputations(7-12)