With the development of China's routing industry and the upgrade of the routing technology, we will introduce the source address/policy routing configuration of the CISCO Routing Switch. The CISCO Route switch performs Policy Routing. Because the original IOS image file of ipv7r does not support source address-Based Policy Routing, after searching the version description on the CISCO website, upgrade the IOS file, ciscostm7r is connected to two ISPinternet and ISP2), followed by two small BRAS, and the IP address segments of different ISPs are configured in BRAS, and ipv7r performs Policy Routing Based on the source address. The configuration of a CISCO Route switch is as follows.
- 4507#sh run
- Building configuration...
- Current configuration : 2104 bytes
- !
- version 12.1
- no service pad
- service timestamps debug uptime
- service timestamps log uptime
- service password-encryption
- service compress-config
- !
- hostname 4507
- !
- boot system flash bootflash:cat4000-i5s-mz.121-20.EW.bin
- boot system flash bootflash:cat4000-is-mz.121-12c.EW1.bin
- enable password 7 06571E20561C1E0A1D
- !
- ip subnet-zero
- !
- spanning-tree extend system-id
- !
- redundancy
- mode rpr
- main-cpu
- auto-sync standard
- !
- !
- interface GigabitEthernet1/1
- description to Internet
- no switchport
- ip address 222.112.123.110 255.255.255.252
- !
- interface GigabitEthernet1/2
- !
- interface GigabitEthernet3/1
- description to bras1
- no switchport
- ip address 162.153.123.113 255.255.255.252
- ip policy route-map isp2
- speed nonegotiate
- !
- interface GigabitEthernet3/2
- description to bras2
- no switchport
- ip address 162.153.123.117 255.255.255.252
- ip policy route-map isp2
- speed nonegotiate
- !
- interface GigabitEthernet3/3
- !
- interface GigabitEthernet3/4
- !
- interface GigabitEthernet3/5
- !
- interface GigabitEthernet3/6
- !
- interface GigabitEthernet4/1
- description to isp2
- no switchport
- ip address 211.211.44.254 255.255.255.252
- speed nonegotiate
- !
- interface GigabitEthernet4/2
- !
- interface GigabitEthernet4/3
- !
- interface GigabitEthernet4/4
- !
- interface GigabitEthernet4/5
- !
- interface GigabitEthernet4/6
- !
- interface Vlan1
- no ip address
- !
- ip classless
- ip route 0.0.0.0 0.0.0.0 222.112.123.109
- ip route 211.211.218.0 255.255.252.0 162.153.123.113
- ip route 211.211.232.0 255.255.254.0 162.153.123.117
- ip route 222.122.16.0 255.255.252.0 162.153.123.113
- ip route 221.122.20.0 255.255.252.0 162.153.123.117
- no ip http server
- !
- access-list 10 permit 211.211.218.0 0.0.3.255
- access-list 10 permit 211.211.232.0 0.0.1.255
- route-map edu permit 10
- match ip address 10
- set ip next-hop 211.211.44.253
- !
- !
- !
- line con 0
- stopbits 1
- line vty 0 4
- exec-timeout 3 0
- password 7 06571E20561C1E0A1D
- login
- line vty 5 15
- exec-timeout 3 0
- password 7 03554A0A1C5D365F56
- login
- !
- !
- end
-