Routing
Routing

Policy Based Routing equivalent Commands from Cisco To Juniper EX Switch

02.15.10   |  
‎02-15-2010 06:15 PM

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.

4 REPLIES
Routing

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

02.16.10   |  
‎02-16-2010 01:00 AM

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.
Routing

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

02.16.10   |  
‎02-16-2010 06:26 AM

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
Routing

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

02.22.10   |  
‎02-22-2010 07:54 PM

 


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;

Highlighted
Routing

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

02.23.10   |  
‎02-23-2010 10:50 AM

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   ];
}
}
}