Chinaunix首页 | 论坛 | 博客
  • 博客访问: 936299
  • 博文数量: 276
  • 博客积分: 4182
  • 博客等级: 上校
  • 技术积分: 4486
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-17 21:14
文章分类

全部博文(276)

文章存档

2014年(9)

2013年(132)

2012年(135)

分类:

2012-08-01 15:18:15

RTB]                                                                        
[RTB]display current-configuration                                          
   Now create configuration...                                                
   Current configuration                                                      
   !                                                                            
version 1.74                                                            
sysname RTB                                                                
firewall enable                                                         
aaa-enable                                                               
aaa accounting-scheme optional                                          
   !                                                                            
   interface Aux0                                                            
async mode flow                                                         
link-protocol ppp                                                          
   !                                                                            
   interface Ethernet0                                                          
   !                                                                            
   interface Serial0                                                         
link-protocol ppp                                                          
   !                                                                            
   interface Serial1                                                         
link-protocol ppp                                                          
ip address 10.1.0.2 255.255.255.0                                       
   !                                                                            
   interface Serial2                                                         
clock DTECLK1                                                            
link-protocol ppp                                                          
ip address 10.3.0.1 255.255.255.0                                       
ospf enable area 0.0.0.0                                                
   !                                                                            
   interface Serial3                                                         
link-protocol ppp                                                          
   !                                                                            
   quit                                                                         
   ospf enable                                                               
   !                                                                            
   quit                                                                         
   !                                                                            
   bgp 200                                                                      
undo synchronization                                                       
network 10.1.0.0 mask 255.255.255.0                                        
peer 10.3.0.2 as-number 200                                             
peer 10.4.0.1 as-number 200                                             
peer 10.1.0.1 as-number 100                                             
peer 10.1.0.1 route-policy for6_7 import                                 
   !                                                                            
   quit                                                                         
   !                                                                            
   quit                                                                         
   route-policy for6_7 permit 10                                             
if-match community 1                                                       
apply local-preference 400                                                 
quit                                                                     
   route-policy for6_7 permit 20                                             
if-match community 2                                                       
apply local-preference 300                                                 
   !                                                                            
   quit                                                                         
   ip community-list 1   permit 100:1                                          
   ip community-list 2   permit 200:1                                          
   !                                                                            
   return    [RTB]dis bgp su                                                                
Peer           State    version AS Msg-Rx Msg-Tx Queued-Tx Up/Down  
10.3.0.2    Established 4    200 22        33        0       00:21:03
10.4.0.1    Established 4    200 7       8       0       00:01:08
10.1.0.1    Established 4    100 27        36        0       00:24:55
[RTB]dis bgp                                                                   
router ID: 10.3.0.1                                                         
Flags: # - valid    ^ - best                                          
      D - damped    H - history                                       
      I - internal S - aggregate suppressed                           
   Destination/Mask Next Hop    Flags   Med LocPref Origin     Path   
       6.6.6.0/24 10.1.0.1       #^           400 IGP        100   
       7.7.7.0/24 10.2.0.1       #^I       400 IGP        100   
                  10.1.0.1       #          300 IGP        100   
   10.1.0.0/24 0.0.0.0       #^                IGP               
   10.2.0.0/24 10.4.0.1       #^I       100 IGP               
[RTB]display ip routing-table                                                
Routing Tables:                                                                
   Destination/Mask   Proto Pref     Metric     Nexthop Interface         
       6.6.6.0/24     BGP   170       0       10.1.0.1 Serial1             
       7.7.7.0/24     BGP   170       0       10.2.0.1 Serial2             
   10.1.0.0/24   Direct 0       0       10.1.0.1 Serial1             
   10.1.0.1/32   Direct 0       0       10.1.0.1 Serial1             
   10.1.0.2/32   Direct 0       0        127.0.0.1 LoopBack0         
   10.2.0.0/24     BGP   170       0       10.4.0.1 Serial2             
   10.3.0.0/24   Direct 0       0       10.3.0.2 Serial2             
   10.3.0.1/32   Direct 0       0        127.0.0.1 LoopBack0         
   10.3.0.2/32   Direct 0       0       10.3.0.2 Serial2             
   10.4.0.0/24 OSPF 10    3124       10.3.0.2 Serial2             
   127.0.0.0/8 Direct 0       0        127.0.0.1 LoopBack0         
   127.0.0.1/32   Direct 0       0        127.0.0.1 LoopBack0         
[RTB]                                          




阅读(882) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

10127157472012-08-14 00:32:28

学网络的还有这样的漂亮的美女,加QQ