Spring中的aware接口详情
312
2022-09-16
BGP四种属性配置实验(bgp基本配置实验)
实验要求:
配置BGP属性并通过实验了解其作用。
实验环境:
实验配置:
端口配置:
IOU1:
config terminalinterface e0/0ip address 12.12.12.1 255.255.255.0no shutdowninterface e0/1ip address 45.45.45.1 255.255.255.0no shutdowninterface loopback 0ip address 1.1.1.1 255.255.255.255no shutdownexit
IOU2:
config terminalinterface e0/0ip address 12.12.12.2 255.255.255.0no shutdowninterface e0/1ip address 23.23.23.1 255.255.255.0no shutdowninterface loopback 0ip address 2.2.2.2 255.255.255.0no shutdownexit
IOU3:
config terminalinterface e0/0ip address 34.34.34.1 255.255.255.0no shutdowninterface e0/1ip address 45.45.45.2 255.255.255.0no shutdowninterface loop 0ip address 3.3.3.3 255.255.255.255no shutdownexit
IOU4:
config terminalinterface e0/0ip address 34.34.34.2 255.255.255.0no shutdowninterface e0/1ip address 23.23.23.2 255.255.255.0no shutdowninterface loop 0ip address 4.4.4.4 255.255.255.0no shutdownexit
配置EIGRP:
IOU1:
router eigrp 1network 1.1.1.1 0.0.0.0network 12.12.12.1 0.0.0.0network 45.45.45.1 0.0.0.0exit
IOU2:
router eigrp 1network 2.2.2.2 0.0.0.0network 12.12.12.2 0.0.0.0exit
IOU3:
router eigrp 1network 3.3.3.3 0.0.0.0network 45.45.45.2 0.0.0.0exit
配置BGP:
IOU1:
router bgp 100bgp router-id 1.1.1.1neighbor 2.2.2.2 remote-as 100neighbor 3.3.3.3 remote-as 100neighbor 2.2.2.2 update-source loopback 0neighbor 3.3.3.3 update-source loopback 0neighbor 2.2.2.2 next-hop-selfneighbor 3.3.3.3 next-hop-selfnetwork 1.1.1.1 mask 255.255.255.255network 12.12.12.0 mask 255.255.255.0network 45.45.45.0 mask 255.255.255.0exit
IOU2:
router bgp 100bgp router-id 2.2.2.2neighbor 1.1.1.1 remote-as 100neighbor 3.3.3.3 remote-as 100neighbor 23.23.23.2 remote-as 200neighbor 1.1.1.1 update-source loopback 0neighbor 3.3.3.3 update-source loopback 0neighbor 1.1.1.1 next-hop-selfneighbor 3.3.3.3 next-hop-selfnetwork 2.2.2.2 mask 255.255.255.255network 12.12.12.0 mask 255.255.255.0network 23.23.23.0 mask 255.255.255.0exit
IOU3:
router bgp 100bgp router-id 3.3.3.3neighbor 1.1.1.1 remote-as 100neighbor 2.2.2.2 remote-as 100neighbor 34.34.34.2 remote-as 200neighbor 1.1.1.1 update-source loopback 0neighbor 2.2.2.2 update-source loopback 0neighbor 1.1.1.1 next-hop-selfneighbor 2.2.2.2 next-hop-selfnetwork 3.3.3.3 mask 255.255.255.255network 45.45.45.0 mask 255.255.255.0network 34.34.34.0 mask 255.255.255.0exit
IOU4:
router bgp 200neighbor 23.23.23.1 remote-as 100neighbor 34.34.34.1 remote-as 100network 4.4.4.4 mask 255.255.255.255network 23.23.23.0 mask 255.255.255.0network 34.34.34.0 mask 255.255.255.0exit
起源属性:
IOU4:
ip prefix-list 1 permit 4.4.4.0/24route-map origin permit 10match ip address prefix-list 1set origin egp 900exitroute-map origin permit 20exitrouter bgp 200neighbor 23.23.23.1 route-map origin outexit
AS-Path属性:
IOU4:
ip prefix-list 1 permit 4.4.4.0/24route-map aspath permit 10match ip address prefix-list 1set as-path prepend 600 700exitrouter bgp 200neighbor 34.34.34.1 route-map aspath outexit
LOCAL_PREF 属性:
IOU3:
ip prefix-list 1 permit 4.4.4.0/24route-map local_pref permit 10match ip address prefix-list 1set local-preference 2000exitroute-map local_pref permit 20exitrouter bgp 100neighbor 34.34.34.2 route-map local_pref inexit
Weight属性:
IOU2:
router bgp 100neighbor 1.1.1.1 weight 200neighbor 3.3.3.3 weight 200neighbor 23.23.23.2 weight 500exit
配置完成,实验结束。如有疏漏,还请读者指出。
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~