LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   VMware Linux suse ping command (https://www.linuxquestions.org/questions/linux-newbie-8/vmware-linux-suse-ping-command-827966/)

ziadh 08-23-2010 05:56 AM

VMware Linux suse ping command
 
Dear all,
i have linux suse installed on VMware, my pc is running Windows XP.
i have a switch connected to my ethernet card (also through console cable)
when im on windows i can ping the switch, but from linux i can't...
does anyone knows a solution, knowing that mu ethcard is "Bridged" on VMware, i can ping 127.0.0.1
thanks for helping

mahi_nix 08-23-2010 05:59 AM

Hi,

Disconnect you NIC From VMware and again Connect it and then check by pinging the switch and also check your Linux iptables.

Mahi_nix

ziadh 08-23-2010 06:01 AM

Quote:

Originally Posted by mahi_nix (Post 4074921)
Hi,

... also check your Linux iptables.

Mahi_nix

what is the similar command of "ipconfig /all" in linux?

vinaytp 08-23-2010 06:08 AM

Hi ziadh,

Did you add shared bridge network interface while creating the VM ?

You need to have a shared bridge interface to connect to external network from your VM.

In linux following command shows all the connected network interfaces
Code:

/sbin/ifconfig

ziadh 08-23-2010 06:10 AM

Quote:

Originally Posted by vinaytp (Post 4074928)

Did you add shared bridge network interface while creating the VM ?

[/code]

yes i did,
thx for the command

mahi_nix 08-23-2010 06:46 AM

Run Below Command

Code:

iptables -L
and paste your result here.

if any ICMP incoming/outgoing packets are blocked then you have to remove that rule from iptables.

Mahi_nix

ziadh 08-23-2010 07:35 AM

results printscreen
 
2 Attachment(s)
here are the results if

/ifconfig

and

/iptables -L

i can connect to internet using eth0, put when pinging my other ethernet card eth1 (172.26.10.3 , which is the ip of the switch to be telneted), i get " destination unreachable"...
any ideas?

vinaytp 08-23-2010 09:07 AM

What does your netstat -nr command show in SUSE VM ?

ziadh 08-23-2010 09:25 AM

netstat -nr printscreen
 
1 Attachment(s)
Quote:

Originally Posted by vinaytp (Post 4075074)
What does your netstat -nr command show in SUSE VM ?

here's the results

vinaytp 08-23-2010 11:54 PM

Quote:

Originally Posted by ziadh (Post 4075089)
here's the results

Make sure again that your NIC of VM is shared bridge.

What does traceroute command shows in SUSE VM
Code:

traceroute 172.26.10.3

ziadh 08-24-2010 02:55 AM

Both cards are bridged, and i cant run "traceroute" on shell...

Quote:

sudo traceroute 172.26.10.3
root's password:
sudo: traceroute: command not found

vinaytp 08-24-2010 04:12 AM

Quote:

Originally Posted by ziadh (Post 4075846)
Both cards are bridged, and i cant run "traceroute" on shell...

That means traceroute is not in PATH.

Find the path of traceroute by
Code:

whereis traceroute
traceroute: /bin/traceroute /usr/share/man/man8/traceroute.8.gz

Then based on the path you get use
Code:

/bin/traceroute 172.26.10.3

vinaytp 08-24-2010 04:13 AM

[QUOTE=vinaytp;4075891]That means traceroute is not in PATH.

Find the path of traceroute by
Code:

whereis traceroute
traceroute: /bin/traceroute /usr/share/man/man8/traceroute.8.gz

Then based on the path execute the command with full path
Code:

/bin/traceroute 172.26.10.3

vinaytp 08-24-2010 04:13 AM

That means traceroute is not in PATH.

Find the path of traceroute by
Code:

whereis traceroute
traceroute: /bin/traceroute /usr/share/man/man8/traceroute.8.gz

Then based on the path execute the command with full path
Code:

/bin/traceroute 172.26.10.3
[/QUOTE]

vinaytp 08-24-2010 04:14 AM

That means traceroute is not in PATH.

Find the path of traceroute by
Code:

whereis traceroute
traceroute: /bin/traceroute /usr/share/man/man8/traceroute.8.gz

Then based on the path execute the command with full path
Code:

/bin/traceroute 172.26.10.3


All times are GMT -5. The time now is 01:52 AM.