R1:
ipv6 unicast-routing
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
ipv6 address 12::1/64
ipv6 ospf 1 area 0
!
ipv6 router ospf 1
router-id 1.1.1.1
log-adjacency-changes
R2:
ipv6 unicast-routing
!
interface Loopback0
ip address 10.1.1.2 255.255.255.255
!
interface Tunnel0
no ip address
ipv6 address 2001::1/64
ipv6 ospf 1 area 0
tunnel source FastEthernet1/0
tunnel destination 64.1.1.1
tunnel mode ipv6ip //定義隧道模式爲手動
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
ipv6 address 12::2/64
ipv6 ospf 1 area 0
!
interface FastEthernet1/0
ip address 202.1.1.1 255.255.255.0
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
!
ip route 0.0.0.0 0.0.0.0 202.1.1.254
!
ipv6 router ospf 1
log-adjacency-changes
R3:
interface FastEthernet0/0
ip address 202.1.1.254 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 64.1.1.254 255.255.255.0
duplex auto
speed auto
R4:
ipv6 unicast-routing
!
interface Loopback0
ip address 10.1.1.4 255.255.255.255
!
interface Tunnel0
no ip address
ipv6 address 2001::2/64
ipv6 ospf 1 area 0
tunnel source FastEthernet0/0
tunnel destination 202.1.1.1
tunnel mode ipv6ip //定義隧道模式爲手動
!
interface FastEthernet0/0
ip address 64.1.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
ipv6 address 45::4/64
ipv6 ospf 1 area 0
!
ip route 0.0.0.0 0.0.0.0 64.1.1.254
!
ipv6 router ospf 1
log-adjacency-changes
R5:
ipv6 unicast-routing
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
ipv6 address 45::5/64
ipv6 ospf 1 area 0
!
ipv6 router ospf 1
router-id 5.5.5.5
log-adjacency-changes
R1學到了R5的路由