Routing
Reply
Regular Visitor
Irfan
Posts: 3
Registered: ‎12-22-2008
0

Policy Based Routing equivalent Commands from Cisco To Juniper EX Switch

Hi all,

 

Can someone help me in finding equivalent command for Juniper EX Switch from below Cisco Policy or source based routing config.

 

access-list 101 permit ip host 10.61.3.219 10.80.0.0 0.0.255.255

access-list 102 permit ip host 10.61.3.219 10.81.1.0 0.0.0.255

 

!

route-map as400 permit 10

 match ip address 101 102

 set ip next-hop 10.61.2.254

 

interface Vlan3

 description Server Segment

 ip address 10.61.3.234 255.255.255.0

 ip helper-address 10.61.2.5

 ip policy route-map as400

 

we need to route traffic from specific source IP to destination subnet taking different next hop.

 

Thanks in advance.

Recognized Expert
erdems
Posts: 192
Registered: ‎12-30-2008
0

Re: Policy Based Routing equivalent Commands from Cisco To Juniper EX Switch

Hi Irfan,

 

 If you look for "filter based forwarding" in the forums, you might want many examples.

 

 HTH,

 Erdem

____________________________________________
If you think your question's answered, please
mark the respective post as "Accepted Solution".

Kudos are an excellent way of showing appreciation, too.
Trusted Contributor
Saurabh
Posts: 171
Registered: ‎09-08-2009
0

Re: Policy Based Routing equivalent Commands from Cisco To Juniper EX Switch

Can you create separate routing instance for this? If it feasible in your network?


Do let me know....

Saurabh Joshi
--------------------------------------------------------------------------------------------------
CCNA,CCIP/JNCIA-EX,ER/JNCIS-ER,SEC,M/JNCIP-M
Regular Visitor
Irfan
Posts: 3
Registered: ‎12-22-2008
0

Re: Policy Based Routing equivalent Commands from Cisco To Juniper EX Switch

 


Saurabh wrote:

Can you create separate routing instance for this? If it feasible in your network?


Do let me know....


 

 

I created separate routing instance but below config not working. Can you identlfy possible mistake.thanks

 


 

 

firewall {
    family inet {
        filter au400z1 {
            term 105 {
                from {
                    source-address {
                        10.61.3.219/32;
                    }
                    destination-address {
                        10.80.0.0/15;
                    }
                }
                then {
                    count count-vlan_3;
                    routing-instance as400-10;
                }
            }
            term default {
                then accept;

 

routing-instances {
    as400-10 {
        description AS400-PolicyRoute;
        instance-type forwarding;
        routing-options {
            static {
                route 0.0.0.0/0 next-hop 10.61.2.254;

Trusted Expert
SSHSSH
Posts: 601
Registered: ‎11-21-2009
0

Re: Policy Based Routing equivalent Commands from Cisco To Juniper EX Switch

there is a missing step

you should import routes from inet.0 routing instance to the new created routing instance  using  "rib groups":

[edit]
routing-options {
interface-routes {
rib-group inet group-1;
}
rib-groups {
group-1{
import-rib [ inet.0     as400-10.inet.0   ];
}
}
}

Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.