实验3.10 BGP路径选择-Community

实验3.10 BGP路径选择-Community

========================================================================

1、基本配置

========================================================================

R1:

sys

sysname R1

undo info-cen en

int loop 0

ip add 10.0.1.1 32

int loop 1

ip add 10.0.100.1 32

int loop 2

ip add 10.0.100.2 32

int loop 3

ip add 10.0.100.3 32

int loop 4

ip add 10.0.100.4 32

int loop 5

ip add 10.0.100.5 32

int g0/0/0

ip add 10.0.12.1 24

q

------------------------------------------

R2:

sys

sysname R2

undo info-cen en

int loop 0

ip add 10.0.2.2 32

int g0/0/0

ip add 10.0.12.2 24

int g0/0/1

ip add 10.0.23.2 24

int g0/0/2

ip add 10.0.24.2 24

q

------------------------------------------

R3:

sys

sysname R3

undo info-cen en

int loop 3

ip add 10.0.3.3 32

int g0/0/1

ip add 10.0.23.3 24

q

------------------------------------------

R4:

sys

sysname R4

undo info-cen en

int loop 0

ip add 10.0.4.4 32

int g0/0/2

ip add 10.0.24.4 24

int g0/0/0

ip add 10.0.45.4 24

q

------------------------------------------

R5:

sys

sysname R5

undo info-cen en

int loop 0

ip add 10.0.5.5 32

int g0/0/0

ip add 10.0.45.5 24

q

========================================================================

2.配置BGP路由协议

========================================================================

#配置OSPF协议:

R2:

ospf 1 router-id 10.0.2.2

area 0

network 10.0.23.0 0.0.0.255

network 10.0.24.0 0.0.0.255

network 10.0.2.2 0.0.0.0

q

------------------------------------------

R3:

ospf 1 router-id 10.0.3.3

area 0

network 10.0.23.0 0.0.0.255

network 10.0.3.3 0.0.0.0

q

------------------------------------------

R4:

ospf 1 router-id 10.0.4.4

area 0

network 10.0.23.0 0.0.0.255

network 10.0.4.4 0.0.0.0

q

------------------------------------------

#配置BGP协议

#############

R1:

bgp 100

router-id 10.0.1.1

peer 10.0.12.2 as-number 200

network 10.0.100.1 32

network 10.0.100.2 32

network 10.0.100.3 32

network 10.0.100.4 32

network 10.0.100.5 32

q

------------------------------------------

R2:

bgp 2001

router-id 10.0.2.2

confederation id 200

confederation peer-as 2002

peer 10.0.23.3 as-number 2002

peer 10.0.23.3 next-hop-local

peer 10.0.24.4 as-number 2001

peer 10.0.24.4 next-hop-local

peer 10.0.12.1 as-number 100

------------------------------------------

R3:

bgp 2002

router-id 10.0.3.3

confederation id 200

confederation peer-as 2001

peer 10.0.23.2 as-number 2001

------------------------------------------

R4:

bgp 2001

router-id 10.0.4.4

confederation id 200

confederation peer-as 2001

peer 10.0.24.2 as-number 2001

peer 10.0.24.2 next-hop-local

peer 10.0.45.5 as-number 300

------------------------------------------

R5:

bgp 300

router-id 10.0.5.5

peer 10.0.45.4 as-number 200

#################

#查看BGP邻居信息和BGP路由表。

R1、R2、R3、R4、R5:

dis bgp peer

dis bgp routing-table

#################

你可能感兴趣的:(实验3.10 BGP路径选择-Community)