mac_g
asked on
windows: pinging wrong IP address
my laptop have
- wifi ethernet
- LAN ethernet
when I tried to ping hostname I am getting wi-fi IP address.
rather I would want to get the values which I set in my hostfile
the hostfile values are as below
---------------------
# 127.0.0.1 localhost
# ::1 localhost
192.168.1.1 PC-99
-------------------------- -
but when I apply this command
cmd>ping pc-100
getting below One
--
Pinging PC-54 [192.168.6.126] with 32 bytes of data:
Reply from 192.168.6.126: bytes=32 time<1ms TTL=128
---
please advice how to correct this.
in my adopter settings also ..
I can see the IP with - 192.168.1.1
--
please advice
how to get the response -192.168.1.1
when I ping to cmd>>ping pc-99
- wifi ethernet
- LAN ethernet
when I tried to ping hostname I am getting wi-fi IP address.
rather I would want to get the values which I set in my hostfile
the hostfile values are as below
---------------------
# 127.0.0.1 localhost
# ::1 localhost
192.168.1.1 PC-99
--------------------------
but when I apply this command
cmd>ping pc-100
getting below One
--
Pinging PC-54 [192.168.6.126] with 32 bytes of data:
Reply from 192.168.6.126: bytes=32 time<1ms TTL=128
---
please advice how to correct this.
in my adopter settings also ..
I can see the IP with - 192.168.1.1
--
please advice
how to get the response -192.168.1.1
when I ping to cmd>>ping pc-99
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
please find the IP config of my laptop connected to wifi
----------------------
C:\Users\Toshiba>ipconfig
Windows IP Configuration
Wireless LAN adapter Local Area Connection* 3:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . : WAG160N
IPv4 Address. . . . . . . . . . . : 192.168.6.126
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.6.1
----------------------
C:\Users\Toshiba>hostname
PC-54
C:\Users\Toshiba>ping PC-54
Pinging PC-54 [192.168.6.126] with 32 bytes of data:
Reply from 192.168.6.126: bytes=32 time<1ms TTL=128
Reply from 192.168.6.126: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.6.126:
Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
-----
when I ping to hostname .. I am getting wi-fi IP address
..........what I need is
i want to have 192.168.1.1 ....or.. None.
=================
actaully i have locally installed some software, which internally ping .. getting wi-fi IP which is not correct.
i want to have - no IP .. Or Some IP assigned in host file
----------
please advice further
----------------------
C:\Users\Toshiba>ipconfig
Windows IP Configuration
Wireless LAN adapter Local Area Connection* 3:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . : WAG160N
IPv4 Address. . . . . . . . . . . : 192.168.6.126
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.6.1
----------------------
C:\Users\Toshiba>hostname
PC-54
C:\Users\Toshiba>ping PC-54
Pinging PC-54 [192.168.6.126] with 32 bytes of data:
Reply from 192.168.6.126: bytes=32 time<1ms TTL=128
Reply from 192.168.6.126: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.6.126:
Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
-----
when I ping to hostname .. I am getting wi-fi IP address
..........what I need is
i want to have 192.168.1.1 ....or.. None.
=================
actaully i have locally installed some software, which internally ping .. getting wi-fi IP which is not correct.
i want to have - no IP .. Or Some IP assigned in host file
----------
please advice further
If you want PC-54 to report 192.168.1.1 you need this in hosts:
192.168.1.1 PC-54
You have PC-99 in hosts then ping PC-54. It does not have a match in hosts file so it will use the real address.
Note that this will probably cause weird problems with your network connection.
HTH,
Dan
192.168.1.1 PC-54
You have PC-99 in hosts then ping PC-54. It does not have a match in hosts file so it will use the real address.
Note that this will probably cause weird problems with your network connection.
HTH,
Dan
ASKER
Sorry my host name - PC-54 ..not PC-99
apologies for mistake.
-----
i have followed the steps
http://levynewsnetwork.wordpress.com/2011/12/01/windows-7-default-internet-connection-choice/
--
still i am getting wi-fi Ip when ping to host.
after following the link ..
is there any more settigs are required ..?
-------
and any changes in hostFile ..required ?
apologies for mistake.
-----
i have followed the steps
http://levynewsnetwork.wordpress.com/2011/12/01/windows-7-default-internet-connection-choice/
--
still i am getting wi-fi Ip when ping to host.
after following the link ..
is there any more settigs are required ..?
-------
and any changes in hostFile ..required ?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
not in typical LAN..
please advice how to change prority