Why traceroute is not resolving an IP address

Hi.

I have 3 computers, say PC1, PC2 and PC3, with debian installed on each. Each of these 3 computers has 3 ethernets.

I have connected PC2 to PC1 using eth0, and also PC2 to PC3 using eth1. I have configured DHCP on PC2 to give an IP to PC1 and PC3. According to command ipconfig all seems to be ok.

I can make a ping from PC1 to PC2 and vice-versa. I can also make a ping from PC2 to PC3 and vice-versa.

However, when I try to ping PC1 from PC3 or if I try to ping PC3 from PC1 it says network is unreachable.

Also, if I ping the IP of eth2 of PC2 from PC1 it says network is unreachable. Looks like PC2 don't have the forwarding activated, however I executed sysctl -p /etc/sysctl.conf and it says:
net.ip_v4.ip_forward = 1

So why packets are not being transmitted from one network to the other?

Thanks.
LVL 15
gplanaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gplanaAuthor Commented:
Now it's solved. I killed network manager on PC1 and PC3, and also removed (commented) a line on dhcpd.conf that force just to relay on known servers.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.