0% found this document useful (0 votes)
10 views6 pages

Cisco IOS Policy-Based Routing Setup

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views6 pages

Cisco IOS Policy-Based Routing Setup

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

Task 1: Policy Based Routing

------------------------------------------

1. Basic Config

!On H1

en
conf t
hostname H1
!
no ip routing
!
int g0/0
ip address [Link] [Link]
no shut
exit
!
ip default-gateway [Link]
!

!On R1

en
conf t
hostname R1
!
int g0/0
ip address [Link] [Link]
no shut
exit
!
int g0/1
ip address [Link] [Link]
no shut
exit
!
int g0/2
ip address [Link] [Link]
no shut
exit
!
router ospf 1
router-id [Link]
network [Link] [Link] area 0
network [Link] [Link] area 0
network [Link] [Link] area 0
passive-interface g0/0
exit
!

!On R2

en
conf t
hostname R2
!
int g0/0
ip address [Link] [Link]
no shut
exit
!
int g0/1
ip address [Link] [Link]
no shut
exit
!
router ospf 1
router-id [Link]
network [Link] [Link] area 0
network [Link] [Link] area 0
exit
!

!On R3

en
conf t
hostname R3
!
int g0/0
ip address [Link] [Link]
no shut
exit
!
int g0/1
ip address [Link] [Link]
no shut
exit
!
router ospf 1
router-id [Link]
network [Link] [Link] area 0
network [Link] [Link] area 0
exit
!

!On R4

en
conf t
hostname R4
!
int g0/0
ip address [Link] [Link]
no shut
exit
!
int g0/1
ip address [Link] [Link]
no shut
exit
!
router ospf 1
router-id [Link]
network [Link] [Link] area 0
network [Link] [Link] area 0
exit
!

!On R5

en
conf t
hostname R5
!
int g0/0
ip address [Link] [Link]
no shut
exit
!
int g0/1
ip address [Link] [Link]
no shut
exit
!
int loop 0
ip address [Link] [Link]
no shut
exit
!
int loop 1
ip address [Link] [Link]
no shut
exit
!
router ospf 1
router-id [Link]
network [Link] [Link] area 0
network [Link] [Link] area 0
network [Link] [Link] area 0
network [Link] [Link] area 0
exit
!

_____________________________________________________________________________

1.1: Policy based routing

!On R1

ip access-list extended cisco


permit ip host [Link] host [Link]
exit
!
route-map pbr permit 10
match ip address cisco
set ip next-hop [Link]
exit
!
int g0/0
ip policy route-map pbr
exit
!

===============================================================================

Task 2: Address Translation


----------------------------------------

1. Basic Config

!On H1

en
conf t
hostname H1
!
no ip routing
!
int g0/0
ip add [Link] [Link]
no shut
exit
!
ip default-gateway [Link]
!

!On H2

en
conf t
hostname H2
!
no ip routing
!
int g0/0
ip add [Link] [Link]
no shut
exit
!
ip default-gateway [Link]
!

!On Server

en
conf t
hostname Server
!
no ip routing
!
int g0/0
ip add [Link] [Link]
no shut
exit
!
ip default-gateway [Link]
!

!On R1

en
conf t
hostname R1
!
int g0/0
ip add [Link] [Link]
no shut
exit
!
int g0/1
ip add [Link] [Link]
no shut
exit
!

___________________________________________________________________________

2.1 Address Translation - Static NAT


-----------------------------------------------------

!On R1

int g0/0
ip nat inside
exit
!
int g0/1
ip nat outside
exit
!
ip nat inside source static [Link] [Link]
!
ip nat inside source static [Link] [Link]
!
show ip nat translations
!

2.2 Address Translation - Dynamic NAT


--------------------------------------------------------
!On R1 - Remove previous static translations

access-list 1 permit [Link] [Link]


!
ip nat pool cisco [Link] [Link] netmask [Link]
!
ip nat inside source list 1 pool cisco
!

2.3 Address Translation - Dynamic NAT


---------------------------------------------------------

a. Enable Telnet, http, https on Server

!On Server

username admin password cisco


line vty 0 4
login local
transport input telnet
!
ip http server
ip http secure-server
!

!On R1

access-list 1 permit [Link] [Link]


!
ip nat inside source list 1 interface g0/0 overload
!

===============================================================================

Task 3: NTP Network Time Protocol


---------------------------------------------------

You might also like