双nat路由试验,走ospf动态路由( 二 )


transport input none
line aux 0
line vty 0 4
password cisco
logging synchronous
login
!
end
R2#
R1#sh run
Building configuration...
Current configuration : 1017 bytes
!
version 12.1
no service single-slot-reload-enable
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R1
!
no logging rate-limit
enable secret 5 $1$Ogll$BSpS5/nOBq8HtaKfwOZ8W0
!
ip subnet-zero
no ip finger
no ip domain-lookup
!
frame-relay switching
cns event-service server
!
!
!
!
!
interface Loopback0
ip address 4.4.4.4 255.255.255.0
!
interface Ethernet0
ip address 172.16.13.1 255.255.255.0
!
interface Serial0
ip address 192.168.12.1 255.255.255.0
!
interface Serial1
no ip address
!
router ospf 1
router-id 4.4.4.4
log-adjacency-changes
redistribute connected subnets
redistribute static subnets
network 172.16.13.0 0.0.0.255 area 0
!
ip kerberos source-interface any
ip classless
ip route 192.168.100.0 255.255.255.0 192.168.12.2
ip http server
!
!
snmp-server community public RO
snmp-server community private RW
!
line con 0
logging synchronous
transport input none
line aux 0
line vty 0 4
password cisco
logging synchronous
login
!
end
R1#
Router#sh run
Building configuration...
Current configuration : 769 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
logging queue-limit 100
enable secret 5 $1$9esl$iWZwf6dLviD/956PWJoOT0
!
memory-size iomem 25
ip subnet-zero
!
!
!
!
!
!
!
interface Loopback0
ip address 5.5.5.5 255.255.255.0
!
interface Ethernet0
no ip address
shutdown
half-duplex
!
interface FastEthernet0
ip address 172.16.13.254 255.255.255.0
speed auto
!
interface Serial0
no ip address
shutdown
!
interface Serial1
no ip address
shutdown
!
router ospf 1
router-id 5.5.5.5
log-adjacency-changes
network 172.16.13.0 0.0.0.255 area 0
!
ip classless
no ip http server
!
!
!
line con 0
line aux 0
line vty 0 4
password cisco
login
!
no scheduler allocate
end
Router#

推荐阅读