Solved

Change source IP address of IP packet

Posted on 2011-09-28
6
701 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
  • 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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 500 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

AWS has developed and created its highly available global infrastructure allowing users to deploy and manage their estates all across the world through the use of the following geographical components   RegionsAvailability ZonesEdge Locations  Wh…
Creating an OSPF network that automatically (dynamically) reroutes network traffic over other connections to prevent network downtime.
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…

773 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