Slackware from Vmware Workstation 6.0 - ethernet connection
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761
Rep:
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."
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.
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761
Rep:
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.