雏鹰部落

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
楼主: magin1

[其他] 哪位大神能不能帮我写个配置啊?非常感谢!

  [复制链接]
 楼主| 发表于 2011-5-11 19:07:58 | 显示全部楼层
R1-R2 和R4-R2这两个上面都用BGP么?这和我原来那个差不多,老师说一个自治系统的路由器不能连两个线到另一个自治系统的路由器上用BGP?是这样不?
 楼主| 发表于 2011-5-11 19:11:30 | 显示全部楼层
回复 10 # jiazeyao 的帖子

R1-R2 和R4-R2这两个上面都用BGP么?这和我原来那个差不多,老师说一个自治系统的路由器不能连两个线到另一个自治系统的路由器上用BGP?是这样不?
发表于 2011-5-11 19:29:16 | 显示全部楼层
“老师说一个自治系统的路由器不能连两个线到另一个自治系统的路由器上用BGP?”这是什么话?
发表于 2011-5-11 19:32:10 | 显示全部楼层
拓扑跟你的差不多,但是所有路由器都要配bgp。路由器R1、3、4是IBGP,R2、5是EBGP。
你的配置其实是有点问题的。就IBGP的那部分配置来说。
你看下我的配置的,你参考参考。
发表于 2011-5-11 19:33:44 | 显示全部楼层
基本配置:
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

 楼主| 发表于 2011-5-11 20:41:38 | 显示全部楼层
回复 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 这句什么意思?有什么作用?
希望高人指点,别嫌我烦啊。十分感谢你!

发表于 2011-5-11 20:58:01 | 显示全部楼层
本帖最后由 jiazeyao 于 2011-5-11 20:59 编辑

糟糕,**-source Loopback0给屏蔽成了**。。。。郁闷。
发表于 2011-5-11 21:02:51 | 显示全部楼层
当然不会嫌你烦啦,你问问题刚好可以帮我回忆那些知识呢。
 楼主| 发表于 2011-5-11 21:24:16 | 显示全部楼层
回复 18 # jiazeyao 的帖子

**-source Loopback0还是给屏蔽了。有什么办法能叫它不被屏蔽不?
这个东西在GNS3里怎么在拓扑图上表示啊?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
发表于 2011-5-11 21:26:20 | 显示全部楼层
回复 19 # magin1 的帖子

你加下我的q,直接对话比较好。646240801
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-5-3 13:06 , Processed in 0.066218 second(s), 14 queries , Gzip On.

快速回复 返回顶部 返回列表