Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

How to force packets to be sent using source IP of secondary address

So I'm having issues with mail being rejected due to mx records and traffic being sent out the interface using the main IP. The main IP is .91 and it needs to be sent out as the secondary IP which is .90(dns mx record). I know I could just change the mx record to the main IP, but I would rather not.

Is there any way to force a router to use a secondary IP (WAN) to send certain traffic, say if it is sourced from a specific address on the LAN?

Everyone's tags (2)
3 REPLIES

How to force packets to be sent using source IP of secondary add

Cisco routers will always send out as the primary address, and afaik there's no way to force it to use a secondary address as the source. Is there anything stopping you from switching the two addresses and make .90 the primary and .91 the secondary?

*** edit ***

I should clarify my answer. You can nat the traffic from your server as whatever address you want. Traffic sent directly from the router will use the primary address. You can nat your mail server out as the secondary address if needed.


HTH,
John

*** Please rate all useful posts ***

HTH, John *** Please rate all useful posts ***

How to force packets to be sent using source IP of secondary add

if You have pool of ip address assigned from your ISP.

like your want IP subnet was /248

then u can use other ip from that pool it will work.

Jawad

Jawad
New Member

How to force packets to be sent using source IP of secondary add

So basically all I really need to do is create a static NAT from my internal mail server to the external IP I want to use as what would become the Source IP for that traffic (.90 in my case)? I'll give that a shot and let you know. Seems pretty simple now that I think of it.

831
Views
0
Helpful
3
Replies
CreatePlease to create content