LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-23-2010, 06:56 AM   #1
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Rep: Reputation: 0
Exclamation 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
 
Old 08-23-2010, 06:59 AM   #2
mahi_nix
Member
 
Registered: Aug 2010
Distribution: CentOS, RHEL, Ubuntu,
Posts: 154

Rep: Reputation: 16
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
 
Old 08-23-2010, 07:01 AM   #3
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mahi_nix View Post
Hi,

... also check your Linux iptables.

Mahi_nix
what is the similar command of "ipconfig /all" in linux?
 
Old 08-23-2010, 07:08 AM   #4
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
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

Last edited by vinaytp; 08-23-2010 at 07:09 AM.
 
Old 08-23-2010, 07:10 AM   #5
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by vinaytp View Post

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

[/code]
yes i did,
thx for the command
 
Old 08-23-2010, 07:46 AM   #6
mahi_nix
Member
 
Registered: Aug 2010
Distribution: CentOS, RHEL, Ubuntu,
Posts: 154

Rep: Reputation: 16
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
 
Old 08-23-2010, 08:35 AM   #7
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Original Poster
Rep: Reputation: 0
results printscreen

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?
Attached Thumbnails
Click image for larger version

Name:	iptables_L.JPG
Views:	36
Size:	130.7 KB
ID:	4389   Click image for larger version

Name:	ifconfig.jpg
Views:	29
Size:	27.2 KB
ID:	4390  

Last edited by ziadh; 08-23-2010 at 08:39 AM. Reason: wrong informations
 
Old 08-23-2010, 10:07 AM   #8
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
What does your netstat -nr command show in SUSE VM ?
 
Old 08-23-2010, 10:25 AM   #9
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Original Poster
Rep: Reputation: 0
netstat -nr printscreen

Quote:
Originally Posted by vinaytp View Post
What does your netstat -nr command show in SUSE VM ?
here's the results
Attached Thumbnails
Click image for larger version

Name:	netstat_r.JPG
Views:	22
Size:	27.2 KB
ID:	4394  
 
Old 08-24-2010, 12:54 AM   #10
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
Quote:
Originally Posted by ziadh View Post
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
 
Old 08-24-2010, 03:55 AM   #11
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Original Poster
Rep: Reputation: 0
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
 
Old 08-24-2010, 05:12 AM   #12
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
Quote:
Originally Posted by ziadh View Post
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
 
Old 08-24-2010, 05:13 AM   #13
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
[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
 
Old 08-24-2010, 05:13 AM   #14
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
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]
 
Old 08-24-2010, 05:14 AM   #15
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
to restrict an user in linux to run all command except ping. rajeev_ku Linux - Server 3 03-11-2009 08:15 AM
Why I can't ping winxp host form redhat linux guest in VMWare Jason Bao Linux - Newbie 4 09-09-2006 07:56 AM
Simple question about command syntax ping/log ping results ohalnet Linux - Networking 1 07-25-2006 05:46 AM


All times are GMT -5. The time now is 09:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration