LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-04-2010, 09:06 PM   #1
sportflyer
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Rep: Reputation: 0
Newbe needs help in connecting to my home network


I am new to Linux and this is my first post in this forum.

I am running Fedora 12 as a Guest OS using Vmware Player. My host OS is Windows 7 Pro.

I have no problems connecting to the internet with Fedora 12 using Firefox as browser.

My problem is that I can't connect to my home windows network "Workgroup"

I am using NAT and dhcp for IP.

When I checked the network device tab it shows eth0 non active. Hardware tab shows eth1

I tried to activate eth0 by using "ifconfig eth0 up " it returns no such device.

I then tried "ifconfig: and it returns eth1 and lo but eth0 was not there.

Host network adapters shows 2 virtual adapters ...WMware vmnet1 and vmnet8

What should I do next ?

Tks
 
Old 04-05-2010, 01:58 AM   #2
norbert74
Member
 
Registered: Apr 2006
Posts: 63

Rep: Reputation: 23
You can run
Code:
dmesg | grep eth
in your guest operating system to see what the kernel says to eth0.
 
Old 04-05-2010, 04:13 AM   #3
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
It sounds like the lan is fine and your nic is eth1 - how are you trying to connect to your home network?
 
Old 04-05-2010, 08:37 AM   #4
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
ETH1 is probably your NIC as linux sees it, some distros don't start at 0, How many NICs to you have assigned to your VM in VMWare, if you have only one and can get tot the internet ETH1 is definately your correct network connection. Do you have Samba installed, is it configured to work with your workgroup. Are you trying to use Homegroup in Win7 if so it only works with other Win 7 machines. You are on seperate subnets also if your network adapter is NAT try making it bridged and see if that makes a difference, or use host only networking, no Internet but the WIn7 machine and VM would be on the same subnet. YOu could also add another Virtual adapter and have one NAT and one host only. Additionally permissions are a b***h with WIn 7 I found you had to not only share out the share to someone but also make NTFS permission changes allowing that person to access the share and this was on a 2003 Active directory domain. What credentials are you using to access the Win7 machine data? Use a Win 7 local account too would make your life easier. Just some thoughts feel free to ask some questions back.
 
Old 04-05-2010, 10:49 AM   #5
sportflyer
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Original Poster
Rep: Reputation: 0
When I ran dmesg | grep eth:

eth0 registeres as PCnet/PCI II 79C970A
udev: renamed network interface eth0 to eth1
eth1 link up
eht1 no IVP-6, router present


My home network is "workgroup" not the windows 7 homegroup because I also have XP and Vista machines and media players .

I am trying to connect by clicking on Places, then Network and clicking on the windows network icon. the response is : "Unable to mount location ; failed to retrieve share from server"

It looks like my NIC is eth1 .

Will changing the eth0 mac value to match the HWaddr for eth1 work?
 
Old 04-05-2010, 11:48 AM   #6
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
You don't need to worry about what your eth adapter is named if it works don't bother trying to fix it. I think your problem is a permissions, what username/password are you using to connect? And you didn't mention if the ip address in the VM is from the same subnet as the host.
 
Old 04-05-2010, 01:48 PM   #7
sportflyer
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by scheidel21 View Post
You don't need to worry about what your eth adapter is named if it works don't bother trying to fix it. I think your problem is a permissions, what username/password are you using to connect? And you didn't mention if the ip address in the VM is from the same subnet as the host.

user name and p/w was not asked when I clicked on the windows network icon.

Here is what i found when I did the ipconfig/all on the host machine:

Realtech PCIe
MAc 6c-f0-49-08-44-07
autoconfig yes
DHCP yes
ipv4 192.168.1.107
sybnet mask 255.255.255.0

VMnet1
Autoconfig yes
DHCP no
ipv4 192.168.19-86.1 ( preferred)
sunet mask 255.255.255.0

Vmnet8
autoconfig yes
DHCP no
ipv4 192.168.182.1 ( preferred)
subnet mask 255.255.255.0


There is a difference when I went to check network adapter properties in windows using the GUI. It shows that the ipv4 for vmnet8 as 192.168.56.1 not the same as when I used ipconfig/all

Should I change DHCP to yes on both virtual adapters?
 
Old 04-05-2010, 02:50 PM   #8
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
No don't mess with those. The reason your VM has a different subnet os because you chose to NAT the connection, it will not be the same as any subnet any adapter on your host has because it is NAT. NAT means Network Address Translation. This means that you may have one IP say 12.12.12.1 as a WAN or WAN side IP address on a router and then all your machines behind the router are running 192.168.5.x addresses what happens with NAT is that your PC makes a request for some information, it send it to the router which wraps up the request in an envelope that has the WAN address on it. When it gets returned to the router it opens up the response then finds out what computer requested it and sends it back to the requesting computer. Kind of like an apt building you may have 20 tenants they all live at 120 Seymour St. but there is apt a, b, c etc.... VMWare runs a software router that does NAT for VMs. I recommend again changing the the VMware adapter in the VM settings (while the VM is off) to Bridged. Then also check to make sure you have smb installed and check your configuration settings to see if it is passing a default username and password, it should be asking for one when you try to connect unless you saved it somewhere. Also make sure your samba settings are placing the linux machine in the same workgroup as the Windows machine. If that all fails try a basic command line connection to the share on your machine using smbclient.
 
Old 04-05-2010, 04:46 PM   #9
sportflyer
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by scheidel21 View Post
No don't mess with those. The reason your VM has a different subnet os because you chose to NAT the connection, it will not be the same as any subnet any adapter on your host has because it is NAT. NAT means Network Address Translation. This means that you may have one IP say 12.12.12.1 as a WAN or WAN side IP address on a router and then all your machines behind the router are running 192.168.5.x addresses what happens with NAT is that your PC makes a request for some information, it send it to the router which wraps up the request in an envelope that has the WAN address on it. When it gets returned to the router it opens up the response then finds out what computer requested it and sends it back to the requesting computer. Kind of like an apt building you may have 20 tenants they all live at 120 Seymour St. but there is apt a, b, c etc.... VMWare runs a software router that does NAT for VMs. I recommend again changing the the VMware adapter in the VM settings (while the VM is off) to Bridged. Then also check to make sure you have smb installed and check your configuration settings to see if it is passing a default username and password, it should be asking for one when you try to connect unless you saved it somewhere. Also make sure your samba settings are placing the linux machine in the same workgroup as the Windows machine. If that all fails try a basic command line connection to the share on your machine using smbclient.
I am finally able to connect to my network computers by a) changing the VM adapter to bridged b) I have to connect by using the respective computer's IP using SMB.

Places>connect to server>windows shares> then enter ip , username , pw

Is there a way where instead of connecting individually , I could go to network, then windows network and have all the computers show up?


I have a new question: When I select bridge in VMware, there is a secondary check box something about mimicking the adapters physical connections . I left that unchecked for now. Do I need it checked?

Tks for the support
 
Old 04-06-2010, 07:21 AM   #10
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
I am not familiar with that checkbox option but it sounds to me like you don't want to click it. As far as browsing computers goes, do you have samba installed, if not try installing samba, it should also instlal the components needed to browse the other comptuers. What Window manager are you using by chance, GNOME?
 
Old 04-06-2010, 10:49 AM   #11
sportflyer
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Original Poster
Rep: Reputation: 0
The actual words after the bridged connection check box is:

"Replicate physical network connection state "

Samba is installed . I can see the files . Maybe I have to configure Samba?

The windows GUI is Gnome . I used a prepackaged Fedora 12 Appliance from Vmware

When I connected to network computers using their IP , I thought I was using Samba.
 
Old 04-06-2010, 11:30 AM   #12
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
Samba might not be installed, GNOME has an smb client, I am thinking that either netbios is not working, not enable, you don't have samba installed so it's not doing netbios. You can also use DNS if you have a DNS server running on your network that dynamically changes the addresses as DHCP hands them out though I am guessing you do not. Samba/yoursmb client may not be configured properly I don't know, did it ask for username password whrn you logged on via IP address?

Replicate physical network conenction state sounds to me, though I don't know for sure, as I for the last couple of years have used VirtualBox for my host based Vitualization, like it it tied to the state of the physical adapter as in if no cable is plugged in or if the adapter is disabled the same state will be reflected in the Virtual machine NIC.
 
Old 04-06-2010, 12:46 PM   #13
sportflyer
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Maybe what I have is the samba client. Yes , it did ask for user name and password when I logged in to my network computers via IP

How to check whether I have samba installed ?

Last edited by sportflyer; 04-06-2010 at 12:46 PM. Reason: additional question
 
Old 04-06-2010, 02:46 PM   #14
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
Well if a username and password were requested it is not configured, because that would have not been asked. As far as checking samba was installed check your package manager probably synaptic in GNOME. so a search fro samba.
 
Old 04-06-2010, 10:04 PM   #15
sportflyer
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Original Poster
Rep: Reputation: 0
When I checked the etc/samba folder I only have 2 files: host and config. The config file is quite well commented.

When I do a search for samba nothing is shown. Looks like I need to install it . Searching for it using add/remove software returned so many items i don't know which to select.

I did a search re network adapter being eth1 instead of eth0. One person suggested editing the /etc/iftab file to change the eth0 mac value to match the HWaddr address for eth1 .

Does this make sense ?

New info: In Fedora the file is ifcfg-eth0

Last edited by sportflyer; 04-08-2010 at 12:12 AM. Reason: added new info
 
  


Reply



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
Need help connecting to home network dmchess Linux - Software 0 03-31-2009 10:07 PM
Need help connecting to home network using Suse 9.1 razz04 Linux - Networking 4 01-31-2005 10:18 AM
Home network (connecting 2 pc's) ninadb Linux - Networking 2 01-18-2005 03:16 AM
connecting to a home network justin_89 Linux - Wireless Networking 0 04-08-2004 06:06 PM
Connecting to home network vommit77 Linux - Networking 0 09-06-2001 08:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:08 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
Open Source Consulting | Domain Registration