R1-R2 和R4-R2这两个上面都用BGP么?这和我原来那个差不多,老师说一个自治系统的路由器不能连两个线到另一个自治系统的路由器上用BGP?是这样不? “老师说一个自治系统的路由器不能连两个线到另一个自治系统的路由器上用BGP?”这是什么话?
拓扑跟你的差不多,但是所有路由器都要配bgp。路由器R1、3、4是IBGP,R2、5是EBGP。
你的配置其实是有点问题的。就IBGP的那部分配置来说。
你看下我的配置的,你参考参考。 基本配置:
en
conf t
no ip do lo
line con 0
logg s
exec-t 0
ho R //R后面跟着路由器编号
以下是每个路由器的配置:
R1:--------------------------------------
interface Loopback0
ip address 1.1.1.1 255.255.255.0
no sh
interface Serial1/0
ip address 12.1.1.1 255.255.255.0
no sh
interface Serial1/1
ip address 13.1.1.1 255.255.255.0
no sh
router ospf 1
router-id 1.1.1.1
network 0.0.0.0 255.255.255.255 area 0
router bgp 134
no synchronization
bgp router-id 1.1.1.1
neighbor 3.3.3.3 remote-as 134
neighbor 3.3.3.3 **-source Loopback0
neighbor 3.3.3.3 next-hop-self
neighbor 4.4.4.4 remote-as 134
neighbor 4.4.4.4 **-source Loopback0
neighbor 4.4.4.4 next-hop-self
neighbor 12.1.1.2 remote-as 2
no auto-summary
R2:--------------------------------------
interface Loopback0
ip address 2.2.2.2 255.255.255.0
no sh
rface Serial1/0
ip address 12.1.1.2 255.255.255.0
no sh
int s1/1
no sh
ip add 24.1.1.2 255.255.255.0
router bgp 2
bgp router-id 2.2.2.2
network 2.2.2.0 mask 255.255.255.0
neighbor 12.1.1.1 remote-as 134
neighbor 24.1.1.4 remot 134
R3:--------------------------------------
interface Loopback0
ip address 3.3.3.3 255.255.255.0
interface Serial1/0
ip address 35.1.1.3 255.255.255.0
no sh
interface Serial1/1
ip address 13.1.1.3 255.255.255.0
no sh
interface Serial1/2
ip address 34.1.1.3 255.255.255.0
no sh
router ospf 1
router-id 3.3.3.3
network 0.0.0.0 255.255.255.255 area 0
router bgp 134
no synchronization
bgp router-id 3.3.3.3
neighbor 1.1.1.1 remote-as 134
neighbor 1.1.1.1 **-source Loopback0
neighbor 1.1.1.1 next-hop-self
neighbor 4.4.4.4 remote-as 134
neighbor 4.4.4.4 **-source Loopback0
neighbor 4.4.4.4 next-hop-self
neighbor 35.1.1.5 remote-as 5
no auto-summary
R4:--------------------------------------
interface Loopback0
ip address 4.4.4.4 255.255.255.0
interface Serial1/1
ip address 24.1.1.4 255.255.255.0
no sh
interface Serial1/2
ip address 34.1.1.4 255.255.255.0
no sh
router ospf 1
router-id 4.4.4.4
network 0.0.0.0 255.255.255.255 area 0
router bgp 134
no synchronization
bgp router-id 4.4.4.4
neighbor 1.1.1.1 remote-as 134
neighbor 1.1.1.1 **-source Loopback0
neighbor 1.1.1.1 next-hop-self
neighbor 3.3.3.3 remote-as 134
neighbor 3.3.3.3 **-source Loopback0
neighbor 3.3.3.3 next-hop-self
neighbor 24.1.1.2 remote-as 2
no auto-summary
R5:--------------------------------------
interface Loopback0
ip address 5.5.5.5 255.255.255.0
interface Serial1/0
ip address 35.1.1.5 255.255.255.0
no sh
router bgp 5
no synchronization
bgp router-id 5.5.5.5
network 5.5.5.0 mask 255.255.255.0
neighbor 35.1.1.3 remote-as 134
no auto-summary
回复 15 # jiazeyao 的帖子
我那个毕设题目是BGP在IP城域网中的应用我用你给我的那个拓扑图做这个题目的仿真,合适不?老师今天把我骂怕了,高人你给我指点指点吧!
router bgp 134
no synchronization 这句的作用是啥?
bgp router-id 4.4.4.4
neighbor 1.1.1.1 remote-as 134
neighbor 1.1.1.1 **-source Loopback0这句中 **-source Loopback0这个啥意思?
neighbor 1.1.1.1 next-hop-self这句什么意思?有什么作用?
neighbor 3.3.3.3 remote-as 134
neighbor 3.3.3.3 **-source Loopback0
neighbor 3.3.3.3 next-hop-self
neighbor 24.1.1.2 remote-as 2
no auto-summary 这句什么意思?有什么作用?
希望高人指点,别嫌我烦啊-71-。十分感谢你!
本帖最后由 jiazeyao 于 2011-5-11 20:59 编辑
糟糕,**-source Loopback0给屏蔽成了**。。。。郁闷。 当然不会嫌你烦啦,你问问题刚好可以帮我回忆那些知识呢。 回复 18 # jiazeyao 的帖子
**-source Loopback0还是给屏蔽了。有什么办法能叫它不被屏蔽不?
这个东西在GNS3里怎么在拓扑图上表示啊?
回复 19 # magin1 的帖子
你加下我的q,直接对话比较好。646240801
页:
1
[2]