还是GNS3就做不了route-map?
LAN1LAN1#show run
Building configuration...Current configuration : 774 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname LAN1
!
!
ip subnet-zero
!
!
no ip domain-lookup
ip domain-name lab.local
!
ip audit notify log
ip audit po max-events 100
!
call rsvp-sync
!
!
!
!
!
fax interface-type fax-mail
mta receive maximum-recipients 0
!
!
!
interface FastEthernet0/0
ip address 192.168.1.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.1.1
no ip http server
!
!
dial-peer cor custom
!
!
!
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
end LAN2:LAN2#show run
Building configuration...Current configuration : 820 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname LAN2
!
!
ip subnet-zero
no ip routing
!
!
no ip domain-lookup
ip domain-name lab.local
!
ip audit notify log
ip audit po max-events 100
!
call rsvp-sync
!
!
!
!
!
fax interface-type fax-mail
mta receive maximum-recipients 0
!
!
!
interface FastEthernet0/0
ip address 192.168.2.2 255.255.255.0
no ip route-cache
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
no ip route-cache
shutdown
duplex auto
speed auto
!
ip default-gateway 192.168.2.1
ip classless
no ip http server
!
!
dial-peer cor custom
!
!
!
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
end
NAT#show run
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip policy route-map load
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.2.1 255.255.255.0
ip nat inside
ip policy route-map load
duplex auto
speed auto
!
interface Serial1/0
ip address 100.100.100.1 255.255.255.0
ip nat outside
serial restart-delay 0
!
interface Serial1/1
ip address 200.200.200.1 255.255.255.0
ip nat outside
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
ip nat inside source list 1 interface FastEthernet0/0 overload
ip nat inside source route-map nat1 interface Serial1/0 overload
ip nat inside source route-map nat11 interface Serial1/1 overload
ip nat inside source route-map nat2 interface Serial1/1 overload
ip nat inside source route-map nat22 interface Serial1/0 overload
ip nat inside source route-map nat3 interface Serial1/0 overload
ip nat inside source route-map nat33 interface Serial1/1 overload
ip classless
ip route 0.0.0.0 0.0.0.0 100.100.100.2
ip route 0.0.0.0 0.0.0.0 200.200.200.2
no ip http server
!
!
ip access-list extended isp1
permit ip any 20.20.10.0 0.0.0.255
permit ip any 20.20.20.0 0.0.0.255
permit ip any 20.20.30.0 0.0.0.255
permit ip any 60.0.0.0 0.0.0.255
permit ip any 100.100.100.0 0.0.0.255
permit ip any 200.200.200.0 0.0.0.255
ip access-list extended isp2
permit ip any 220.220.1.0 0.0.0.255
permit ip any 220.220.2.0 0.0.0.255
permit ip any 220.220.3.0 0.0.0.255
permit ip any 60.0.0.0 0.0.0.255
permit ip any 100.100.100.0 0.0.0.255
permit ip any 200.200.200.0 0.0.0.255
access-list 1 permit 192.168.1.0
access-list 1 permit any
route-map load permit 10
match ip address isp1
set interface Serial1/0
set default interface Serial1/1
!
route-map load permit 20
match ip address isp2
set interface Serial1/1
set default interface Serial1/0
!
route-map nat2 permit 10
match ip address isp2
match interface Serial1/1
!
route-map nat1 permit 10
match ip address isp1
match interface Serial1/0
!
route-map isp3 permit 10
match ip address 1
match interface Serial1/0
!
route-map isp33 permit 10
match ip address 1
match interface Serial1/1
!
route-map nat11 permit 10
match ip address isp1
match interface Serial1/1
!
route-map nat22 permit 10
match ip address isp2
match interface Serial1/0
!
ISP1#show run
interface Loopback0
ip address 20.20.10.1 255.255.255.0
!
interface Loopback1
ip address 20.20.20.1 255.255.255.0
!
interface Loopback2
ip address 20.20.30.1 255.255.255.0
!
interface Loopback4
ip address 6.6.6.6 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 100.100.100.2 255.255.255.0
shutdown
serial restart-delay 0
!
interface Serial1/1
ip address 60.0.0.1 255.255.255.0
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router bgp 1
bgp log-neighbor-changes
network 20.20.10.0 mask 255.255.255.0
network 20.20.20.0 mask 255.255.255.0
network 20.20.30.0 mask 255.255.255.0
network 60.0.0.0 mask 255.255.255.0
network 100.100.100.0 mask 255.255.255.0
neighbor 60.0.0.2 remote-as 2
!
ISP2#show run
!
interface Loopback0
ip address 220.220.1.1 255.255.255.0
!
interface Loopback1
ip address 220.220.2.1 255.255.255.0
!
interface Loopback2
ip address 220.220.3.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 200.200.200.2 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
ip address 60.0.0.2 255.255.255.0
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router bgp 2
bgp log-neighbor-changes
network 60.0.0.0 mask 255.255.255.0
network 200.200.200.0
network 220.220.1.0
network 220.220.2.0
network 220.220.3.0
neighbor 60.0.0.1 remote-as 1