首页 | 互联网 | IT动态 | IT培训 | Cisco | Windows | Linux | Java | .Net | Oracle | 软件测试 | C/C++ | 嵌入式开发 | 存储世界 | 服务器
网络设备 | IDC | 安全 | 求职招聘 | 数字网校 | 网页设计 | 平面设计 | 技术专题 | 电子书下载 | 教学视频 | 源码下载 | 搜索 | 博客 | 论坛
欢迎光临中国IT实验室思科频道
Google
您现在的位置: 中国IT实验室 >> Cisco >> 路由技术 >> 路由配置 >> 正文

CISCO4507R交换机基于源地址策略路由

  CISCO4507R路由交换机做策略路由,由于4507R原先的IOS映象文件不支持基于源地址的策略路由,后经过在CISCO网站上查找版本说明,升级IOS文件,CISCO4507R连接到两个ISP(internet和ISP2),下接两个小BRAS,BRAS中配置了不同ISP的IP地址段,4507R基于源地址做策略路由。4507R具体配置如下。

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

【责编:Kittoy】
中国IT教育
相关产品和培训
文章评论
 友情推荐精华
 专题推荐

 ·节省成本才是“王道” VOIP案例应用…
 ·巧用网络流量 打造健康内网…
 ·无线路由器设置从入门到精通
 ·企业网管如何部署你的网络监控系统?
 ·负载均衡技术方案攻略
 ·中国IT实验室2007年技术热点盘点
 ·利用路由实现VPN的配置方法
 ·让你的局域网网速更上一层楼
 ·小命令大作用---Ping
 ·OSPF路由协议专题
 今日更新
 认证培训
 频道精选
 思科频道导航