首页 > 学院 > 网络通信 > 正文

BGP MED选择

2019-11-04 20:50:07
字体:
来源:转载
供稿:网友

  Building configuration...
  
  Current configuration : 1324 bytes
  !
  version 12.1
  service timestamps debug uptime
  service timestamps log uptime
  no service passWord-encryption
  !
  hostname R5
  !
  enable secret 5 $1$Tt7g$lxycoveEsDshCXdA2Ii5Z1
  !
  !
  !
  !
  !
  ip subnet-zero
  no ip finger
  no ip domain-lookup
  ip host R1 2001 1.1.1.1
  ip host R2 2002 1.1.1.1
  ip host R3 2003 1.1.1.1
  ip host R4 2004 1.1.1.1
  ip host R6 2005 1.1.1.1
  ip host Cat 2006 1.1.1.1
  ip host Fe 2007 1.1.1.1
  ip host R8 2008 1.1.1.1
  !
  !
  !
  !
  interface Loopback0
  ip address 1.1.1.1 255.255.255.0
  !
  interface Loopback1
  ip address 2.2.2.2 255.255.255.0
  !
  interface Ethernet0
  ip address 192.168.0.2 255.255.255.0
  !
  interface Serial0
  ip address 193.1.1.1 255.255.255.0
  !
  interface Serial1
  ip address 192.1.1.1 255.255.255.0
  !
  router bgp 100
  bgp log-neighbor-changes
  network 1.0.0.0
  network 2.0.0.0
  neighbor 192.1.1.2 remote-as 200
  neighbor 192.1.1.2 route-map lab out
  neighbor 193.1.1.2 remote-as 200
  neighbor 193.1.1.2 route-map Alan out
  !
  ip classless
  ip http server
  !
  access-list 1 permit 1.0.0.0 0.255.255.255
  route-map Alan permit 10
  match ip address 1
  set metric 50
  !
  route-map Alan permit 20
  !
  route-map lab permit 10
  match ip address 1
  set metric 100
  !
  route-map lab permit 20
  !
  !
  line con 0
  transport input none
  line 1 8
  no exec
  transport input all
  line 9 16
  line aux 0
  line vty 0 4
  password cisco
  login
  !
  end
  
  R5#cle ip bgp *
  R5#
  01:10:16: %BGP-5-ADJCHANGE: neighbor 192.1.1.2 Down User reset
  01:10:16: %BGP-5-ADJCHANGE: neighbor 193.1.1.2 Down User resetx
  % Ambiguous command: "x"
  R5#1
  [Resuming connection 1 to r3 ... ]
  
  R3#cle ip bgp *
  R3#
  01:10:58: %BGP-5-ADJCHANGE: neighbor 193.1.1.2 Up
  01:11:01: %BGP-5-ADJCHANGE: neighbor 192.1.1.2 Up sh ip bgp
  BGP table version is 4, local router ID is 194.1.1.2
  Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
  Origin codes: i - IGP, e - EGP, ? - incomplete
  
  Network Next Hop Metric LocPRf Weight Path
  * 1.0.0.0 192.1.1.1 100 0 100 i
  *>i 193.1.1.1 50 100 0 100 i
  *> 2.0.0.0 192.1.1.1 0 0 100 i
  * i 193.1.1.1 0 100 0 100 i


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表