Basic networking please help


 
Thread Tools Search this Thread
Special Forums IP Networking Basic networking please help
# 1  
Old 12-09-2010
Basic networking please help

I am running Ubuntu Desktop and Ubuntu Server editions on two separate VMs.

For the desktop I have set network adapters:
Adapter 1: internal network called intnet
Adapter 2: NAT

Server:
Adapter 1: internal network called intnet

Now I'm suppose to set ip addresses which I'm pretty sure you do by editing the /etc/network/interfaces file but I'm new to this I don't really get it.

Ubuntu Desktop:
static IP 192.168.10.100 for the internal network adapter
netmask 255.255.255.0
dhcp IP for the NAT adapter

Ubuntu Server:
static IP 192.168.10.101
netmask 255.255.255.0

^ This is what I need to have set.. how do I do this? I've tried a few things and reset the network and it didn't work. Please can anyone help?
# 2  
Old 12-10-2010
...

has this been resolved?
# 3  
Old 12-10-2010
No.. I'm still looking for an answer.

Code:
auto eth0
iface eth0 inet static
address 192.168.10.100
netmask 255.255.255.0
gateway 192.168.10.254

I don't know if this is right for the first adapter and what about the NAT adapter?
# 4  
Old 12-10-2010
What VM are you using? Usually, both VMware and VirtualBox have an DHCP server running for NAT networks. Assuming the internal network is eth0 and the NAT network is eth1:
Code:
auto lo eth0 eth1
iface lo inet loopback

iface eth0 inet static
    address 192.168.10.100
    netmask 255.255.255.0
    # No gateway, since internal networks usually have absolutely no connection
    # to the outside world

iface eth1 inet dhcp

Once that's done, restart the network by running invoke-rc.d networking restart from the command line.
This User Gave Thanks to pludi For This Post:
# 5  
Old 12-10-2010
Quote:
Originally Posted by pludi
What VM are you using? Usually, both VMware and VirtualBox have an DHCP server running for NAT networks. Assuming the internal network is eth0 and the NAT network is eth1:
Code:
auto lo eth0 eth1
iface lo inet loopback

iface eth0 inet static
    address 192.168.10.100
    netmask 255.255.255.0
    # No gateway, since internal networks usually have absolutely no connection
    # to the outside world

iface eth1 inet dhcp

Once that's done, restart the network by running invoke-rc.d networking restart from the command line.
Thanks, I am using VirtualBox. The NAT network isn't named though is it okay to say it's
Code:
iface eth1 inet dhcp

would I have to do something like
Code:
iface eth1 nat dhcp

instead? Sorry if this is a stupid question.
# 6  
Old 12-10-2010
The third word isn't in any way related to whatever name you've given to the internal network. Actually, the VM usually doesn't even know it's a purely virtual network. Instead it defines the protocol used. inet is for IPv4, inet6 for IPv6, ...
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. IP Networking

Networking

hi From mt windows machine I can ping a LINUX machine but there is no arp entry for the same LINUX on my windows. How is it possible and what can I do to add the arp entry as I need it. thanks (1 Reply)
Discussion started by: leghorn
1 Replies

2. IP Networking

Basic networking question

Hii, Today morning I attended an interview, they had showed me the attached image and had few questions about that. The image shows a network with 4 nodes viz.. A B C & D and two switches(layer2) and a router(layer3). Just wanted to know can node A and node D would be on same network e.g... (4 Replies)
Discussion started by: zing_foru
4 Replies

3. IP Networking

Networking

Hi, I have a question on networking. I will try to ask with an example... Suppose i am googling something, as in searching something in the google page. In this case what I basically want to know is, does the client do a connect evrytime to the server whenever a search is done in google,... (1 Reply)
Discussion started by: naan
1 Replies

4. IP Networking

C networking

Can anybody help me regarding networking using c language i know how to capture the packets and to verify it`s protocol destination and source ip etc. Can anybody help me to direct a packet coming to an ip to some other ip of my choice ........ Hope reply ... (0 Replies)
Discussion started by: Sannair
0 Replies

5. UNIX for Advanced & Expert Users

how ..........networking

hi everyone this is dipendra, i am interested in networking,i know simple socket programming . and now i am wonder to get in to audio socket. i have no clue how to build audio socket.so i am looking if u can provide me a link regarding the audio socket building tutorials. (1 Reply)
Discussion started by: dipendra_regmi
1 Replies

6. UNIX for Dummies Questions & Answers

Basic networking setup in unix

I have a SunOS 5.8 box and have always downloaded & applied patches via my PC, but I want to be able to go out to sunsolve directly from the console ... however, I guess it doesn't know the IP of our domain's DNS server or something. Where are these setting held on a Sun box??? (1 Reply)
Discussion started by: FredSmith
1 Replies

7. Slackware

Basic networking questions.

Hey, I'm new to Linux. I have a few questions about it. I run Slackware. After the installation the Linux installation had problems with my old hardware (network card, sound card) so I removed them and Linux would start. But now, I can't seem to use the network card in Linux because it's not... (3 Replies)
Discussion started by: RellioN
3 Replies

8. IP Networking

basic networking

Here are some really stupid questions, but I'm not really sure what I'm doing, so any help will be appreciated. I'm trying to learn linux and basic networking. I have 2 computers: one has windows and the other I just installed Red Hat 7.1. In the network configuration screen of the Red Hat... (10 Replies)
Discussion started by: satops
10 Replies
Login or Register to Ask a Question