Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Question About Static Route and SD-WAN Policy Route

Hi All,

I am having trouble with routing. I will try to explain what i need.

If traffic initiated from XG2 MPLS interface to XG1, XG1 will reply from MPLS interface.

If traffic initiated from XG2 XFRM1 interface to XG1, XG1 will reply from XFRM1 interface.

I have configured with following configuration but regardless of the interface that initiates the traffic on XG2, XG1 send reply packet from MPLS interface.

Could you please help?

XG1 v18.0.4 MR4

XG2 v18.0.4 MR4

Port1(LAN):192.168.1.0/24

Port1(LAN):192.168.2.0/24

Port2(WAN):1.1.1.1

Port2(WAN):2.2.2.2

XFRM1 on Port2: 172.16.1.2/24

XFRM1 on Port2: 172.16.1.1/24

Port3(MPLS):192.168.30.254/24 Gateway:192.168.30.1

Port3(MPLS):192.168.60.2/24 Gateway:192.168.60.1

Static Routes:

Route1

Dest:192.168.2.0/24

Gateway:192.168.30.1

Interface:Port3 (up)

Distance:0

 

Route2

Dest:192.168.2.0/24

Gateway:172.16.1.1

Interface:XFRM1 (up)

Distance:1

 

Policy Routes

 

PolicyRoute1 (top policy rule)

 

Name: Traffic to Headoffice

Destination: 192.168.1.0/24

Destinaton Port:3306

Primary Gateway: 192.168.60.1(mpls) (down)

Backup Gateway: 172.16.1.2(xfrm1) (up)

 

 

PolicyRoute2

Name: Traffic to Headoffice

Destination: 192.168.1.0/24

Primary Gateway: 172.168.1.2(xfrm1) (up)

Backup Gateway:192.168.60.1(mpls) (down)



This thread was automatically locked due to age.
Parents
  • FormerMember
    0 FormerMember

    Hi,

    Thank you for reaching out to Sophos Community.

    The distance value is used to select the best path when there are two or more routes to the same destination. Route with a low distance value will be selected as the best path.

    As per the current configuration, Route1 will be selected as the best path as it has a distance value lower than Route2.

    If you change the distance value as below, then the traffic to 192.168.2.0/24 network at XG1 end will be routed via xfrm interface.

    Route1 distance value: 1
    Route2 distance value: 0

Reply
  • FormerMember
    0 FormerMember

    Hi,

    Thank you for reaching out to Sophos Community.

    The distance value is used to select the best path when there are two or more routes to the same destination. Route with a low distance value will be selected as the best path.

    As per the current configuration, Route1 will be selected as the best path as it has a distance value lower than Route2.

    If you change the distance value as below, then the traffic to 192.168.2.0/24 network at XG1 end will be routed via xfrm interface.

    Route1 distance value: 1
    Route2 distance value: 0

Children
No Data