ccnp实验手册BGP.docx
- 文档编号:10039104
- 上传时间:2023-02-08
- 格式:DOCX
- 页数:14
- 大小:114.37KB
ccnp实验手册BGP.docx
《ccnp实验手册BGP.docx》由会员分享,可在线阅读,更多相关《ccnp实验手册BGP.docx(14页珍藏版)》请在冰豆网上搜索。
ccnp实验手册BGP
BGP的实验
以internet为例,搭建四个自治系统,环型连接.
第一步:
为了方便实验,首先进行初始配置.
Router>en(进入特权模式)
Router#configureterminal(进入全局配置模式)
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Router(config)#hostnameR1(指定主机名)
r1(config)#noipdomain-lookup(关掉域名解析)
r1(config)#linecon0(进入con线路的配置模式)
r1(config-line)#noexec-timeout(关闭发呆超时)
r1(config-line)#loggingsynchronous(打开日志同步)
第二步
hostnameAS1_R1
!
interfaceLoopback0
ipaddress1.1.1.1255.255.255.0
ipospfnetworkpoint-to-point
!
interfaceFastEthernet0/0
ipaddress11.1.13.1255.255.255.0
!
interfaceSerial1/1
ipaddress10.1.12.1255.255.255.0
hostnameAS1_R2
!
interfaceLoopback0
ipaddress1.1.2.2255.255.255.0
ipospfnetworkpoint-to-point
!
interfaceLoopback1
ipaddress1.2.2.2255.255.255.0
!
interfaceSerial1/0
ipaddress10.1.12.2255.255.255.0
!
interfaceSerial1/1
ipaddress10.1.23.2255.255.255.0
hostnameAS1_R3
!
interfaceLoopback0
ipaddress1.1.3.3255.255.255.0
ipospfnetworkpoint-to-point
!
interfaceFastEthernet0/0
ipaddress11.1.12.1255.255.255.0
!
interfaceSerial1/0
ipaddress10.1.23.3255.255.255.0
hostnameAS2_R1
!
interfaceLoopback0
ipaddress2.1.1.1255.255.255.0
!
interfaceFastEthernet0/0
ipaddress11.1.12.2255.255.255.0
!
interfaceSerial1/1
ipaddress10.2.12.1255.255.255.0
hostnameAS2_R2
!
interfaceLoopback0
ipaddress2.1.2.2255.255.255.0
!
interfaceSerial1/0
ipaddress10.2.12.2255.255.255.0
!
interfaceSerial1/1
ipaddress10.2.23.2255.255.255.0
!
interfaceSerial1/2
ipaddress10.2.23.2255.255.255.00
hostnameAS2_R3
!
interfaceLoopback0
ipaddress2.1.3.3255.255.255.0
!
interfaceFastEthernet0/0
ipaddress11.1.24.2255.255.255.0
!
interfaceSerial1/0
ipaddress10.2.23.3255.255.255.0
hostnameAS3_R1
!
interfaceLoopback0
ipaddress3.1.1.1255.255.255.0
ipospfnetworkpoint-to-point
!
interfaceFastEthernet0/0
ipaddress11.1.13.3255.255.255.0
!
interfaceSerial1/1
ipaddress10.3.12.1255.255.255.0
hostnameAS3_R2
!
interfaceLoopback0
ipaddress3.1.2.2255.255.255.0
ipospfnetworkpoint-to-point
!
interfaceLoopback1
ipaddress3.2.2.2255.255.255.0
!
interfaceSerial1/0
ipaddress10.3.12.2255.255.255.0
!
interfaceSerial1/1
ipaddress10.3.23.2255.255.255.0
hostnameAS3_R3
!
interfaceLoopback0
ipaddress3.1.3.3255.255.255.0
ipospfnetworkpoint-to-point
!
interfaceFastEthernet0/0
ipaddress11.1.34.3255.255.255.0
!
interfaceSerial1/0
ipaddress10.3.23.3255.255.255.0
hostnameAS4_R1
interfaceLoopback0
ipaddress4.1.1.1255.255.255.0
!
interfaceFastEthernet0/0
ipaddress11.1.34.4255.255.255.0
!
interfaceSerial1/1
ipaddress10.4.12.1255.255.255.0
hostnameAS_R2
!
interfaceLoopback0
ipaddress4.1.2.1255.255.255.0
!
interfaceLoopback1
ipaddress4.1.5.5255.255.255.0
!
interfaceSerial1/0
ipaddress10.4.12.2255.255.255.0
!
interfaceSerial1/1
ipaddress10.4.23.2255.255.255.0
hostnameAS4_R3
!
interfaceLoopback0
ipaddress4.1.3.1255.255.255.0
!
interfaceFastEthernet0/0
ipaddress11.1.24.4255.255.255.0
!
interfaceSerial1/0
ipaddress10.4.23.3255.255.255.0
第二步:
配置IGP
hostnameAS1R1
!
routerospf1
redistributeconnectedsubnets
network1.1.1.00.0.0.255area0
network10.1.12.00.0.0.255area0
hostnameAS1R2
!
routerospf1
network1.1.2.00.0.0.255area0
network10.1.12.00.0.0.255area0
network10.1.23.00.0.0.255area0
hostnameAS1R3
!
routerospf1
redistributeconnectedsubnets
network1.1.3.00.0.0.255area0
network10.1.23.00.0.0.255area0
hostnameAS2_R1
!
routerospf1
redistributeconnectedsubnets
network2.1.1.00.0.0.255area0
network10.2.12.00.0.0.255area0
hostnameAS2_R2
!
routerospf1
network2.1.2.00.0.0.255area0
network10.2.12.00.0.0.255area0
network10.2.23.00.0.0.255area0
hostnameAS2_R3
!
routerospf1
redistributeconnectedsubnets
network2.1.3.00.0.0.255area0
network10.2.23.00.0.0.255area0
hostnameAS3_R1
!
routerospf1
redistributeconnectedsubnets
network3.1.1.00.0.0.255area0
network10.3.12.00.0.0.255area0
hostnameAS3_R2
!
routerospf1
network3.1.2.00.0.0.255area0
network10.3.12.00.0.0.255area0
network10.3.23.00.0.0.255area0
hostnameAS3_R3
!
routerospf1
redistributeconnectedsubnets
network3.1.3.00.0.0.255area0
network10.3.23.00.0.0.255area0
hostnameAS4_R1
!
routerospf1
redistributeconnectedsubnets
network4.1.1.00.0.0.255area0
network10.4.12.00.0.0.255area0
hostnameAS4_R2
!
routerospf1
network4.1.2.00.0.0.255area0
network10.4.12.00.0.0.255area0
network10.4.23.00.0.0.255area0
hostnameAS4_R3
!
routerospf1
redistributeconnectedsubnets
network4.1.3.00.0.0.255area0
network10.4.23.00.0.0.255area0
第三步:
配置BGP
hostnameAS1R1
!
routerbgp1
nosynchronization
network4.1.1.0mask255.255.255.0(通过路由)
neighbor1.1.2.2remote-as1(指定IBGP邻居)
neighbor1.1.2.2update-sourceLoopback0(指定邻居更新源)
neighbor11.1.13.3remote-as3(指定EBGP邻居)
noauto-summary
hostnameAS1R2
!
routerbgp1
nosynchronization
network1.2.2.0mask255.255.255.0
neighbor1.1.1.1remote-as1
neighbor1.1.1.1update-sourceLoopback0
neighbor1.1.1.1route-reflector-client(启动路由反射器)
neighbor1.1.3.3remote-as1
neighbor1.1.3.3update-sourceLoopback0
neighbor1.1.3.3route-reflector-client
noauto-summary
hostnameAS1R3
!
routerbgp1
nosynchronization
neighbor1.1.2.2remote-as1
neighbor1.1.2.2update-sourceLoopback0
neighbor11.1.12.2remote-as2
noauto-summary
hostnameAS2_R1
!
routerbgp2
nosynchronization
neighbor2.1.2.2remote-as2
neighbor2.1.2.2update-sourceLoopback0
neighbor11.1.12.1remote-as1
noauto-summary
hostnameAS2_R2
!
routerbgp2
nosynchronization
neighbor2.1.1.1remote-as2
neighbor2.1.1.1update-sourceLoopback0
neighbor2.1.1.1route-reflector-client
neighbor2.1.3.3remote-as2
neighbor2.1.3.3update-sourceLoopback0
neighbor2.1.3.3route-reflector-client
noauto-summary
hostnameAS2_R3
!
routerbgp2
nosynchronization
neighbor2.1.2.2remote-as2
neighbor2.1.2.2update-sourceLoopback0
neighbor11.1.24.4remote-as4
noauto-summary
!
hostnameAS3_R1
!
routerbgp3
nosynchronization
neighbor3.1.2.2remote-as3
neighbor3.1.2.2update-sourceLoopback0
neighbor11.1.13.1remote-as1
noauto-summary
hostnameAS3_R2
!
routerbgp3
nosynchronization
network3.2.2.0mask255.255.255.0
neighbor3.1.1.1remote-as3
neighbor3.1.1.1update-sourceLoopback0
neighbor3.1.1.1route-reflector-client
neighbor3.1.3.3remote-as3
neighbor3.1.3.3update-sourceLoopback0
neighbor3.1.3.3route-reflector-client
noauto-summary
!
hostnameAS3_R3
!
routerbgp3
nosynchronization
neighbor3.1.2.2remote-as3
neighbor3.1.2.2update-sourceLoopback0
neighbor11.1.34.4remote-as4
noauto-summary
hostnameAS4_R1
!
routerbgp4
nosynchronization
neighbor4.1.3.1remote-as4
neighbor4.1.3.1update-sourceLoopback0
neighbor11.1.34.3remote-as3
noauto-summary
hostnameAS_R2
!
routerbgp4
nosynchronization
network4.1.5.0mask255.255.255.0
neighbor4.1.1.1remote-as4
neighbor4.1.1.1update-sourceLoopback0
neighbor4.1.1.1route-reflector-client
neighbor4.1.3.1remote-as4
neighbor4.1.3.1update-sourceLoopback0
neighbor4.1.3.1route-reflector-client
noauto-summary
hostnameAS4_R3
!
routerbgp4
nosynchronization
neighbor11.1.24.2remote-as2
neighbor4.1.1.1update-sourceLoopback0
noauto-summary
修改本地优先权
access-list1permit4.1.2.00.0.0.255
!
route-mapbgppermit10
matchipaddress1
setlocal-preference400
!
route-mapbgppermit20
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ccnp 实验 手册 BGP