R1
interface Serial0/0
ip address 12.1.1.1 255.255.255.0
ip nat outside
ip virtual-reassembly
serial restart-delay 0
!
interface Serial0/1
ip address 13.1.1.1 255.255.255.0
ip nat outside
ip virtual-reassembly
serial restart-delay 0
!
interface Serial0/2
ip address 15.1.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
no ip http server
no ip http secure-server
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 12.1.1.2
ip route 0.0.0.0 0.0.0.0 13.1.1.3
ip route 192.168.5.0 255.255.255.0 15.1.1.5
ip route 192.168.6.0 255.255.255.0 15.1.1.5
!
ip nat pool cnc 12.1.1.10 12.1.1.50 netmask 255.255.255.0
ip nat pool telcom 13.1.1.10 13.1.1.50 netmask 255.255.255.0
ip nat inside source route-map cnc pool cnc
ip nat inside source route-map telcom pool telcom
!
!
route-map telcom permit 10
match interface Serial0/1
!
route-map cnc permit 10
match interface Serial0/0
!
转载于:https://blog.51cto.com/851010lin/1351586