IPv6 OSPF and IPv6 BGP -- ipv6 unicast-routing

【BGP协议实战解析】——从报文交互到路径选择的深度剖析 本文深度解析BGP协议的核心机制与实战应用,从报文交互到路径选择的完整流程。详细拆解OPEN、UPDATE、KEEPALIVE、NOTIFICATION四种报文类型,剖析AS_PATH、LOCAL_PREF等关键属性在路由决策中的作用,并提供多宿主网络、数据中心互联等典型场景的配置示例与排错指南。 阅读详情

 

R12#show run
R12#show running-config 
Building configuration...

Current configuration : 2920 bytes
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R12
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
clock timezone HKT 8 0
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
ip auth-proxy max-login-attempts 5
ip admission max-login-attempts 5
!         
!         
!         
!         
!         
no ip domain lookup
ip cef    
ipv6 unicast-routing
ipv6 cef  
!         
multilink bundle-name authenticated
!         
!         
!         
!         
!         
!         
!         
!         
!         
redundancy
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!
!
interface Loopback0
 ip address 123.12.12.12 255.255.255.255
 ipv6 address 2001:CC1E:BEEF:1212:12:12:12:12/128
!
interface Ethernet0/0
 ip address 10.1.12.1 255.255.255.0
 ipv6 address 2001:CC1E:BEEF:12:10:1:12:1/64
!
interface Ethernet0/1
 no ip address
!
interface Ethernet0/1.4
 encapsulation dot1Q 12
 ip address 201.1.12.2 255.255.255.252
!
interface Ethernet0/1.6
 encapsulation dot1Q 6
 ipv6 address 2001:CC1E:8BAD:6112::2/64
!
interface Ethernet0/2
 no ip address
 shutdown
!
interface Ethernet0/3
 no ip address
 shutdown
!
interface Ethernet1/0
 no ip address
 shutdown
!
interface Ethernet1/1
 no ip address
 shutdown
!
interface Ethernet1/2
 no ip address
 shutdown
!
interface Ethernet1/3
 no ip address
 shutdown
!
interface Ethernet2/0
 no ip address
 shutdown
!
interface Ethernet2/1
 no ip address
 shutdown
!
interface Ethernet2/2
 no ip address
 shutdown
!
interface Ethernet2/3
 no ip address
 shutdown
!
interface Ethernet3/0
 no ip address
 shutdown
!
interface Ethernet3/1
 no ip address
 shutdown
!         
interface Ethernet3/2
 no ip address
 shutdown
!
interface Ethernet3/3
 no ip address
 shutdown
!
interface Serial4/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial4/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial4/2
 no ip address
 shutdown
 serial restart-delay 0
!         
interface Serial4/3
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial5/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial5/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial5/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial5/3
 no ip address
 shutdown 
 serial restart-delay 0
!
router bgp 65111
 bgp router-id 123.12.12.12
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 2001:CC1E:8BAD:6112::1 remote-as 20001
 neighbor 201.1.12.1 remote-as 20001
 !
 address-family ipv4
  network 10.1.12.0 mask 255.255.255.0
  network 123.12.12.12 mask 255.255.255.255
 exit-address-family
 !
 address-family ipv6
  network 2001:CC1E:BEEF:12::/64
  network 2001:CC1E:BEEF:1212:12:12:12:12/128
  neighbor 2001:CC1E:8BAD:6112::1 activate
 exit-address-family
!
ip forward-protocol nd
!
!         
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
!
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
 login
 transport input all
!
!         
end

R12#  
R12#
R14#show run
R14#show running-config 
Building configuration...

Current configuration : 2948 bytes
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R14
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
clock timezone HKT 8 0
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
ip auth-proxy max-login-attempts 5
ip admission max-login-attempts 5
!
!
!
!
!
no ip domain lookup
ip cef
ipv6 unicast-routing
ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
redundancy
!
!         
! 
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 123.14.14.14 255.255.255.255
 ipv6 address 2001:CC1E:BEEF:1414:14:14:14:14/128
!
interface Ethernet0/0
 ip address 10.1.14.1 255.255.255.0
 ipv6 address 2001:CC1E:BEEF:14:10:1:14:1/64
!
interface Ethernet0/1
 no ip address
!         
interface Ethernet0/1.4
 encapsulation dot1Q 14
 ip address 202.2.14.2 255.255.255.252

!
interface Ethernet0/1.6
 encapsulation dot1Q 6
 ipv6 address 2001:CC1E:1CE:6214::2/64

!
interface Ethernet0/2
 no ip address
 shutdown
!
interface Ethernet0/3
 no ip address
 shutdown
!
interface Ethernet1/0
 no ip address
 shutdown
!
interface Ethernet1/1
 no ip address
 shutdown 
!
interface Ethernet1/2
 no ip address
 shutdown
!
interface Ethernet1/3
 no ip address
 shutdown
!
interface Ethernet2/0
 no ip address
 shutdown
!
interface Ethernet2/1
 no ip address
 shutdown
!
interface Ethernet2/2
 no ip address
 shutdown
!
interface Ethernet2/3
 no ip address
 shutdown
!
interface Ethernet3/0
 no ip address
 shutdown
!
interface Ethernet3/1
 no ip address
 shutdown
!
interface Ethernet3/2
 no ip address
 shutdown
!
interface Ethernet3/3
 no ip address
 shutdown
!
interface Serial4/0
 no ip address
 shutdown
 serial restart-delay 0
!         
interface Serial4/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial4/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial4/3
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial5/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial5/1
 no ip address
 shutdown 
 serial restart-delay 0
!
interface Serial5/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial5/3
 no ip address
 shutdown
 serial restart-delay 0
!
router bgp 65111
 bgp router-id 123.14.14.14
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 2001:CC1E:1CE:6214::1 remote-as 20002
 neighbor 202.2.14.1 remote-as 20002
 !
 address-family ipv4
  network 10.1.14.0 mask 255.255.255.0
  network 123.14.14.14 mask 255.255.255.255
  neighbor 202.2.14.1 activate
 exit-address-family
 !
 address-family ipv6
  network 2001:CC1E:BEEF:14::/64
  network 2001:CC1E:BEEF:1414:14:14:14:14/128
  neighbor 2001:CC1E:1CE:6214::1 activate
 exit-address-family
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
!
!
!         
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
 login
 transport input all
!
!
end

R14#    
R14#
----------------------------------------
R14#show ipv6 ro
R14#show ipv6 route 
IPv6 Routing Table - default - 15 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
       B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
       H - NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
       IS - ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
       ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
       l - LISP
       O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
C   2001:CC1E:1CE:6214::/64 [0/0]
     via Ethernet0/1.6, directly connected
L   2001:CC1E:1CE:6214::2/128 [0/0]
     via Ethernet0/1.6, receive
B   2001:CC1E:BEEF:12::/64 [20/0]
     via FE80::A8BB:CCFF:FE00:3E20, Ethernet0/1.6
C   2001:CC1E:BEEF:14::/64 [0/0]
     via Ethernet0/0, directly connected
L   2001:CC1E:BEEF:14:10:1:14:1/128 [0/0]
     via Ethernet0/0, receive
B   2001:CC1E:BEEF:34::/64 [20/0]
     via FE80::A8BB:CCFF:FE00:3E20, Ethernet0/1.6
B   2001:CC1E:BEEF:203:123:3:3:3/128 [20/0]
     via FE80::A8BB:CCFF:FE00:3E20, Ethernet0/1.6
B   2001:CC1E:BEEF:204:123:4:4:4/128 [20/0]
     via FE80::A8BB:CCFF:FE00:3E20, Ethernet0/1.6
B   2001:CC1E:BEEF:310::/64 [20/0]
     via FE80::A8BB:CCFF:FE00:3E20, Ethernet0/1.6
B   2001:CC1E:BEEF:411::/64 [20/0]
     via FE80::A8BB:CCFF:FE00:3E20, Ethernet0/1.6
B   2001:CC1E:BEEF:1010:10:10:10:10/128 [20/0]
     via FE80::A8BB:CCFF:FE00:3E20, Ethernet0/1.6
B   2001:CC1E:BEEF:1111:11:11:11:11/128 [20/0]
     via FE80::A8BB:CCFF:FE00:3E20, Ethernet0/1.6
B   2001:CC1E:BEEF:1212:12:12:12:12/128 [20/0]
     via FE80::A8BB:CCFF:FE00:3E20, Ethernet0/1.6
LC  2001:CC1E:BEEF:1414:14:14:14:14/128 [0/0]
     via Loopback0, receive
L   FF00::/8 [0/0]
     via Null0, receive
R14#   
R14#
-----------------------------
R12#show ipv6 ro
R12#show ipv6 route 
IPv6 Routing Table - default - 15 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
       B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
       H - NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
       IS - ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
       ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
       l - LISP
       O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
C   2001:CC1E:8BAD:6112::/64 [0/0]
     via Ethernet0/1.6, directly connected
L   2001:CC1E:8BAD:6112::2/128 [0/0]
     via Ethernet0/1.6, receive
C   2001:CC1E:BEEF:12::/64 [0/0]
     via Ethernet0/0, directly connected
L   2001:CC1E:BEEF:12:10:1:12:1/128 [0/0]
     via Ethernet0/0, receive
B   2001:CC1E:BEEF:14::/64 [20/0]
     via FE80::A8BB:CCFF:FE00:3D20, Ethernet0/1.6
B   2001:CC1E:BEEF:34::/64 [20/0]
     via FE80::A8BB:CCFF:FE00:3D20, Ethernet0/1.6
B   2001:CC1E:BEEF:203:123:3:3:3/128 [20/0]
     via FE80::A8BB:CCFF:FE00:3D20, Ethernet0/1.6
B   2001:CC1E:BEEF:204:123:4:4:4/128 [20/0]
     via FE80::A8BB:CCFF:FE00:3D20, Ethernet0/1.6
B   2001:CC1E:BEEF:310::/64 [20/0]
     via FE80::A8BB:CCFF:FE00:3D20, Ethernet0/1.6
B   2001:CC1E:BEEF:411::/64 [20/0]
     via FE80::A8BB:CCFF:FE00:3D20, Ethernet0/1.6
B   2001:CC1E:BEEF:1010:10:10:10:10/128 [20/0]
     via FE80::A8BB:CCFF:FE00:3D20, Ethernet0/1.6
B   2001:CC1E:BEEF:1111:11:11:11:11/128 [20/0]
     via FE80::A8BB:CCFF:FE00:3D20, Ethernet0/1.6
LC  2001:CC1E:BEEF:1212:12:12:12:12/128 [0/0]
     via Loopback0, receive
B   2001:CC1E:BEEF:1414:14:14:14:14/128 [20/0]
     via FE80::A8BB:CCFF:FE00:3D20, Ethernet0/1.6
L   FF00::/8 [0/0]
     via Null0, receive
R12# 
R12#show ipv
R12#show ipv6 bg
R12#show ipv6 bg?
% Unrecognized command
R12#show b      
R12#show bg
R12#show bgp ip
R12#show bgp ipv6  ?
  multicast  Address Family modifier
  mvpn       Address Family modifier
  unicast    Address Family modifier

R12#show bgp ipv6  un
R12#show bgp ipv6  unicast ?
  X:X:X:X::X/<0-128>  IPv6 prefix <network>/<length>
  community           Display routes matching the communities
  community-list      Display routes matching the community-list
  dampening           Display detailed information about dampening
  extcommunity-list   Display routes matching the extcommunity-list
  filter-list         Display routes conforming to the filter-list
  inconsistency       Display all inconsistent paths
  inconsistent-as     Display only routes with inconsistent origin ASs
  injected-paths      Display all injected paths
  labels              Display BGP labels for prefixes
  neighbors           Detailed information on TCP and BGP neighbor connections
  nexthops            Nexthop address table
  paths               Path information
  peer-group          Display information on peer-groups
  pending-prefixes    Display prefixes pending deletion
  prefix-list         Display routes matching the prefix-list
  quote-regexp        Display routes matching the AS path "regular expression"
  regexp              Display routes matching the AS path regular expression
  replication         Display replication status of update-group(s)
  rib-failure         Display bgp routes that failed to install in the routing
                      table (RIB)
  route-map           Display routes matching the route-map
  route-server        Route server information
  rpki                Display RPKI Neighbor Cache
  summary             Summary of BGP neighbor status
  update-group        Display information on update-groups
  update-sources      Update source interface table
  |                   Output modifiers
  <cr>

R12#show bgp ipv6  unicast 
BGP table version is 12, local router ID is 123.12.12.12
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, 
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, 
              x best-external, a additional-path, c RIB-compressed, 
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>  2001:CC1E:BEEF:12::/64
                       ::                       0         32768 i
 *>  2001:CC1E:BEEF:14::/64
                       2001:CC1E:8BAD:6112::1
                                                              0 20001 34567 ?
 *>  2001:CC1E:BEEF:34::/64
                       2001:CC1E:8BAD:6112::1
                                                              0 20001 34567 ?
 *>  2001:CC1E:BEEF:203:123:3:3:3/128
                       2001:CC1E:8BAD:6112::1
                                                              0 20001 34567 ?
 *>  2001:CC1E:BEEF:204:123:4:4:4/128
                       2001:CC1E:8BAD:6112::1
                                                              0 20001 34567 ?
 *>  2001:CC1E:BEEF:310::/64
     Network          Next Hop            Metric LocPrf Weight Path
                       2001:CC1E:8BAD:6112::1
                                                              0 20001 34567 ?
 *>  2001:CC1E:BEEF:411::/64
                       2001:CC1E:8BAD:6112::1
                                                              0 20001 34567 ?
 *>  2001:CC1E:BEEF:1010:10:10:10:10/128
                       2001:CC1E:8BAD:6112::1
                                                              0 20001 34567 ?
 *>  2001:CC1E:BEEF:1111:11:11:11:11/128
                       2001:CC1E:8BAD:6112::1
                                                              0 20001 34567 ?
 *>  2001:CC1E:BEEF:1212:12:12:12:12/128
                       ::                       0         32768 i
 *>  2001:CC1E:BEEF:1414:14:14:14:14/128
                       2001:CC1E:8BAD:6112::1
                                                              0 20001 34567 ?
R12#  
R12#show b
R12#show bg
R12#show bgp ipv6 un?
unicast  

R12#show bgp ipv6 un
R12#show bgp ipv6 unicast nei
R12#show bgp ipv6 unicast neighbors ?
  A.B.C.D     Neighbor to display information about
  X:X:X:X::X  IPv6 neighbor to display information about
  slow        Slow neighbor status
  |           Output modifiers
  <cr>

R12#show bgp ipv6 unicast neighbors 
BGP neighbor is 2001:CC1E:8BAD:6112::1,  remote AS 20001, external link
  BGP version 4, remote router ID 123.61.61.61
  BGP state = Established, up for 00:10:52
  Last read 00:00:46, last write 00:00:10, hold time is 180, keepalive interval is 60 seconds
  Neighbor sessions:
    1 active, is not multisession capable (disabled)
  Neighbor capabilities:
    Route refresh: advertised and received(new)
    Four-octets ASN Capability: advertised and received
    Address family IPv6 Unicast: advertised and received
    Enhanced Refresh Capability: advertised and received
    Multisession Capability: 
    Stateful switchover support enabled: NO for session 1
  Message statistics:
    InQ depth is 0
    OutQ depth is 0
    
                         Sent       Rcvd
    Opens:                  1          1
    Notifications:          0          0
    Updates:                2          8
    Keepalives:            13         11
    Route Refresh:          0          0
    Total:                 16         20
  Default minimum time between advertisement runs is 30 seconds

 For address family: IPv6 Unicast
  Session: 2001:CC1E:8BAD:6112::1
  BGP table version 12, neighbor version 12/0
  Output queue size : 0
  Index 1, Advertise bit 0
  1 update-group member
  Slow-peer detection is disabled
  Slow-peer split-update-group dynamic is disabled
                                 Sent       Rcvd
  Prefix activity:               ----       ----
    Prefixes Current:               2          9
    Prefixes Total:                 2          9
    Implicit Withdraw:              0          0
    Explicit Withdraw:              0          0
    Used as bestpath:             n/a          0
    Used as multipath:            n/a          0

                                   Outbound    Inbound
  Local Policy Denied Prefixes:    --------    -------
    AS_PATH loop:                       n/a          2
    Bestpath from this peer:              9        n/a
    Total:                                9          2
  Number of NLRIs in the update sent: max 2, min 0
  Last detected as dynamic slow peer: never
  Dynamic slow peer recovered: never
  Refresh Epoch: 1
  Last Sent Refresh Start-of-rib: never
  Last Sent Refresh End-of-rib: never
  Last Received Refresh Start-of-rib: never
  Last Received Refresh End-of-rib: never
                                       Sent       Rcvd
        Refresh activity:              ----       ----
          Refresh Start-of-RIB          0          0
          Refresh End-of-RIB            0          0

  Address tracking is enabled, the RIB does have a route to 2001:CC1E:8BAD:6112::1
  Connections established 1; dropped 0
  Last reset never
  Transport(tcp) path-mtu-discovery is enabled
  Graceful-Restart is disabled
Connection state is ESTAB, I/O status: 1, unread input bytes: 0            
Connection is ECN Disabled, Mininum incoming TTL 0, Outgoing TTL 1
Local host: 2001:CC1E:8BAD:6112::2, Local port: 179
Foreign host: 2001:CC1E:8BAD:6112::1, Foreign port: 23100
Connection tableid (VRF): 0
Maximum output segment queue size: 50

Enqueued packets for retransmit: 0, input: 0  mis-ordered: 0 (0 bytes)

Event Timers (current time is 0xAD27E):
Timer          Starts    Wakeups            Next
Retrans            14          0             0x0
TimeWait            0          0             0x0
AckHold            15         13             0x0
SendWnd             0          0             0x0
KeepAlive           0          0             0x0
GiveUp              0          0             0x0
PmtuAger            0          0             0x0
DeadWait            0          0             0x0
Linger              0          0             0x0
ProcessQ            0          0             0x0

iss: 2208482561  snduna: 2208483004  sndnxt: 2208483004
irs: 4129458046  rcvnxt: 4129459049
          
sndwnd:  15942  scale:      0  maxrcvwnd:  16384
rcvwnd:  15382  scale:      0  delrcvwnd:   1002

SRTT: 846 ms, RTTO: 1975 ms, RTV: 1129 ms, KRTT: 0 ms
minRTT: 0 ms, maxRTT: 1000 ms, ACK hold: 200 ms
Status Flags: passive open, gen tcbs
Option Flags: nagle, path mtu capable
IP Precedence value : 6

Datagrams (max data segment is 1440 bytes):
Rcvd: 30 (out of order: 0), with data: 15, total data bytes: 1002
Sent: 30 (retransmit: 0, fastretransmit: 0, partialack: 0, Second Congestion: 0), with data: 30, total data bytes: 1650
 Packets received in fast path: 0, fast processed: 0, slow path: 0
 fast lock acquisition failures: 0, slow path: 0
TCP Semaphore      0xB28B82F4  FREE 

R12# 
-----------------------
R14#show bgp all  summary 
For address family: IPv4 Unicast
BGP router identifier 123.14.14.14, local AS number 65111
BGP table version is 6, main routing table version 6
5 network entries using 720 bytes of memory
5 path entries using 300 bytes of memory
3/3 BGP path/bestpath attribute entries using 408 bytes of memory
2 BGP AS-PATH entries using 48 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1476 total bytes of memory
BGP activity 16/0 prefixes, 16/0 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
202.2.14.1      4        20002      20      19        6    0    0 00:14:02        3

For address family: IPv6 Unicast
BGP router identifier 123.14.14.14, local AS number 65111
BGP table version is 12, main routing table version 12
11 network entries using 1848 bytes of memory
11 path entries using 924 bytes of memory
2/2 BGP path/bestpath attribute entries using 272 bytes of memory
2 BGP AS-PATH entries using 48 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 3092 total bytes of memory
BGP activity 16/0 prefixes, 16/0 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
2001:CC1E:1CE:6214::1
                4        20002      24      19       12    0    0 00:14:02        9
R14#
R14#
R12#ping 2001:cc1e:beef:14:10:1:14:1 source e 0/0 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:CC1E:BEEF:14:10:1:14:1, timeout is 2 seconds:
Packet sent with a source address of 2001:CC1E:BEEF:12:10:1:12:1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 2/2/4 ms
R12#
R12#


===================================


2.9 OSPFv3 +

ipv6 unicast-routing

-----------------lo 0  address need to see exam--


SW3: 


ipv6 unicast-routing

interface vlan 34 
 ipv6 address 2001:cc1e:beef:34:123:10:2:13/64
 no shutdown 

interface vlan 310 
 ipv6 address 2001:cc1e:beef:310:123:10:2:17/64 
 no shutdown 

interface lo 0 
 ipv6 address 2001:cc1e:beef:203:123:3:3:3/128 
 no shutdown 


SW4: 


ipv6 unicast-routing

interface vlan 34 
 ipv6 address 2001:cc1e:beef:34:123:10:2:14/64 
 no shutdown 

interface vlan 411
 ipv6 address 2001:cc1e:beef:411:123:10:2:21/64 
 no shutdown 

interface lo 0 
 ipv6 address 2001:cc1e:beef:204:123:4:4:4/128 
 no shutdown 

R10: 

ipv6 unicast-routing 

interface eth 0/2 
 ipv6 address 2001:cc1e:beef:310:123:10:2:18/64 
 no shutdown 

interface lo 0 
 ipv6 address 2001:cc1e:beef:1010:10:10:10:10/128 
 no shutdown 

interface eth 0/0 
 ipv6 address 2001:cc1e:8bad:1061::2/64 
 no shutdown 

R11: 

ipv6 unicast-routing 

interface eth 0/1 
 ipv6 address 2001:cc1e:beef:411:123:10:2:22/64 
 no shutdown 

interface lo 0 
 ipv6 address 2001:cc1e:beef:1111:11:11:11:11/128 
 no shutdown 

interface eth 0/0 
 ipv6 address 2001:cc1e:1ce:1162::2/64 
 no shutdown 


SW3: 

router ospfv3 1 
 router-id 123.203.3.3 
 exit


interface vlan 34 
 ospfv3 1 ipv6 area 0 

interface lo 0 
 ospfv3 1 ipv6 area 0 

interface vlan 310 
 ospfv3 1 ipv6 area 10



SW4: 

router ospfv3 1 
 router-id 123.204.4.4 
 exit

interface vlan 34 
 ospfv3 1 ipv6 area 0
 
interface lo 0 
 ospfv3 1 ipv6 area 0

interface vlan 411 
 ospfv3 1 ipv6 area 11


show ipv6 ospf interface brief 

R10: 

router ospfv3 1 
 router-id 123.10.10.10 
 exit

interface eth 0/2 
 ospfv3 1 area 10 ipv6 

interface lo 0 
 ospfv3 1 area 10 ipv6

R11: 

router ospfv3 1 
 router-id 123.11.11.11 
 exit

interface eth 0/1
 ospfv3 1 area 11 ipv6 
 
interface lo 0 
 ospfv3 1 area 11 ipv6 


show cli: 

show ipv6 ospf neighbor

show ipv6 route ospf 


SW4:

interface vlan 34 
 ospfv3 priority 255 
 exit


SW3:

interface vlan 34 
 ospfv3 priority 254 
 exit

show cli: 

show ipv6 ospf neighbor  


clear ipv6 ospf process
yes



show ipv6 ospf neighbor  

show ipv6 ospf inteface brief 

show ipv6 route ospf 



2.10 BGP for IPv6 


R10: 

router bgp 34567 
 neighbor 2001:cc1e:8bad:1061::1 remote-as 20001 
 address-family ipv6 
  neighbor 2001:cc1e:8bad:1061::1 activate 



R11: 

router bgp 34567 
 neighbor 2001:cc1e:1ce:1162::1 remote-as 20002 
 address-family ipv6 
  neighbor 2001:cc1e:1ce:1162::1 activate 


R12:  

ipv6 unicast-routing 

interface eth 0/1.6 
 ipv6 address 2001:cc1e:8bad:6112::2/64
 no shutdown 

interface eth 0/0 
 ipv6 address 2001:cc1e:beef:12:10:1:12:1/64
 no shutdown

interface lo 0
 ipv6 address 2001:cc1e:beef:1212:12:12:12:12/128 
 no shutdown 


router bgp 65111 
 neighbor 2001:cc1e:8bad:6112::1 remote-as 20001 
 address-family ipv6 
  neighbor 2001:cc1e:8bad:6112::1 activate 
  network 2001:cc1e:beef:12::/64 
  network 2001:cc1e:beef:1212:12:12:12:12/128 
  exit-address-family 

R14: 

ipv6 unicast-routing 

interface eth 0/1.6 
 ipv6 address 2001:cc1e:1ce:6214::2/64 
 no shutdown 

interface eth 0/0 
 ipv6 address 2001:cc1e:beef:14:10:1:14:1/64 
 no shutdown 

interface lo 0 
 ipv6 address 2001:cc1e:beef:1414:14:14:14:14/128 
 no shutdown 

router bgp 65111 
 neighbor 2001:cc1e:1ce:6214::1 remote-as 20002 
 address-family ipv6 
  neighbor 2001:cc1e:1ce:6214::1 activate 
  network 2001:cc1e:beef:14::/64 
  network 2001:cc1e:beef:1414:14:14:14:14/128

show cli:

show bgp ipv6 unicast 

show bgp ipv6 unicast 

R10:


router bgp 34567 
 address-family ipv6 
  redistribute ospf 1 match internal external 1 external 2 include-connected
  exit

router ospfv3 1 
 router-id 123.10.10.10
 address-family ipv6 unicast
  redistribute bgp 34567 



R11: 

router bgp 34567 
 address-family ipv6 
  redistribute ospf 1 match internal external 1 external 2  include-connected 
  exit

router ospfv3 1 
 router-id 123.11.11.11 
 address-family ipv6 unicast
  redistribute bgp 34567 
 end


show cli: 

show bgp ipv6 unicast 


R12:

ping 2001:cc1e:beef:14:10:1:14:1 source e 0/0 

网络默认路由深度解析:从0.0.0.0/0原理到企业级应用实践 在计算机网络中,路由是数据包转发的核心机制,它决定了信息从源到目的地的传输路径。路由的工作原理基于路由表查询和最长前缀匹配算法,确保数据能够高效、准确地到达目标网络。这项技术的核心价值在于实现网络互联互通,特别是在连接内部私有网络与外部公共互联网时起到桥梁作用。应用场景广泛覆盖企业网络出口设计、家庭上网、分支站点互联以及现代SD-WAN架构。本文将聚焦于静态路由和动态路由协议中的关键组件——默认路由,深入剖析其标识0.0.0.0/0的底层逻辑,并探讨其在OSPF、BGP等协议中的动态学习与传播机制。通过理解 阅读详情

相关推荐

网络安全技能试题总结参考

对网络安全技能测试相关的试题进行了总结,供大家参考。

小男孩儿的博客 1329

FC 魔天童子 金手指

0540-1-14-HP減らない 0541-1-2F-使いのHP減らない 0074-1-99-REST99回 0075-2-9999-お金最大 007D-1-10-無敵(穴に落ちたりしたらOFF) 009A-1-0-いぬぶえ所持 0099-1-0-てんけんじゅっぽう(ひのもと)所持 009B-1-0-鏡所持 0079-1-1-きそくほうじゅ(かっとびぐつ)所持 0762-1-14

暮然回首,那人却在灯火阑珊处 2万+

156.MPLS VPX配置实验与思路

1、公司XX,北京总公司和上海分公司2、要实现通过MPLS VPN将总公司和分公司连接起来3、AR2、AR5为提供商的PE设备,AR1、AR6为公司CE设备4、ISP内部IGP为osPf,EGP为BGP5、CE与PE设备如图所示。

迷逝 380

[转载]无法不对你残酷

 作者/安宁(《中国青年报》2005年12月18日) 弟弟第一次到北京读大学的时候,与我是同样的年龄。在父母的眼里,17岁,只不过是个孩子,而且,又是没出过县城连火车也没有见过的农村少年。母亲便打电话给我,说要不你回来接他吧,实在是不放心,那么大的北京,走丢了怎么办?我想起这么多年来,一个人走过的路,很坚决地便拒绝掉了。我说有什么不放心的,一个男孩子,连路都不会走,考上大学有什么用?! 

匆匆 人生 1565

【信息科学与工程学】【通信工程】计算机科学与自动化——第二百三十三篇 云NaaS服务 系列二02

字段内容类型​云网络自定义路由表(Custom Route Table):允许用户自定义 VPC 或子网的路由规则,控制流量走向,支持黑白名单、策略路由。端计算节点->边缘计算节点->边缘DC->中心云的网络情况及存储需求及配置情况列表​端计算节点为 VPC 内的云资源。边缘计算节点不适用。边缘 DC 和中心云为路由表管理平台。存储需求:路由条目存储于数据库。网络:路由表在虚拟路由器中执行。QoS:无。网络的端到端配置(从接入到汇聚到核心)​。

weixin_49199313的博客 330

Cesium实战:全球海洋动态水面与自定义区域波浪效果实现

本文详细介绍了在Cesium中实现全球海洋动态水面与自定义区域波浪效果的实战方法。通过解析核心概念Primitive与Geometry,并深入讲解Water材质的关键参数调节,指导开发者快速创建逼真的动态海洋。文章重点阐述了如何利用多边形坐标定义不规则图形区域,实现精准的局部水域波浪效果,并提供了性能优化与视觉提升的实用技巧。

weixin_29256771的博客 501

javaScript快速入门之运算符

一元运算符 自增和自减运算符 逻辑运算符 赋值运算符关系 相等运算符 条件运算符运算符的优先级运算符的优先级

qq_42992704的博客 2万+

FPGA时钟架构解密:从SRCC/MRCC到全局时钟树的实战指南

本文深入解析Xilinx 7系列FPGA时钟架构,从SRCC/MRCC引脚特性到全局时钟树设计,详细介绍了BUFG、BUFMR等关键组件的应用场景和优化策略。通过对比SRCC与MRCC的驱动范围及适用场景,提供低抖动时钟布线技巧和时钟域交叉(CDC)设计方法,帮助工程师构建高性能FPGA时钟系统。

weixin_29191081的博客 1486

❤️撸完这个springboot项目,我对boot轻车熟路!【源码+视频都开源】【强烈建议收藏】❤️

上次给大家分享了一个springboot+vue的校园招聘系统,视频教程加项目源码,都是开源的,应该说很香了,今天再给大家分享一个不错的springboot的项目。 老规矩,开源,开源,开源!!! 金九银十来了,小伙伴们,冲啊!前面已经整理了很多的面试题,拿去学习吧! 1,❤️爆肝!整理了一周的Spring面试大全【含答案】,吊打Java面试官【建议收藏】!❤️ 2,❤️肝完了,一天掌握数据结构和算法面试题,吊打面试官,建议收藏❤️ 3,❤️集合很简单?开什么玩笑?肝了一周,全是精华,

程序员springmeng 8万+

量化交易如何利用涨停板策略收割散户

量化交易通过算法筛选特定特征的股票,在早盘建立底仓后,利用大单拉升制造抢筹假象,吸引散户跟风买入。这种策略利用了散户的认知偏差,如锚定效应和从众心理,导致次日低开闷杀。从技术实现来看,量化策略通过控制买入量、隐藏真实意图等手段,精准执行隔日砸策略。对于短线交易者而言,理解量化资金的运作逻辑和识别危险涨停板的特征至关重要,这包括观察封板时间、盘口挂单、量价关系等多维度数据。在算法主导的市场中,散户需要升级交易工具和策略,从预测走势转向应对走势,才能避免成为量化策略的牺牲品。

weixin_33046983的博客 291

无需Root!安卓模拟器+BurpSuite轻松搞定微信小程序抓包

本文详细介绍了如何在不root安卓设备的情况下,使用安卓模拟器和BurpSuite实现微信小程序抓包。通过夜神模拟器降级安卓版本、配置BurpSuite代理及安装证书等步骤,开发者可以轻松绕过微信的证书绑定,高效抓取小程序数据包。文章还提供了常见问题排查和高阶技巧,帮助开发者提升抓包效率。

weixin_29213655的博客 365

Linux-固定usb转网口名称

udev 是一个用户空间系统,它使操作系统管理员能够为事件注册用户空间处理程序。udev 守护程序接收的事件主要由 (Linux) 内核生成,以响应与外围设备相关的物理事件。因此,udev的主要目的是对外设检测和热插拔采取行动,包括将控制权返回给内核的操作,udev 可提供所需的基础结构来动态维护 /dev 目录中的设备节点文件和符号链接。udev 规则提供了将外部工具插入内核设备事件处理的方式。

Paper_Love的博客 1万+

RTDETR多模态融合实战:基于注意力机制的红外与可见光目标检测优化

本文深入探讨了基于RTDETR模型的红外与可见光多模态目标检测优化方案。针对复杂光照下的检测难题,文章提出并实战演示了如何利用注意力机制(如SimAM与交叉注意力)实现RGB与IR特征的智能动态融合,从而构建更鲁棒的“全天候”检测系统,有效提升安防、自动驾驶等场景在夜间及恶劣天气下的检测精度与可靠性。

weixin_29083373的博客 188

实现IPv6 OSPF

IPv6路由协议1.静态2.RIPng(RFC 2080)3.OSPFv3(RFC 2740)4.IS-IS for IPv65.MP-BGP4(RFC 2545/2858)6.EIGRP for IPv6配置Hiluyou协议之前,要求全局配置IPV6 UNICAST-ROUTING 命令RIPng于IPv4相同的地方1.距离矢量,直径范围15Hops,水平分割,毒性逆转2...

weixin_34342992的博客 801

ADS 使用教程(十八)Encrypting Designs using RFIP Encoder in ADS

在这一节,我们使用RFIP Encoder进行设计加密,这是一种保护知识产权和敏感设计数据的重要方法。RFIP Encoder提供了一种安全的方式来加密设计文件,确保只有授权人员能够访问和使用这些文件。

Dirge19的博客 1172

基于Verilog的8位CPU设计及UART扩展实现方案,包含完整的架构设计、核心代码实现和仿真验证方法

基于Verilog的8位CPU设计及UART扩展实现方案,包含完整的架构设计、核心代码实现和仿真验证方法

a_zxswer的博客 191

62、IPv6配置实验之BGP

1、实验拓扑2、基础配置R1配置ipv6 unicast-routinginterface Loopback0ipv6 address 1::1/64ipv6 ospf 110 area 0 interface Serial0/0ipv6 address 2000:12::1/64ipv6 ospf 110 area 0ipv6 router ospf...

weixin_34283445的博客 403

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

IPV6 路由协议配置

一、静态路由 1.1配置格式; ipv6 route 目的网段 出接口或者下一跳 1.2 注意事项: 如果只指定出接口,那么以太网是没法通信的,因为指定出接口需要发送arp请求包, 在ipv6中是没有arp的,但是在点对点接口中可以使用出接口 下一跳可以是接口配置地址,也可以是Link Local地址 如果选择Link Local地址,必须跟出口,因为路由表中无法查询到FE80路由 Note: 如果没有开启ipv6 unicast-routing(单播路由功能),只能去往邻居路由器直连接口 也就是说没有路由

weixin_44383922的博客 6613

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

大中型超市收银系统(可直接运行)

光步前台收银系统系统功能:商品销售、商品退货、挂单、收银员权限、会员销售、单品取消、整单取消、商品查询、脱机销售、脱机数据上传,基本资料下载,开钱箱、小票打印、收款结算,支持多币种付款方式(现金、储值卡、礼券、微信等),支持多种促销。运行环境:.net 4.0登陆信息用户名:1001 密码:123456内置商品信息,商品编码可输入00001000 - 00010000,测试效果相关功能键F5 结算 F9挂单 F11商品查询 F8退货 Insert单品取消 Del整单取消 F12开钱箱F2 会员 Ctrl+Z退出系统 Home 锁屏 相关源码待公开

IPv6实验 6PE

6PE, a similar technology that is used to transport IPv6 traffic across an existing IPv4+MPLS core without touching your core equipment (P routers). The primary reason for this solution is as of this...

繁星流动天际 991

计算机控制技术及应用

《计算机控制技术及应用》通过总结作者的科研成果和吸收国内外的先进理论、方法和技术,以计算机控制系统的网络化、开放化、智能化和集成化发展趋势为主线索,主要介绍计算机控制系统的基本概念和计算机控制系统的典型形式,计算机控制系统的数学描述与基本分析方法,以及数字PID控制器、最少拍控制系统、达林算法、状态变量设计法等设计方法及其各种改进算法。重点突出计算机控制系统输入输出通道接口的设计方法和典型控制系统的设计案例与实现方法等。

思科CCIE认证技术详解IPv6协议下的静态路由配置-ielab

无论是 NAT,还是 CIDR 等都是缓解 IP 地址短缺的手段,而 IPv6 才是解决地址短缺的最终方法。IPv6 是由 IETF 设计的下一代互联网协议,目的是取代现有的互联网协议 IPv4。 IPv4 的设计思想成功地造就了目前的国际互联网,其核心价值体现在简单、灵活和开放性。但随着新应用的不断涌现,传统的 IPv4 协议已经难以支持互联网的进一步扩张和新业务...

IE-lab网络实验室的博客 1449

软考中级网络工程师 第8章 组网技术 备考总结

本文是软考中级网络工程师第8章《组网技术》的备考讲义摘要,重点涵盖交换和路由组网的核心配置技术。文章分为考情分析和核心知识点两部分: 考情分析: 本章是下午案例分析的核心大题章节,分值占比高(选择题3-5分,案例分析20分左右) 考试统一采用华为VRP命令体系,重点设备为S5700/S5735交换机和AR系列路由器 核心考点包括VLAN/Trunk配置、STP协议、路由配置、ACL/NAT等 核心知识点: 交换机基础配置:视图切换、设备命名、管理IP配置、端口速率/双工设置、远程登录等 VLAN配置:Acc

basketball616的博客 582

计算机网络基础

路由(Routing)= 路由器根据目标 IP 地址,决定把数据包下一跳发往哪里。fill:#333;important;important;fill:none;color:#333;color:#333;important;fill:none;fill:#333;height:1em;你的电脑北京路由器1路由器2运营商路由器3目标服务器上海每一跳路由器查自己的路由表,决定往哪个方向转发。

曾令胜的博客 363

网络基础与TCP/IP协议栈核心技术解析

计算机网络是现代数字基础设施的核心组成部分,TCP/IP协议栈作为互联网通信的事实标准,通过分层架构实现数据可靠传输。物理层处理比特流传输,数据链路层通过MAC地址实现设备寻址,网络层借助IP协议完成路由选择,传输层则通过TCP/UDP协议保障数据传输质量。在工程实践中,子网划分、VLAN配置和路由协议选择直接影响网络性能,而Wireshark抓包和ping/traceroute等工具则是网络故障排查的利器。随着IPv6普及和SDN技术发展,网络自动化运维正成为行业趋势,掌握这些核心概念对构建高效稳定的企业

weixin_33688840的博客 364

DigitalOcean VPC与Azure混合云专线互联实战指南

混合云网络互联是现代分布式架构的基础能力,其核心在于突破公有云网络平面隔离限制,实现低延迟、高可靠、可审计的内网通信。基于BGP动态路由与SDN虚拟交叉连接(vXC)技术,企业可在DigitalOcean VPC与Microsoft Azure之间构建类专线链路,规避公网抖动、NAT穿透失败及MTU黑洞等传统IPSec隧道顽疾。该方案具备电信级SLA保障、原生BGP支持和合规日志留存能力,适用于跨云实时同步、AI训练数据回传、金融级API调用等对延迟敏感且需满足等保/ISO27001审计要求的生产场景。本文

jardownload的博客 419

中兴交换机配置脚本

端口聚合组配置 关于端口聚合组,在超融合平台中,一般情况下不需要使用端口聚合(VM平台上行口负载IP负载,思科交换机模式 on 才支持;$ 创建3层互联端口,也可以使用2层端口+SVI互联,但是3层端口更加简洁。$ 设备作为NTP客户端 ,如果内网有NTP服务器,则指向内网服务器。$ 按照现场情况配置STP 最后一条,设备作为核心交换机才需要配置。1. 组建VSC的配置,完成堆叠口与MMD检测口的物理物理连接。$ 设备默认管理口IP 不需要修改。$ 设备默认2层配置不需要修改。

normanhere的博客 6532
上一篇: 协议的详细信息,和协议的 管理距离。Protocol ----show ip protocols
下一篇: show ip vrf interfaces --check 检查接口加入的 vrf 配置
LinuxKernelCiscoIOS
博客等级 码龄11年 35粉丝 101原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值