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

wordpress建站两秒打开论坛模板建站

wordpress建站两秒打开,论坛模板建站,网站被百度降权,做qq群排名的网站是否违规一、实验一基本团体属性拓扑实验要求:AS100中的路由传递给AS200时不得向其他AS发布,但可以在本AS内传递,AR1的loopback3不受影响配置思路:既然要求我们不能向其他AS传递但可以在本AS内进行传递,就不能使用No advertise团体属性,使用No export属性即可1、基本配置AR1 system sys…

一、实验一基本团体属性

拓扑

实验要求:AS100中的路由传递给AS200时不得向其他AS发布,但可以在本AS内传递,AR1的loopback3不受影响

配置思路:既然要求我们不能向其他AS传递但可以在本AS内进行传递,就不能使用No advertise团体属性,使用No export属性即可

1、基本配置

AR1
system
sysname AR1
int g 0/0/0
ip add 10.0.12.1 24
int l 1
ip add 1.1.1.1 32
int l 2
ip add 1.1.1.2 32
int l 3
ip add 1.1.1.3 32AR2
system
sysname AR2
int g 0/0/0
ip add 10.0.12.1 24
int g 0/0/1
ip add 10.0.23.2 24
int g 0/0/2
ip add 10.0.24.2 24AR3
system
sysname AR3
int g 0/0/1
ip add 10.0.23.3 24AR4
system
sysname AR4
int g 0/0/0
ip add 10.0.24.4 24

2、BGP路由配置

AR1
bgp 100
router-id 1.1.1.1
peer 10.0.12.2 as 200
netw 1.1.1.1 32
netw 1.1.1.2 32
netw 1.1.1.3 32AR2
bgp 200
router-id 2.2.2.2
peer 10.0.12.1 as 100
peer 10.0.24.4 as 200
peer 10.0.23.3 as 300AR4
bgp 200
router-id 4.4.4.4
peer 10.0.24.2 as 200AR3
bgp 300
router-id 3.3.3.3
peer 10.0.23.2 as 200

查看BGP邻居状态

[AR2]display bgp peer BGP local router ID : 2.2.2.2Local AS number : 200Total number of peers : 3		  Peers in established state : 3Peer            V          AS  MsgRcvd  MsgSent  OutQ  Up/Down       State Pre
fRcv10.0.12.1       4         100        4        5     0 00:00:15 Established    310.0.23.3       4         300        3        4     0 00:01:16 Established    010.0.24.4       4         200        3        5     0 00:01:14 Established    0

3、路由策略配置

ip ip-prefix 3 index 10 permit 1.1.1.3 32
route-policy community permit node 10 
if-match ip-prefix 3 
route-policy community permit node 20 
apply community no-export 
bgp 100
peer 10.0.12.2 route-policy community export

AR2上查看BGP路由属性

<AR2>display bgp routing-table 1.1.1.1BGP local router ID : 2.2.2.2Local AS number : 200Paths:   1 available, 1 best, 1 selectBGP routing table entry information of 1.1.1.1/32:From: 10.0.12.1 (1.1.1.1)Route Duration: 00h00m06s  Direct Out-interface: GigabitEthernet0/0/0Original nexthop: 10.0.12.1Qos information : 0x0AS-path 100, origin igp, MED 0, pref-val 0, valid, external, best, select, acti
ve, pre 255Advertised to such 3 peers:10.0.23.310.0.12.110.0.24.4

可以看到此时AR2上收到的路由中并没有携带团体属性,这是为什么?

因为我们AR1上还没有配置携带团体属性命令,如果只配置了策略没有配置携带团体属性命令就无法在传递路由时携带团体属性。

AR1
bgp 100
peer 10.0.12.2 advertise-community

此时再去AR2上查看路由的属性

[AR2]display bgp routing-table 1.1.1.1BGP local router ID : 2.2.2.2Local AS number : 200Paths:   1 available, 1 best, 1 selectBGP routing table entry information of 1.1.1.1/32:From: 10.0.12.1 (1.1.1.1)Route Duration: 00h01m31s  Direct Out-interface: GigabitEthernet0/0/0Original nexthop: 10.0.12.1Qos information : 0x0Community:no-exportAS-path 100, origin igp, MED 0, pref-val 0, valid, external, best, select, acti
ve, pre 255Advertised to such 1 peers:10.0.24.4
<AR2>display bgp routing-table 1.1.1.3BGP local router ID : 2.2.2.2Local AS number : 200Paths:   1 available, 1 best, 1 selectBGP routing table entry information of 1.1.1.3/32:From: 10.0.12.1 (1.1.1.1)Route Duration: 00h01m12s  Direct Out-interface: GigabitEthernet0/0/0Original nexthop: 10.0.12.1Qos information : 0x0AS-path 100, origin igp, MED 0, pref-val 0, valid, external, best, select, acti
ve, pre 255Advertised to such 3 peers:10.0.23.310.0.12.110.0.24.4

可以看到此时AR2收到的路由中就携带了no-export团体属性,并且loopback3没有受影响

<AR3>display bgp routing-table BGP Local router ID is 3.3.3.3 Status codes: * - valid, > - best, d - damped,h - history,  i - internal, s - suppressed, S - StaleOrigin : i - IGP, e - EGP, ? - incompleteTotal Number of Routes: 1Network            NextHop        MED        LocPrf    PrefVal Path/Ogn*>   1.1.1.3/32         10.0.23.2                             0      200 100i

我们在AR3上仍然可以接收到loopback3的路由信息

[AR4]display bgp routing-tableBGP Local router ID is 4.4.4.4 Status codes: * - valid, > - best, d - damped,h - history,  i - internal, s - suppressed, S - StaleOrigin : i - IGP, e - EGP, ? - incompleteTotal Number of Routes: 3Network            NextHop        MED        LocPrf    PrefVal Path/Ogn*>i  1.1.1.1/32         10.0.24.2       0          100        0      100i*>i  1.1.1.2/32         10.0.24.2       0          100        0      100i*>i  1.1.1.3/32         10.0.24.2       0          100        0      100i

AR4可以接收到所有的路由信息

假如此时拓扑为以下

AR4与AR3也建立EBGP邻居关系,那么此时AR3上能够学习到几条路由呢?

AR3
int g 0/0/0
ip add 10.0.34.3 24
bgp 300
peer 10.0.34.4 as 200AR4
int g 0/0/1
ip add 10.0.34.4 24
bgp 200
peer 10.0.34.3 as 300

查看AR3上的路由信息

<AR3>dis bgp routing-table BGP Local router ID is 3.3.3.3 Status codes: * - valid, > - best, d - damped,h - history,  i - internal, s - suppressed, S - StaleOrigin : i - IGP, e - EGP, ? - incompleteTotal Number of Routes: 4Network            NextHop        MED        LocPrf    PrefVal Path/Ogn*>   1.1.1.1/32         10.0.34.4                             0      200 100i*>   1.1.1.2/32         10.0.34.4                             0      200 100i*>   1.1.1.3/32         10.0.23.2                             0      200 100i*                       10.0.34.4                             0      200 100i

可以看到此时AR3学习到了所有的路由,这是为什么?

因为我们在AR2上并没有配置携带团体属性命令,所以AR2在传递给AR4路由的时候并不会去携带团体属性,所以AR4收到路由后就会正常去进行传递。

二、实验二扩展团体属性

拓扑

本实验拓扑与上实验一致,基础配置与BGP路由配置一致这里不过多赘述

实验目的:使用扩展团体属性实现AR1的路由传递给AR2时不会传递给其他AS,Loopback3的路由不受影响

1、路由策略配置

ip ip-prefix 3 index 10 permit 1.1.1.3 32
route-policy 1 permit node 10 
if-match ip-prefix 3 
route-policy 1 permit node 20 
apply community 100:200 
q
bgp 100
peer 10.0.12.2 route-policy 1 export

查看AR2上的路由信息

<AR2>dis bgp routing-table BGP Local router ID is 2.2.2.2 Status codes: * - valid, > - best, d - damped,h - history,  i - internal, s - suppressed, S - StaleOrigin : i - IGP, e - EGP, ? - incompleteTotal Number of Routes: 3Network            NextHop        MED        LocPrf    PrefVal Path/Ogn*>   1.1.1.1/32         10.0.12.1       0                     0      100i*>   1.1.1.2/32         10.0.12.1       0                     0      100i*>   1.1.1.3/32         10.0.12.1       0                     0      100i
<AR2>display bgp routing-table communityBGP Local router ID is 2.2.2.2 Status codes: * - valid, > - best, d - damped,h - history,  i - internal, s - suppressed, S - StaleOrigin : i - IGP, e - EGP, ? - incompleteTotal Number of Routes: 2Network            NextHop        MED        LocPrf    PrefVal Community*>   1.1.1.1/32         10.0.12.1       0                     0      <100:200>*>   1.1.1.2/32         10.0.12.1       0                     0      <100:200>

可以看到此时AR1传递路由时已经携带了扩展团体属性,此时我们就可以根据扩展团体属性来进行路由过滤

AR2
ip community-filter 1 permit 100:200
route-policy 1 deny node 10 
if-match community-filter 1
q
route-policy 1 permit node 20 
q
bgp 200
peer 10.0.12.1 route-policy 1 import

查看AR4和AR3的路由信息

<AR4>dis bgp routing-table BGP Local router ID is 4.4.4.4 Status codes: * - valid, > - best, d - damped,h - history,  i - internal, s - suppressed, S - StaleOrigin : i - IGP, e - EGP, ? - incompleteTotal Number of Routes: 3Network            NextHop        MED        LocPrf    PrefVal Path/Ogn*>i  1.1.1.1/32         10.0.24.2       0          100        0      100i*>i  1.1.1.2/32         10.0.24.2       0          100        0      100i*>i  1.1.1.3/32         10.0.24.2       0          100        0      100i
<AR3>dis bgp routing-table BGP Local router ID is 3.3.3.3 Status codes: * - valid, > - best, d - damped,h - history,  i - internal, s - suppressed, S - StaleOrigin : i - IGP, e - EGP, ? - incompleteTotal Number of Routes: 1Network            NextHop        MED        LocPrf    PrefVal Path/Ogn*>   1.1.1.3/32         10.0.23.2                             0      200 100i

以上就是本章的全部内容了,感谢大家的浏览观看!文章若有错误或疑问可联系博主删除更改。

http://www.dtcms.com/a/496013.html

相关文章:

  • AI服务器工作之服务器的种类分类
  • 校园网站建设的目的中国建设机械教育协会网站
  • nextjs 接入 谷歌分析
  • asp.net core CVE-2025-55315漏洞验证修复
  • 建网站要多少费用加强信息管理 维护网站建设
  • 读书笔记:《2049未来10000天的可能》
  • 多GPU服务器在大型量子比特状态向量模拟中的实现方式
  • 网站下载器国际论坛网站模板
  • ui设计公司审美积累 | 金融人工智能与用户体验 用户界面仪表盘设计
  • 盗版小说网站怎么做售卖网站建设实验报告
  • 工业互联与设备IOT助力生产制造实践分享
  • 网站服务器试用网站定做公司
  • 深圳网站优化多少钱东道设计作品
  • 电商系统分布式架构实战:从单体到微服务的演进之路
  • C++中如何使用子类的指针指向父类的对象
  • 模版网站怎么做微信公众号微网站怎么建设
  • 推广网站多少钱足球积分排行榜最新
  • 网站建设与网页制作案例教程wordpress html5 模板下载
  • UI自动化测试实战:从入门到精通
  • android APP实现指纹免密登录的实现思路
  • AWS WAF 实战篇|如何防御爬虫、CC攻击与恶意POST请求
  • 网站开发环境有什么seo比较好的公司
  • 织梦cms怎么打不开网站phpcms做企业网站授权
  • 力扣-上升的温度
  • 从操作系统到具身智能,东土科技正加速构建自主可控产业链
  • 泉州网站建设泉州做网站建设的公司有哪些
  • 网站模板 黑白网站邮件设置方法
  • 怎么宣传自己的网站推广成都网站建设制作
  • Python爬虫第7课:多线程与异步爬虫技术
  • 厦门网站推广¥做下拉去118cr导购网站如何做免费推广