Cisco route-map Source Address routing configuration extension Park and case study

Source: Internet
Author: User
Tags exit config mail

Topology map:

Case:

Internal use of the company is a dial-up fiber and a fixed-line fiber, the default is to point to the dial-up fiber export gateway out, now 2 network segment has two servers (WEB, Mail) map to the public network, let the outside to access.

Office area due to work needs, often dial-up for IP address, is as a common user to use the Internet, take the dial-up fiber export. Because the web, mail server needs a fixed IP address, take the mobile fixed-line optical fiber export, in order to ensure the operation of the web, mail system is normal, to ensure business continuity, using ROUTE-MAP to do Policy routing.

Reference:

Route-map Policy Routing settings

Router (config) #route-map engineers [Permit|deny] [ordinal]//define engineers marked as Route-map.

Router (config-route-map) #match IP Address [access list number]//Set matching criteria for access list definitions

Router (config-route-map) #set IP next-hop 0.0.0.0//Match set Next hop address

Router (config-if) #ip Policy ROUTE-MAP Engineers//Apply engineers on the interface.

The programme is as follows:

1. Set Route-map

Router (config) #route-map Test Permit 10//define the Route-map name labeled Test as: Test

Router (config-route-map) #match IP address 110//Set matching criteria for access list definitions

Router (config-route-map) #set IP next-hop 192.168.5.2//Match set Next hop address

Router (config-route-map) #exit

Router (config) #int f0/1.1//Application on interface

Router (config-if) #ip policy Route-map test

Router (config-if) #exit

2. Add some of the addresses in the VLAN with IP policy to the Access-list (access list)

Router (config) #access-list permit IP host 192.168.2.2 any//access-list label permit source Address

Router (config) #access-list permit IP host 192.168.2.3 any//access-list label permit source Address

Router (config) #snmp-server Community public RO//configure this router for a string of public ro/rw (read/write only)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.