Avatar of mokkan
mokkan

asked on 

Linux network quesiton

I  can ping to my physical Linux box which is 192.168.0.10 it is directly connected to my internet route (192.168.0.1), but from my physical linux machine I can't ping 192.168

[root@localhost ~]# ip route
192.168.72.0/24 dev eth0  proto kernel  scope link  src 192.168.72.143
default via 192.168.72.2 dev eth0


[root@localhost ~]# netstat  -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.72.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0
0.0.0.0         192.168.72.2    0.0.0.0         UG        0 0          0 eth0
[root@localhost ~]# ping  192.168.0.10
PING 192.168.0.10 (192.168.0.10) 56(84) bytes of data.
64 bytes from 192.168.0.10: icmp_seq=1 ttl=128 time=5.12 ms
64 bytes from 192.168.0.10: icmp_seq=2 ttl=128 time=2.53 ms
64 bytes from 192.168.0.10: icmp_seq=3 ttl=128 time=2.50 ms
^C
--- 192.168.0.10 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2546ms
rtt min/avg/max/mdev = 2.506/3.388/5.124/1.228 ms

Physical machine output


[root@localhost(phy) ~]#ip route
192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.10  metric 1
192.168.122.0/24 dev virbr0  proto kernel  scope link  src 192.168.122.1
default via 192.168.0.1 dev eth0  proto static

[root@localhost (phy)~]# netstat  -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
192.168.122.0   0.0.0.0         255.255.255.0   U         0 0          0 virbr0
0.0.0.0         192.168.0.1     0.0.0.0         UG        0 0          0 eth0

Isn't it suppose to work? What am I doing wrong here?
LinuxVMware

Avatar of undefined
Last Comment
mokkan
ASKER CERTIFIED SOLUTION
Avatar of Darr247
Darr247
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of mokkan
mokkan

ASKER

Sorry  it is 192.168.72.143
Avatar of mokkan
mokkan

ASKER

I think I found the problem, if my explanation is or assumption is wrong, please correct me.

From vmware default gateway is 192.168.72.2, and if there is no traffic within this subnet it will routed to 192.168.0.1, and then it will reach my 192.168.0.10 physical box, but from  physical box when it wants to reach to 192.168.72.143, in needs to go to default gatway 192.168.0.1, and it doesn't know about 192.168.72.2 gateway.  Am I right? Please correct me.
SOLUTION
Avatar of Darr247
Darr247
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of mokkan
mokkan

ASKER

Thank you  192.168.72.143  it's a  VM and located in my  Vmware Workstation. I'm running VMware workstation from my laptop.
Avatar of mokkan
mokkan

ASKER

Anyone can help ?
SOLUTION
Avatar of Darr247
Darr247
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of mokkan
mokkan

ASKER

This one is virtual network adapter? I may be missing the network fundamental here. If I am wrong correct me

Because our internet router 192.168.0.1 doesn't know about 192.168.72.1, but 192.168.72.1 know about 192.168.0.1.  Am I right?
SOLUTION
Avatar of nam0a
nam0a
Flag of Nepal image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of mokkan
mokkan

ASKER

Thank you guys. I fixed it.
Linux
Linux

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

71K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo