Routing
Routing
Example:
conf t
ip route 192.168.1.0 255.255.255.0 10.1.1.1 100
conf t conf t
ip mroute <source> <mask> <destination> ip mroute 239.0.0.0 255.0.0.0 10.1.1.1
1.2.c Policy-Based Routing
Configuring PBR:
Define an access list.
conf t
access-list 100 permit ip <source-ip> <wildcard-mask> <destination-ip> <wildcard-mask>
Static:
conf t
ip route vrf <vrf-name> <destination-network> <subnet-mask> <next-hop-ip>
1.2.f Route Leaking Between VRFs Using Route Maps and VASI
conf t
interface VirtualAccess1
ip vrf forwarding VRF1
ip address <ip-address1> <subnet-mask> Example:
BGP:
conf t
router bgp <asn>
neighbor <neighbor-ip> route-map <route-map-name> in|out
conf t EXAMPLE
router bgp 100
neighbor 10.1.1.2 route-map FILTER_ROUTES in
EIGRP:
conf t
router eigrp <asn>
distribute-list <access-list-number> in|out <interface-id>
OSPF:
conf t
router ospf <process-id>
distribute-list <access-list-number> in|out <interface-id>
Static:
conf t
ip route <destination-network> <subnet-mask> <next-hop-ip> tag <tag>
ip prefix-list <prefix-list-name> permit <prefix>
1.2.h Redistribution Between BGP, EIGRP, OSPF, and Static
General Redistribution:
conf t
router <protocol>
redistribute <protocol> [metric <value>] [route-map <route-map-name>]
Example:
conf t
router ospf 1
redistribute eigrp 1 subnets
router eigrp 1
redistribute ospf 1 metric 10000 100 255 1 1500
1.2.i Routing Protocol Authentication
OSPF:
interface <interface-id>
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 <password>
EIGRP:
Example:
conf t
router bgp 100
neighbor 10.1.1.2 password cisco123
1.2.j Bidirectional Forwarding Detection
BFD is used to detect faults in the bidirectional path between
two forwarding engines, minimizing downtime.
Configuring BFD:
Enable BFD globally.
interface <interface-id>
bfd interval <tx-interval> min_rx <rx-interval> multiplier <multiplier>
conf t
bfd interval 50 min_rx 50 multiplier 3 Example
interface GigabitEthernet0/1
bfd interval 50 min_rx 50 multiplier 3
1.2.k L3 MTU