思科交换机:策略路由配置案例
思科交换机:策略路由配置案例
(1)拓扑图
(2)配置
sw1:
hostname sw1
interface GigabitEthernet0/0
switchport mode access
negotiation auto
!
interface GigabitEthernet0/1
no switchport
ip address 13.13.13.254 255.255.255.0
negotiation auto
!
interface GigabitEthernet0/2
no switchport
ip address 12.12.12.254 255.255.255.0
negotiation auto
!
interface GigabitEthernet0/3
switchport mode access
negotiation auto
!
interface Vlan1
ip address 192.168.1.254 255.255.255.0
ip route 0.0.0.0 0.0.0.0 13.13.13.1
sw2:
interface GigabitEthernet0/0
no switchport
ip address 12.12.12.1 255.255.255.0
negotiation auto
!
interface GigabitEthernet0/1
no switchport
ip address 24.24.24.1 255.255.255.0
negotiation auto
ip route 0.0.0.0 0.0.0.0 12.12.12.254
ip route 192.168.2.0 255.255.255.0 24.24.24.254
sw3:
interface GigabitEthernet0/0
no switchport
ip address 13.13.13.1 255.255.255.0
negotiation auto
!
interface GigabitEthernet0/1
no switchport
ip address 34.34.34.1 255.255.255.0
negotiation auto
!
ip route 0.0.0.0 0.0.0.0 13.13.13.254
ip route 192.168.2.0 255.255.255.0 34.34.34.254
sw4:
interface GigabitEthernet0/0
no switchport
ip address 24.24.24.254 255.255.255.0
negotiation auto
!
interface GigabitEthernet0/1
switchport mode access
negotiation auto
!
interface GigabitEthernet0/2
no switchport
ip address 34.34.34.254 255.255.255.0
negotiation auto
!
interface GigabitEthernet0/3
switchport mode access
negotiation auto
interface Vlan1
ip address 192.168.2.254 255.255.255.0
!
ip route 0.0.0.0 0.0.0.0 34.34.34.1
测试:
(3)配置策略路由
access-list 100 permit ip host 192.168.1.101 host 192.168.2.101
route-map r1 permit 10
match ip address 100
set ip next-hop 12.12.12.1
interface Vlan1
ip policy route-map r1
测试:
PBR策略路由(列表、list、全)策略路由list、pbrlist
http://www.zh-cjh.com/wenzhangguilei/975.html
文章归类、所有文章列表、LISTLIST
http://www.zh-cjh.com/wangzhangonggao/2195.html
2、本资源基本为原创,部分来源其他付费资源平台或互联网收集,如有侵权请联系及时处理。
3、本站大部分文章的截图来源实验测试环境,请不要在生产环境中随意模仿,以免带来灾难性后果。
转载请保留出处: www.zh-cjh.com珠海陈坚浩博客 » 思科交换机:策略路由配置案例
作者: cjh
手机扫一扫,手机上查看此文章: |
一切源于价值!
其他 模板文件不存在: ./template/plugins/comment/pc/index.htm