Re: How to make Ping use a particular interface



On Jun 11, 9:45 am, Kalyan <san.kal...@xxxxxxxxx> wrote:
Hi all,

I have two IP addresses on my laptop, 172.16.16.75 (wireless) and
192.168.1.95 (wired). 172.16.16.1 and 192.168.1.1 are the gateway IPs
respectively.

I want to ping yahoo.com using the wireless interface but the laptop
is pinging using wired interface. How can I force it to use wireless
interface?

I can not shutdown the wired interface because I am running a test
through that interface.

Here is the route command output:
C:\Documents and Settings\me>route print
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x3 ...00 ff b6 f9 a5 f4 ...... TAP-Win32 Adapter V8 - Packet
Scheduler Miniport
0x30002 ...00 15 c5 56 50 78 ...... Broadcom NetXtreme 57xx Gigabit
Controller - Packet Scheduler Miniport
0x30005 ...00 18 de 8b 08 64 ...... Intel(R) PRO/Wireless 3945ABG
Network Connection - Packet Scheduler Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface
Metric
0.0.0.0 0.0.0.0 172.16.16.1
172.16.16.75 25
0.0.0.0 0.0.0.0 192.168.1.1
192.168.1.95 20
127.0.0.0 255.0.0.0 127.0.0.1
127.0.0.1 1
172.16.16.0 255.255.254.0 172.16.16.75
172.16.16.75 25
172.16.16.75 255.255.255.255 127.0.0.1
127.0.0.1 25
172.16.255.255 255.255.255.255 172.16.16.75
172.16.16.75 25
192.168.1.0 255.255.255.0 192.168.1.95
192.168.1.95 20
192.168.1.95 255.255.255.255 127.0.0.1
127.0.0.1 20
192.168.1.255 255.255.255.255 192.168.1.95
192.168.1.95 20
224.0.0.0 240.0.0.0 172.16.16.75
172.16.16.75 25
224.0.0.0 240.0.0.0 192.168.1.95
192.168.1.95 20
255.255.255.255 255.255.255.255 172.16.16.75
172.16.16.75 1
255.255.255.255 255.255.255.255 192.168.1.95
3 1
255.255.255.255 255.255.255.255 192.168.1.95
192.168.1.95 1
Default Gateway: 192.168.1.1
===========================================================================
Persistent Routes:
None

TIA

Hi,

I got it working by removing the default route using the wired
interface. Now ping to yahoo.com uses wireless interface as I wished.

Thanks.

.



Relevant Pages

  • Re: Problem with my wireless network(To all LinkSys users)
    ... hey andrew, ... the ping problem was solved ... ... connected to lan's interface. ... the wireless interface still have some ...
    (Focus-Linux)
  • Re: Win 2003
    ... ping the outside interface of the router ... Server is a member of the domain. ... IPv4 Route Table ... Interface List ...
    (microsoft.public.windows.server.general)
  • Re: sent an invalid ICMP type 11, code 0 error to a broadcast: 0.0.0.0 on lo?
    ... > If you ping an IP address on your computer, ... > the lo route filtering altogether. ... ICMP packet, with source address on this same box. ... IF that packet comes from the interface where the default ...
    (Linux-Kernel)
  • Re: How to direct the ping through a specific IP
    ... This machine has two IPs configured on two different NICs, ... Ping doesn't work this way. ... destination based on the route table. ... interface, I think even if you unplumb the other. ...
    (comp.unix.solaris)
  • Re: ipv6 host routes
    ... installed route on a point-to-point interface. ... And, if I understand your intent correctly, the host route you want to ... because you might have more than one wireless interface on the ...
    (freebsd-net)