192.168.1.2/24 and 192.168.2.1/24,ping?

February 28, 2011 at 21:17:47
Specs: Windows XP
if i give gateway of one as ip address of another and vice versa? both are directly connected and u cant use hub, switch , router...

See More: 192.168.1.2/24 and 192.168.2.1/24,ping?

Report •


#1
February 28, 2011 at 21:22:13
basic tcp/ip. you have two subnets which can't talk to each other. either use x.x.2.x or x.x.1.x but not both.

you only change the last number not using 0 or 255

Answers are only as good as the information you provide.
How to properly post a question:
Sorry no tech support via PM's


Report •

#2
February 28, 2011 at 23:17:31
the /24 netmask limits it only to the last group of digits in your ip address. Change it to 255.255.0.0

Report •

#3
March 1, 2011 at 01:18:07
if u use Crossover cable? then y u give onother subnet ? change to same subnet /24
192.168.1.X other mc 192.168.1.2..


Report •

Related Solutions

#4
March 1, 2011 at 02:39:24
dear, i know that.....
my question is like....
PC1- 192.168.1.1/24 gateway-192.168.2.1

PC2- 192.168.2.1/24 gateway-192.168.1.1

why this two doesn't ping?

so you want to say that its impossible to ping between two PCs connected directly of different subnet....right....


Report •

#5
March 1, 2011 at 02:46:15
cross cable?
can i use a straight cable?
anyway my question is that is it really impossible to ping between two PCs connected directly of different sub net mask?

if yes than y?


Report •

#6
March 1, 2011 at 03:51:23
As both are on different subnets they cannot ping unless you change the address of a pc or introduce an intermediary device ie router

Report •

#7
March 1, 2011 at 07:05:04
so you want to say that its impossible to ping between two PCs connected directly of different subnet....right....

Right, as wanderer said in response #1, they're on different subnets. The only wat to allow separate subnets to communicate is by using a router and creating a static route between subnets.

Alternatively, you could change your subnet mask (as per response #2) to create one, larger subnet and then they could communicate because they would be in the same subnet.

cross cable?
can i use a straight cable?

When directly connecting two PC's NIC to NIC, you have to use a crossover cable. A regular, patch cable (aka "straight through cable") will not work.

It matters not how straight the gate,
How charged with punishments the scroll,
I am the master of my fate;
I am the captain of my soul.

***William Henley***


Report •


Ask Question