Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Change source IP address of IP packet

Posted on 2011-09-28
6
Medium Priority
?
724 Views
Last Modified: 2012-05-12
I have a 6500 switch that has an egress interface with a non-routable ip address.

When I use a simple ping then I get no response because the source IP address is the egress interface.

If I do an extended ping and source from any other IP address on the switch the ping works.

How can I change the source address of the packets sent from this router from the egress interface (the default) to the source ip address of the loopback interface or any other interface?

The "logging source-interface Loopback0" does not appear to be changing the source ip address.
0
Comment
Question by:Dragon0x40
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 22

Expert Comment

by:eeRoot
ID: 36720654
You can use NAT to translate a non-routed address to an external routed address.  Is this non-routed address part of a network that can be NAT-ed or just a single address?
0
 

Author Comment

by:Dragon0x40
ID: 36760303
The address is part of a cloud that is not routable throughout our entire WAN.

We are talking about using policy based routing.

Can policy based routing change the source ip address of the traffic from the egress interface?

I know we tried the "logging source-interface loopback0" and it did not seem to work and still used the egress interface. Does this command change the source ip or just encapsulate the source into the packet?
0
 
LVL 22

Expert Comment

by:eeRoot
ID: 36771510
PBR will not change the address, but it will forward traffic based on the policy you set.  -- http://www.cisco.com/en/US/docs/ios/12_0/qos/configuration/guide/qcpolicy.html

Also, you may be able to use static routing to direct the traffic
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Dragon0x40
ID: 36818930
Yes we plan on trying PBR and using the next-hop command but I am not sure if that will work either as won't the source of the packets still be the egress interface ip address?

Why doesn't the  "logging source-interface loopback0" work?

The far end of the WAN can communicate with the ip address of the loopback0 but cannot route to the ip address of the egress interface.

Shouldn't the  "logging source-interface loopback0" change the source ip address and therfore allow routing to happen?
0
 
LVL 22

Accepted Solution

by:
eeRoot earned 2000 total points
ID: 36871078
To the best of my knowledge, the "logging source-interface loopback0" only affect syslog messages that originate from the router/switch in question.  And of course, the loopback0 address has to be defined
0
 

Author Comment

by:Dragon0x40
ID: 36907038
I believe that we are trying to use the syslog messages that originate from the switch.

We are using the "logging x.x.x.x" command to specify a log server

My understanding is that the  "logging source-interface loopback0" command should change the source ip address of the packets leaving the switch using the standard syslog port of udp 514?

0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
If you’re involved with your company’s wide area network (WAN), you’ve probably heard about SD-WANs. They’re the “boy wonder” of networking, ostensibly allowing companies to replace expensive MPLS lines with low-cost Internet access. But, are they …
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question