Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

Which source address will take while pinging by default

Hi All,

Sorry to put this basic quiestion.i am confused with this.

From PE Router if i am pinging any customer ip address what would be default source address its taking if source address/interface is not mentioned.

XX-XX-XX#p vrf TEST-VRF

Target IP address: 172.16.XX.XX

Repeat count [5]: 10

Datagram size [100]:

Timeout in seconds [2]:

Extended commands [n]: y

Source address or interface: ==================> ???????????????

Type of service [0]:

Set DF bit in IP header? [no]:

Validate reply data? [no]:

Data pattern [0xABCD]:

Loose, Strict, Record, Timestamp, Verbose[none]:

Sweep range of sizes [n]:

Type escape sequence to abort.

Sending 10, 100-byte ICMP Echos to 172.16.XX.XX, timeout is 2 seconds:

!!!!!!!!!!

Success rate is 100 percent (10/10), round-trip min/avg/max = 4/6/8 ms

Thanks in advance

Lijsh.N.C

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Which source address will take while pinging by default

Hello Lijesh,

Each time your router originates a packet and sends it to a particular destination, it looks into the corresponding routing table to find out how to reach that destination. The result of the routing table lookup is always the outgoing interface and optionally information which next hop should receive the packet. The address of the outgoing interface will then be used as the source IP address of the packet.

So, to answer which outgoing interface will it be - it depends on the destination IP address and on the routing table that determines how to reach that destination. That in turn also determines the source address of the packet.

Best regards,

Peter

4 REPLIES
Hall of Fame Super Gold

Re: Which source address will take while pinging by default

It takes the address of the outgoing interface.

Community Member

Re: Which source address will take while pinging by default

Hi Paolo,

Thanks for the reply.Would like to know which Outgoing interface will it take for eg: if ip address 192.168.10.10 belongs to serial0..by befault packet will be sourced from this interface ???

Lijesh.N.C

Cisco Employee

Re: Which source address will take while pinging by default

Hello Lijesh,

Each time your router originates a packet and sends it to a particular destination, it looks into the corresponding routing table to find out how to reach that destination. The result of the routing table lookup is always the outgoing interface and optionally information which next hop should receive the packet. The address of the outgoing interface will then be used as the source IP address of the packet.

So, to answer which outgoing interface will it be - it depends on the destination IP address and on the routing table that determines how to reach that destination. That in turn also determines the source address of the packet.

Best regards,

Peter

Community Member

Re: Which source address will take while pinging by default

Hi Peter,

Thanks for the reply.Its clear now.

cheers

Lijesh.N.C

2074
Views
4
Helpful
4
Replies
CreatePlease to create content