小弟才疏學淺..把之前公司學到的一點東西拿出來獻丑
以下是在pe router一定要有的設定
ip vrf aaa ---aaa就是客戶名稱
rd 1234:1 ---rd是mbgp在交換routing用的
route-target export 1234:1
route-target import 1234:1
ip cef ---一定要下..不下打死不會通
interface FastEthe.net1/0
ip address xxxx
full-duplex
tag-switching mtu 1530 ----接到p router一定要下此行..因為加了tag mtu 會變大
tag-switching ip ----讓interface知道上面有跑加了tag 的封包
interface serial 0/0
ip address xxxx
ip vrf fowarding aaa ---上下車的interface要加上tag要打此行
--以下都是再定義mbgp..所有mpls的routing都是用mbgp交換的---
router bgp 1234
no synchronization
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor MPLS-PEER peer-group ---MPLS-PEER這個字符串是自訂的名稱
neighbor MPLS-PEER remote-as 1234
neighbor MPLS-PEER update-source Loopback0
neighbor MPLS-PEER activate
neighbor 1.1.1.1peer-group MPLS-PEER ....由于是要靠ibgp交換.所以要fully mesh...有幾顆pe就要輸入幾顆pe的 ip
neighbor 2.2.2.2 peer-group MPLS-PEER
neighbor 3.3.3.3 peer-group MPLS-PEER
neighbor 4.4.4.4 peer-group MPLS-PEER
no auto-summary
address-family ipv4 vrf aaa
redistribute connected
redistribute static
no auto-summary
no synchronization
exit-address-family
address-family vpnv4
neighbor 1.1.1.1 activate
neighbor 1.1.1.1 send-community extended
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community extended
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community extended
neighbor 4.4.4.4 activate
neighbor 4.4.4.4 send-community extended
ip route vrf aaa 192.168.181.0 255.255.255.0 192.168.1.6 ---要下車的default route..在此范例中要往serial 0/0丟的才對
至于p router...上面跑的就只有ospf啦..
文章來源于領測軟件測試網 http://www.kjueaiud.com/
版權所有(C) 2003-2010 TestAge(領測軟件測試網)|領測國際科技(北京)有限公司|軟件測試工程師培訓網 All Rights Reserved
北京市海淀區中關村南大街9號北京理工科技大廈1402室 京ICP備10010545號-5
技術支持和業務聯系:info@testage.com.cn 電話:010-51297073
老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月