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 06-20-2009, 12:30 PM   #1
nnamralk
LQ Newbie
 
Registered: Jun 2009
Posts: 8

Rep: Reputation: 0
CentOS 5.3: Can ping vmware host as mquser but not as root


Have Centos 5.3 installed in a VMWARE image, running under VMware Server Console 1.0.7.

Need to mount the XP host from Linux. OS says must be root to mount. Can ping XP host from user mquser but when I su to root, not able to ping.

This actually worked until I had to switch to fixed IP. Then switched back to dhcp and can't ping XP host from root now.

Compared env vars between the two users but nothing jumps out.

I'm not sure about the networks settings but if it works for mquser ...
 
Old 06-20-2009, 01:20 PM   #2
centos82
Member
 
Registered: Sep 2008
Distribution: CentOS
Posts: 75

Rep: Reputation: 16
What's the output of your ping command as root?
 
Old 06-20-2009, 04:43 PM   #3
nnamralk
LQ Newbie
 
Registered: Jun 2009
Posts: 8

Original Poster
Rep: Reputation: 0
[root@localhost mquser]# ping 198.168.1.101
PING 198.168.1.101 (198.168.1.101) 56(84) bytes of data.

<takes a while, then returns:>


--- 198.168.1.101 ping statistics ---
111 packets transmitted, 0 received, 100% packet loss, time 110110ms
 
Old 06-22-2009, 11:08 PM   #4
nnamralk
LQ Newbie
 
Registered: Jun 2009
Posts: 8

Original Poster
Rep: Reputation: 0
I guess this wasn't interesting enough to warrant help.
 
Old 06-22-2009, 11:18 PM   #5
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,971
Blog Entries: 1

Rep: Reputation: 208Reputation: 208Reputation: 208
Quote:
Originally Posted by nnamralk View Post
I guess this wasn't interesting enough to warrant help.
What's the ip of the machine when it's on static and what is the ip when it's on DHCP?

What is the output of

Code:
traceroute 198.168.1.101
 
Old 06-23-2009, 01:47 PM   #6
nnamralk
LQ Newbie
 
Registered: Jun 2009
Posts: 8

Original Poster
Rep: Reputation: 0
the static ip is 192.168.209.134, in static, I'm not able to hit the network (another issue but not hi on the list) so traceroute 192.168.1.101 comes back "connect: Network is unreachable both as mquser and root.

it gets assigned the same IP address in DHCP, however it connects to the network where I get:
[mquser@localhost sbin]$ traceroute 192.168.1.101
traceroute to 192.168.1.101 (192.168.1.101), 30 hops max, 40 byte packets
1 192.168.209.2 (192.168.209.2) 2.846 ms 0.426 ms 0.546 ms
2 GDK830WXP (192.168.1.101) 12.936 ms 11.543 ms 10.962 ms

the GDK machine is the VMWare host not sure about 192.168.209.2, looked at VMnet1 and VMnet8 adapters and doesn't show up on the Window host's ipconfig.
 
Old 06-23-2009, 02:00 PM   #7
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,971
Blog Entries: 1

Rep: Reputation: 208Reputation: 208Reputation: 208
Quote:
Originally Posted by nnamralk View Post
the static ip is 192.168.209.134, in static, I'm not able to hit the network (another issue but not hi on the list) so traceroute 192.168.1.101 comes back "connect: Network is unreachable both as mquser and root.

it gets assigned the same IP address in DHCP, however it connects to the network where I get:
[mquser@localhost sbin]$ traceroute 192.168.1.101
traceroute to 192.168.1.101 (192.168.1.101), 30 hops max, 40 byte packets
1 192.168.209.2 (192.168.209.2) 2.846 ms 0.426 ms 0.546 ms
2 GDK830WXP (192.168.1.101) 12.936 ms 11.543 ms 10.962 ms

the GDK machine is the VMWare host not sure about 192.168.209.2, looked at VMnet1 and VMnet8 adapters and doesn't show up on the Window host's ipconfig.
Is the interface on VMWare set to "NAT" or "Bridged" (they may call it something else...but the "spirit" of the question is still valid )

-C
 
Old 06-23-2009, 02:14 PM   #8
nnamralk
LQ Newbie
 
Registered: Jun 2009
Posts: 8

Original Poster
Rep: Reputation: 0
NAT
 
Old 06-24-2009, 01:03 PM   #9
nnamralk
LQ Newbie
 
Registered: Jun 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Used Bridged as well

Somewhere I found a post to use NAT for mounting a host sys
 
Old 06-24-2009, 06:39 PM   #10
centos82
Member
 
Registered: Sep 2008
Distribution: CentOS
Posts: 75

Rep: Reputation: 16
What does netstat -in show? What's traceroute -I 192.168.1.101 show as root and mquser?
 
Old 06-25-2009, 11:01 AM   #11
nnamralk
LQ Newbie
 
Registered: Jun 2009
Posts: 8

Original Poster
Rep: Reputation: 0
[mquser@localhost ~]$ netstat -in
Kernel Interface table
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0 1500 0 8095 0 0 0 2169 0 0 0 BMRU
lo 16436 0 5503 0 0 0 5503 0 0 0 LRU
[mquser@localhost ~]$ traceroute -I 192.168.1.101
The specified type of tracerouting is allowed for superuser only
[mquser@localhost ~]$ su
Password:
[root@localhost mquser]# traceroute -I 192.168.1.101
traceroute to 192.168.1.101 (192.168.1.101), 30 hops max, 40 byte packets
1 GDK830WXP (192.168.1.101) 1.866 ms 2.037 ms 2.609 ms
 
Old 06-26-2009, 12:03 AM   #12
centos82
Member
 
Registered: Sep 2008
Distribution: CentOS
Posts: 75

Rep: Reputation: 16
Sorry, I gave you the wrong netstat. I wanted netstat -rn to look at the routing table. The traceroute -I uses ICMP (Ping) probes. So it is very odd 1st off that you could ping something as mquser but not root since pings happen at the network layer of the OSI model so users should not matter. The second odd thing is that the traceroute -I command which uses ping works as root. Maybe netstat -rn will show something. Are you still having problems pinging from root? Is localhost the name of your server? Can you ping anything outside of your local subnet from root?
 
Old 06-27-2009, 11:46 AM   #13
nnamralk
LQ Newbie
 
Registered: Jun 2009
Posts: 8

Original Poster
Rep: Reputation: 0
You are right, I didn't realize it but it is pinging and I performed the mount just now. In the military we called this type of thing FM (flippin' magic). Only thing I did is switch back to fixed to install product and back to dhcp.

Thanks to you and custrango for helping. I wish I knew what happened.
 
  


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
Problem Printing from VMWare Guest to CentOS host printers Linux31 Red Hat 5 09-18-2009 04:38 AM
CentOS on VMware - Bridge Connection - Ping - Unknown host m_abdelfattah Linux - Newbie 8 08-03-2008 07:50 AM
Users cannot add VMs in VMware server console on CentOS host archangel_617b Linux - Server 1 03-06-2008 01:08 PM
VMWare and host cannot SSH to each other, but can ping lefty.crupps Linux - Software 2 04-16-2007 11:05 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


All times are GMT -5. The time now is 05:43 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