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
Solved

Which source address will be ?

Posted on 2002-06-23
8
210 Views
Last Modified: 2010-04-17
I configure ip address on the Cisco 2620 with 1 primary and 2 secondary within the FastEthernet interface as followings

  ip address 203.114.2.12 255.255.255.0
  ip address 192.168.1.1 255.255.255.0 secondary
  ip address 172.16.10.1 255.255.255.0 secondary

Then , I ping to another client from Cisco to 172.16.10.208 ,I observed that it used its primary ( 203.144.2.12 ) address as the source address to the destination 172.16.10.208.

the question is
 1.why doesn't it use the 172.16.10.1 to be its source address ?  
 2.Have any approach can I force the router to use the 172.16.10.1 to be the source address when pinging 172.16.10 network. ? ( the same with 192.168.1 network )

0
Comment
Question by:sirator
  • 4
  • 4
8 Comments
 
LVL 17

Accepted Solution

by:
mikecr earned 50 total points
ID: 7101665
Any time you ping from any interface on a Cisco router, it will ping from the interfaces primary address. If you want to ping and use the 172.0.0.0 address as your coming from point, just type ping without any parameters and you will get the extended ping command. One of the options will be to use extended commands. Choose yes and put in the source address of 172.16.10.1 and your pings will come from that address instead of the 203 address.
0
 

Author Comment

by:sirator
ID: 7102541
And how about the other brand name router ? Is it the same ?

Thanks
0
 
LVL 17

Expert Comment

by:mikecr
ID: 7103385
Most routers support the extended ping now. You may want to check your documentation on that but as for Cisco, ALL routers and switches support the extended command for ping.
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:sirator
ID: 7130983
Thanks so much mikecr.I try it and it's o.k.
0
 

Author Comment

by:sirator
ID: 7131016
Anyway mikecr , Is there a method to force the CISCO router to be automatically set to use Source address of its interface when traffic's going through that interface ???
0
 
LVL 17

Expert Comment

by:mikecr
ID: 7137437
I'm not sure I understand what you mean. Can you elaborate a little more.
0
 

Author Comment

by:sirator
ID: 7148885
I meant that , suppose I have two ip on ethernet interface of Router ,
   primary is ip address 203.114.2.12 255.255.255.0
   secondary is ip address 172.16.10.1 255.255.255.0 secondary

   then suppose , I'm at that Router and then I ping to 172.16.10.208 with command "ping 172.16.10.208" , for this case I want the source address of router to be 172.16.10.1 instead of 203.114.2.12. Can I?  Or I always have to use the ping's extended option ?
0
 
LVL 17

Expert Comment

by:mikecr
ID: 7149581
No, at that point the ping will probably come from the IP address that is located on that network, in this case the 172.16 address.
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

Suggested Solutions

I have seen some questions on problems with SSH/telnet access to Cisco routers that may occur despite the fact that from a PC connected to your LAN, Internet connectivity is in place and users can access Internet sites without any issues.  There are…
In the hope of saving someone else's sanity... About a year ago we bought a Cisco 1921 router with two ADSL/VDSL EHWIC cards to load balance local network traffic over the two broadband lines we have, but we couldn't get the routing to work consi…
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…

856 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