12

BGP初步实验二_wx627255bd4ac6d的技术博客_51CTO博客

 2 years ago
source link: https://blog.51cto.com/u_15624911/5333260
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

实验要求:

完成基本IP、IGP配置,建立BGP连接。

实验环境:

BGP初步实验二_BGP

实验配置:

端口配置:

IOU1:
config terminal
interface e0/0
ip address 10.1.12.1 255.255.255.0
no shutdown
interface loop 0
ip address 1.1.1.1 255.255.255.255
no shutdown
interface loop 1
ip address 2.2.2.2 255.255.255.255
no shutdown
exit
IOU2:
config terminal
interface e0/0
ip address 10.1.23.1 255.255.255.0
no shutdown
interface loop 0
ip address 1.1.1.1 255.255.255.255
no shutdown
interface loop 1
ip address 2.2.2.2 255.255.255.255
no shutdown
exit
IOU3:
config terminal
interface e0/0
ip address 10.1.12.2 255.255.255.0
no shutdown
interface e0/1
ip address 10.1.34.1 255.255.255.0
no shutdown
interface loop 0
ip address 3.3.3.3 255.255.255.255
no shutdown
exit
IOU4:
config terminal
interface e0/0
ip address 10.1.34.2 255.255.255.0
no shutdown
interface e0/1
ip address 10.1.45.1 255.255.255.0
no shutdown
interface loop 0
ip address 4.4.4.4 255.255.255.255
no shutdown
exit
IOU5:
config terminal
interface e0/0
ip address 10.1.23.2 255.255.255.0
no shutdown
interface e0/1
ip address 10.1.45.2 255.255.255.0
no shutdown
interface loop 0
ip address 5.5.5.5 255.255.255.255
no shutdown
exit

BGP配置:

IOU1:
router bgp 100
bgp router-id 1.1.1.1
neighbor 10.1.12.2 remote-as 345
network 1.1.1.1 mask 255.255.255.255
network 2.2.2.2 mask 255.255.255.255
network 10.1.12.0 mask 255.255.255.0
exit
IOU2:
router bgp 200
bgp router-id 2.2.2.2
neighbor 10.1.23.2 remote-as 345
network 1.1.1.1 mask 255.255.255.255
network 2.2.2.2 mask 255.255.255.255
network 10.1.23.0 mask 255.255.255.0
exit
IOU3:
router bgp 345
bgp router-id 3.3.3.3
neighbor 10.1.12.1 remote-as 100
neighbor 4.4.4.4 remote-as 345
neighbor 4.4.4.4 update-source loopback 0
neighbor 5.5.5.5 remote-as 345
neighbor 5.5.5.5 update-source loopback 0
network 10.1.13.0 mask 255.255.255.0
network 10.1.34.0 mask 255.255.255.0
network 3.3.3.3 mask 255.255.255.255
exit
router ospf 1
network 10.1.13.0 0.0.0.255 area 0
network 10.1.34.0 0.0.0.255 area 0
network 3.3.3.3 0.0.0.0 area 0
exit
IOU4:
router bgp 345
bgp router-id 4.4.4.4
neighbor 3.3.3.3 remote-as 345
neighbor 3.3.3.3 update-source loopback 0
neighbor 5.5.5.5 remote-as 345
neighbor 5.5.5.5 update-source loopback 0
network 10.1.34.0 mask 255.255.255.0
network 10.1.45.0 mask 255.255.255.0
network 4.4.4.4 mask 255.255.255.255
exit
router ospf 1
network 10.1.34.0 0.0.0.255 area 0
network 10.1.45.0 0.0.0.255 area 0
network 4.4.4.4 0.0.0.0 area 0
exit
IOU5:
router bgp 345
bgp router-id 5.5.5.5
neighbor 3.3.3.3 remote-as 345
neighbor 3.3.3.3 update-source loopback 0
neighbor 4.4.4.4 remote-as 345
neighbor 4.4.4.4 update-source loopback 0
neighbor 10.1.23.1 remote-as 200
network 10.1.45.0 mask 255.255.255.0
network 10.1.23.0 mask 255.255.255.0
network 5.5.5.5 mask 255.255.255.255
exit
router ospf 1
network 10.1.45.0 0.0.0.255 area 0
network 10.1.23.0 0.0.0.255 area 0
network 5.5.5.5 0.0.0.0 area 0
exit

查看bgp

BGP初步实验二_5e_02

实验结束,如有疏漏,还请读者指出。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK