How to make Ping use a particular interface

K

Kalyan

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
 
K

Kalyan

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top