BGP实验二(ospf和bgp综合实验)

网友投稿 425 2022-09-09


BGP实验二(ospf和bgp综合实验)

实验拓扑图:

IOU1的配置

Configure terminal

Interface ethernet 0/0

Duplex full

Ip address 10.0.10.1 255.255.255.0

No shutdown

Exit

Interface loopback 0

Ip address 1.1.1.1 255.255.255.0

No shutdown

Exit

Interface loopback 1

Ip address 2.2.2.2 255.255.255.0

No shutdown

Exit

BGP的配置

Router bgp 100

Neighbor 10.0.10.2 remote-as 300

Network 1.1.1.0 mask 255.255.255.0

Network 2.2.2.0 mask 255.255.255.0

Exit

IOU2的配置

Configure terminal

Interface ethernet 0/0

Duplex full

Ip address 10.0.40.1 255.255.255.0

No shutdown

Exit

Interface loopback 0

Ip address 1.1.1.1 255.255.255.0

No shutdown

Exit

Interface loopback 1

Ip address 2.2.2.2 255.255.255.0

No shutdown

Exit

BGP的配置

Router bgp 200

Neighbor 10.0.40.2 remote-as 300

Network 1.1.1.0 mask 255.255.255.0

Network 2.2.2.0 mask 255.255.255.0

Exit

IOU3的配置

Configure terminal

Interface ethernet 0/0

Duplex full

Ip address 10.0.10.2 255.255.255.0

No shutdown

Exit

Interface ethernet 0/1

Duplex full

Ip address 10.0.20.1 255.255.255.0

No shutdown

Exit

Interface loopback 0

Ip address 3.3.3.3 255.255.255.0

No shutdown

Exit

OSPF配置

Router ospf 1

Router-id 3.3.3.3

Network 3.3.3.0 0.0.0.255 area 0

Network 10.0.20.0 0.0.0.255 area 0

Exit

BGP的配置

Router bgp 300

Neighbor 1.1.1.1 remote-as 100

Neighbor 2.2.2.2 remote-as 100

Neighbor 4.4.4.4 remote-as 300

Neighbor 5.5.5.5 remote-as 300

Neighbor 10.0.10.1 remote-as 100

Neighbor 4.4.4.4 update-source loopback 0

Neighbor 5.5.5.5 update-source loopback 0

Network 3.3.3.0 mask 255.255.255.0

Exit

IOU4的配置

Configure terminal

Interface ethernet 0/0

Duplex full

Ip address 10.0.40.2 255.255.255.0

No shutdown

Exit

Interface ethernet 0/1

Duplex full

Ip address 10.0.30.1 255.255.255.0

No shutdown

Exit

Interface loopback 0

Ip address 4.4.4.4 255.255.255.0

No shutdown

Exit

OSPF的配置

Router ospf 1

Router-id 4.4.4.4

Network 4.4.4.0 0.0.0.255 area 0

Network 10.0.30.0 0.0.0.255 area 0

Exit

BGP的配置

Router bgp 300

Neighbor 3.3.3.3 remote-as 300

Neighbor 5.5.5.5 remote-as 300

Neighbor 10.0.40.1 remote-as 200

Neighbor 3.3.3.3 update-source loopback 0

Neighbor 5.5.5.5 update-source loopback 0

Neighbor 5.5.5.5 next-hop-self

Network 4.4.4.0 mask 255.255.255.0

Exit

IOU5的配置

Configure terminal

Interface ethernet 0/0

Duplex full

Ip address 10.0.20.2 255.255.255.0

No shutdown

Exit

Interface ethernet 0/1

Duplex full

Ip address 10.0.30.2 255.255.255.0

No shutdown

Exit

Interface loopback 0

Ip address 5.5.5.5 255.255.255.0

No shutdown

Exit

OSPF的配置

Router ospf 1

Router-id 5.5.5.5

Network 5.5.5.0 0.0.0.255 area 0

Network 10.0.20.0 0.0.0.255 area 0

Network 10.0.30.0 0.0.0.255 area 0

Exit

BGP的配置

Router bgp 300

Neighbor 3.3.3.3 remote-as 300

Neighbor 4.4.4.4 remote-as 300

Neighbor 3.3.3.3 update-source loopback 0

Neighbor 4.4.4.4 update-source loopback 0

Network 5.5.5.0 mask 255.255.255.0

Exit


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:SpringBoot 如何实时刷新静态文件
下一篇:BGP动态路由协议(BGP路由宣告)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~