LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-19-2007, 11:41 AM   #1
ReVeR
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Rep: Reputation: 0
Slackware from Vmware Workstation 6.0 - ethernet connection


Hey.
I recently set up a VMWare Workstation 6.0 on my windows box, and installed slackware onto a vm. Well the installation went fine, but now i am having trouble connecting to the internet. Essentially I will need to use the same internet connection as my windows box, since i am running from within the vm, but how the hell do i set that up?
Thx Alot in advance. Note i am running on a slighly old slackware 9.0

[EDIT]
I am using NAT option in VMWare.

Last edited by ReVeR; 05-19-2007 at 11:45 AM.
 
Old 05-19-2007, 12:24 PM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
Quote:
I am using NAT option in VMWare.
Using NAT in VMware has it's own DHCP server and subnet settings. Set the guest OS to use DHCP. The easyist way to set up DHCP in Slackware is to use command netconfig as root and follow the prompts.
Code:
# netconfig
"The preferred way of setting up your network connection is through the use of the netconfig program."

http://www.slackware.com/config/network.php
 
Old 05-19-2007, 12:41 PM   #3
ReVeR
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Hey, thx alot.
I did the configuration, a but that still doesn't allow me to access anything over the network.
When the virtual machine tries to access the net, does it use the MAC addy of my windows box, or the one that is in slack?
I got a correct ip addy from DHCP, however any attemps to do something like ping google or something fail.

Last edited by ReVeR; 05-19-2007 at 01:02 PM.
 
Old 05-19-2007, 01:33 PM   #4
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
The guest NIC will get a MAC address, the NAT connection will use the host's MAC/IP/port number for the actual live network connection.

Check the VMware Virtual Network Settings and make sure DHCP and NAT servces are started; the NAT tab will show what virtual gateway and subnet is being used. As an example, the gateway will be 192.168.31.2.

Verify your guest OS has an IP address, gateway, and nameserver based on the virtual subnet. Example below.
Code:
# ifconfig eth0 | grep inet
IP address should be in 192.168.31.X range
# route -n
Look under the Gateway column, should be
192.168.31.2
# cat /etc/resolv.conf | grep nameserver
should show
nameserver 192.168.31.2

Last edited by bsdunix; 05-19-2007 at 01:34 PM.
 
  


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
My Slackware 10.2 can't find SCSI disks on VMware Workstation 5? jabao_ron Slackware 1 03-21-2007 03:22 PM
No ethernet connection on Slackware 10.2. Exhnozoaa Linux - Networking 1 06-17-2006 12:00 PM
Mandrake 10 + VMWare Workstation 4 help! AngelicCharon Mandriva 9 05-08-2005 07:15 AM
vmware workstation zetsui Linux - Software 2 07-01-2003 10:59 PM
Using VMWare 3.0 Workstation asb12973 Linux - General 2 06-08-2002 01:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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