设为首页收藏本站language 语言切换
查看: 3174|回复: 8
收起左侧

[求助] 在路由器接口上启用策略路由不生效请大神指点

[复制链接]
发表于 2017-4-7 16:13:06 | 显示全部楼层 |阅读模式
3鸿鹄币
R1#show run
Building configuration...

Current configuration : 1533 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
ip cef
ip tcp synwait-time 5
!
!
!
!
no ip domain lookup
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
ip policy route-map access
duplex auto
speed auto
!
interface FastEthernet0/0.1
encapsulation dot1Q 2
ip address 192.168.2.1 255.255.255.0
!
interface FastEthernet0/0.2
encapsulation dot1Q 3
ip address 192.168.3.1 255.255.255.0
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 172.16.1.1 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
ip address 172.16.2.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
!
!
!
no ip http server
no ip http secure-server
!
access-list 2 permit 192.168.2.0 0.0.0.255
access-list 3 permit 192.168.3.0 0.0.0.255
!
!
route-map access permit 20
match ip address 2
set ip default next-hop 172.16.1.2
!
route-map access permit 30
match ip address 3
set ip default next-hop 172.16.2.2



这个是R2
R2#show run
Building configuration...

Current configuration : 1065 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
ip cef
ip tcp synwait-time 5
!
!
!
!
no ip domain lookup
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
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 172.16.1.2 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
no ip address
shutdown
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
!
!
!
no ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane
!
!
!
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


这个是R3
R3#show run
Building configuration...

Current configuration : 1065 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
ip cef
ip tcp synwait-time 5
!
!
!
!
no ip domain lookup
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
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 172.16.2.2 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
no ip address
shutdown
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
!
!
!
no ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane
!
!
!
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
情况是R1做了个单臂路由,两台可以互通,做了策略路由但是ping不通R2和R3。请大神指点


最佳答案

查看完整内容

R2和R3没有回的路由,你在R2和R3上分别加上两条默认路由试试 R2:ip route 0.0.0.0 0.0.0.0 172.16.1.1 R3:ip route 0.0.0.0 0.0.0.0 172.16.2.1
发表于 2017-4-7 16:13:07 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复

使用道具 举报

 楼主| 发表于 2017-4-7 16:14:41 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?论坛注册

x
回复

使用道具 举报

 楼主| 发表于 2017-4-7 17:09:31 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复

使用道具 举报

发表于 2017-4-7 19:12:20 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复

使用道具 举报

发表于 2017-4-11 11:33:15 来自手机 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复

使用道具 举报

发表于 2017-4-11 17:15:16 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复

使用道具 举报

发表于 2017-4-11 18:38:27 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?论坛注册

x
回复

使用道具 举报

发表于 2017-4-11 18:52:16 来自手机 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2026-8-8 23:39 , Processed in 0.054267 second(s), 9 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表