LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-16-2010, 04:08 AM   #1
pdaalder
LQ Newbie
 
Registered: Feb 2010
Posts: 1

Rep: Reputation: 0
Question Lost in the network: setting up network on Laptop with virtual guest machines


Hi All,

I've been trying to understand how Linux creates the network/interfaces on a machine (been reading the Linux admin guide), but as I'm pretty new to this subject, I've got lost in the forest.

To provide with my goal:
1.) Learn about network setups on Linux
2.) Be able to maintain my own (virtual) network
3.) Configure my (virtual) network

What I've done so far:

Guest system

/etc/hosts
Quote:
127.0.0.1 localhost
127.0.1.1 sms

172.16.34.2 gw.mylaptop.com gw vmnet8 #Not sure what is the function of this line
172.14.34.5 sms.mylaptop.com sms
/etc/networks
Quote:
mylaptop-net 172.16.34.0
/etc/network/interfaces
Quote:
auth eth0
iface eth0 inet static
address 172.16.34.5
mask 255.255.255.0
broadcast 172.16.34.255
network 172.16.34.0
ifconfig eth0:
Quote:
eth0 Link encap:Ethernet HWaddr 00:0c:29:bd:4b:9b
inet addr:172.16.34.5 Bcast:172.16.34.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:354 (354.0 B) TX bytes:1054 (1.0 KB)
Interrupt:19 Base address:0x2000
route -n
Quote:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.16.34.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
The host system

/etc/hosts:
Quote:
127.0.0.1 localhost
127.0.1.1 pdaalder-laptop

172.16.46.2 gw.mylaptop.com gw vmnet8
172.16.34.5 sms.mylaptop.com sms
172.16.46.6 pdaalder.mylaptop.com pdaalder
/etc/networks
Quote:
127.0.0.1 localhost
127.0.1.1 pdaalder-laptop
/etc/network/interface
Quote:
not modified, but I did run the command: ifconfig eth0 172.16.34.6 mask 255.255.255.0
ifconfig eth0:
Quote:
eth0 Link encap:Ethernet HWaddr 00:15:c5:09:c5:5a
inet addr:172.16.34.6 Bcast:172.16.34.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:18
route -n
Quote:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.16.34.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet8
172.16.34.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 2 0 0 wlan0
192.168.247.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet1
0.0.0.0 192.168.0.254 0.0.0.0 UG 0 0 0 wlan0
I can ping 172.16.34.0 from both the host and guest machine, with -b

What my question is now:
- what have a I achieved?
- what am I missing?

Many thanks for your help (and explanation)

Peter Daalder

Last edited by pdaalder; 02-16-2010 at 04:09 AM.
 
Old 02-16-2010, 04:33 AM   #2
sohail0399
Member
 
Registered: Oct 2008
Location: Pakistan, Islamabad
Distribution: CentOS, Fedora, Solaris
Posts: 154

Rep: Reputation: 23
this site would be very helpful to you
because it provide step by step procedure to find out the way.

http://www.linuxhomenetworking.com/w...nux_Networking


and also main site is:


http://www.linuxhomenetworking.com/
 
  


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
Configure virtual network settings in debian guest on xp host dual nics patrick2099 Debian 1 11-04-2008 07:10 PM
configure network to communicate between two Virtual Machines. vikas027 Solaris / OpenSolaris 11 10-11-2008 12:56 AM
Converting a Dual Boot Box and Network Into Virtual Machines Woodsman Slackware 2 04-18-2008 10:28 PM
how do i ran virtual machines on ubuntu? (for my Network Internet Lab) Gilco333 Linux - Software 3 02-02-2008 12:44 AM
Setting up win98(guest vmware) network? hydro Linux - Networking 3 10-20-2003 05:33 PM


All times are GMT -5. The time now is 10:32 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration