LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   create a private domain among 3 ubuntu os. (https://www.linuxquestions.org/questions/linux-newbie-8/create-a-private-domain-among-3-ubuntu-os-919833/)

sourav0031 12-21-2011 11:27 AM

create a private domain among 3 ubuntu os.
 
hi guys

i want to create a private network between 3 ubuntu(s) installed in oracle virtual box..

i want 1 of them to be a server
1 to be a client
and the 3rd one to be a certification authority(kerberos/X.509 CA)

first help me to connect 3 ubuntu(s) to form a private network.

all 3 are in my laptop which runs win 7.

and is connected to wifi.


thank you...

singhharmeet 12-21-2011 11:37 AM

on windows 7 at cmd run ipconfig and paste the results here.. you have install 3 ubuntus on virtualbox ?... during installtion of ubuntu did you gave manual ips ? or automatic ?

singhharmeet 12-21-2011 11:39 AM

also the one vm which you want to be server. what kind of server you want it to be. ftp ? nfs ? http ? samba ? give the whole information in detail ... you have to run atleast 2 .. is your hardware capable enuff ? and you dont need wifi router to make a private network between 3 vms as they are connected through virtual bridge.

sourav0031 12-21-2011 11:52 AM

Quote:

Originally Posted by singhharmeet (Post 4555404)
on windows 7 at cmd run ipconfig and paste the results here.. you have install 3 ubuntus on virtualbox ?... during installtion of ubuntu did you gave manual ips ? or automatic ?

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\saravanan>ipconfig

Windows IP Configuration


Wireless LAN adapter Wireless Network Connection 3:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Wireless LAN adapter Wireless Network Connection 2:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::6921:7ee2:7ff5:db8e%13
IPv4 Address. . . . . . . . . . . : 192.168.1.119
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1

Ethernet adapter Local Area Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Ethernet adapter Bluetooth Network Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Ethernet adapter VirtualBox Host-Only Network:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::f546:4c14:5a2d:b58f%23
IPv4 Address. . . . . . . . . . . : 192.168.56.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Tunnel adapter 6TO4 Adapter:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter isatap.{12E5B3A0-A58A-4A91-B204-5189F4644004}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter isatap.{5E1BB597-FEBF-462E-8AB5-2C88BF99A94C}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter isatap.{28454D14-9E9D-4F46-9A6C-2C2038F155DF}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter isatap.nyit.edu:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter isatap.{A99D1F05-E340-40A1-8A46-E996F7E0E809}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter Teredo Tunneling Pseudo-Interface:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

C:\Users\saravanan>

and no i did not give any ips

my hard disk is 500gb, ram 4 gb, intel core i7 processor.

sourav0031 12-21-2011 11:53 AM

Quote:

Originally Posted by singhharmeet (Post 4555406)
also the one vm which you want to be server. what kind of server you want it to be. ftp ? nfs ? http ? samba ? give the whole information in detail ... you have to run atleast 2 .. is your hardware capable enuff ? and you dont need wifi router to make a private network between 3 vms as they are connected through virtual bridge.

want my server to be ftp or http either 1 is fine

singhharmeet 12-21-2011 11:56 AM

can you run one of your virtual machines and type ifconfig in terminal and paste the output here ?

sourav0031 12-21-2011 12:09 PM

Quote:

Originally Posted by singhharmeet (Post 4555417)
can you run one of your virtual machines and type ifconfig in terminal and paste the output here ?

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\saravanan>ipconfig

Windows IP Configuration


Wireless LAN adapter Wireless Network Connection 3:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Wireless LAN adapter Wireless Network Connection 2:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::6921:7ee2:7ff5:db8e%13
IPv4 Address. . . . . . . . . . . : 192.168.1.119
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1

Ethernet adapter Local Area Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Ethernet adapter Bluetooth Network Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Ethernet adapter VirtualBox Host-Only Network:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::f546:4c14:5a2d:b58f%23
IPv4 Address. . . . . . . . . . . : 192.168.56.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Tunnel adapter 6TO4 Adapter:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter isatap.{12E5B3A0-A58A-4A91-B204-5189F4644004}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter isatap.{5E1BB597-FEBF-462E-8AB5-2C88BF99A94C}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter isatap.{28454D14-9E9D-4F46-9A6C-2C2038F155DF}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter isatap.nyit.edu:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter isatap.{A99D1F05-E340-40A1-8A46-E996F7E0E809}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter Teredo Tunneling Pseudo-Interface:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

C:\Users\saravanan>

singhharmeet 12-21-2011 12:11 PM

not ipconfig of windows ...
run your virtual machine inside virtualbox .. in ubuntu terminal .. run command ifconfig and paste the output here..

sourav0031 12-21-2011 12:14 PM

Quote:

Originally Posted by singhharmeet (Post 4555436)
not ipconfig of windows ...
run your virtual machine inside virtualbox .. in ubuntu terminal .. run command ifconfig and paste the output here..

yeah i copied the info from virtual box but it is not available to paste in windows browser...
so i looged in thru ubuntu...

eth0 Link encap:Ethernet HWaddr 08:00:27:21:88:64
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe21:8864/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2150 (2.1 KB) TX bytes:11743 (11.7 KB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1296 (1.2 KB) TX bytes:1296 (1.2 KB)

singhharmeet 12-23-2011 05:23 AM

eth0 Link encap:Ethernet HWaddr 08:00:27:21:88:64
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe21:8864/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2150 (2.1 KB) TX bytes:11743 (11.7 KB)


okay ! 10.0.2.15 is the ip given to your virtual machine you can create ftp server on this vm but i would suggest you to make this server static. give it a static ip, to do that go to connection properties of eth0 and instead of automatic click on manual and give ip address, mask and gateway. then install vsftpd service and enable it and start it. it will create a folder /var/ftp/ where you can copy all the files you want to share with other computers ( your other virtual machines here ) can access it thru ftp://10.0.2.15
hope this helps..
p.s. may be you also need to edit selinux contexts to make this folder work


All times are GMT -5. The time now is 05:08 PM.