?
Solved

Change source IP address of IP packet

Posted on 2011-09-28
6
Medium Priority
?
717 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
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

 

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

If you are thinking of adopting cloud services, or just curious as to what ‘the cloud’ can offer then the leader according to Gartner for Infrastructure as a Service (IaaS) is Amazon Web Services (AWS).  When I started using AWS I was completely new…
How to set-up an On Demand, IPSec, Site to SIte, VPN from a Draytek Vigor Router to a Cyberoam UTM Appliance. A concise guide to the settings required on both devices
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

771 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