Bridge and public access of instances(virtulbox+appscale)

43 visninger
Gå til det første ulæste opslag

Rajen Patel

ulæst,
9. okt. 2014, 15.39.2909.10.2014
til appscale_...@googlegroups.com
Network interface of my machine:

eth0      Link encap:Ethernet  HWaddr c0:3f:d5:94:a1:78 
          inet addr:10.176.138.202  Bcast:10.176.138.255  Mask:255.255.255.0
          inet6 addr: fe80::c23f:d5ff:fe94:a178/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2672656 errors:0 dropped:0 overruns:0 frame:0
          TX packets:535323 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3415918454 (3.4 GB)  TX bytes:60417224 (60.4 MB)

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:65536  Metric:1
          RX packets:77942 errors:0 dropped:0 overruns:0 frame:0
          TX packets:77942 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:10668083 (10.6 MB)  TX bytes:10668083 (10.6 MB)

vboxnet0  Link encap:Ethernet  HWaddr 0a:00:27:00:00:00 
          inet addr:192.168.33.1  Bcast:192.168.33.255  Mask:255.255.255.0
          inet6 addr: fe80::800:27ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1540 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:97199 (97.1 KB)

wlan0     Link encap:Ethernet  HWaddr 90:48:9a:43:b2:1e 
          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)
--------------------------------

VagrantFile

 config.vm.network "public_network", ip: "192.168.33.10"
{I want to access instace to access from throughout network so i changed public instead of private.}

After ssh vagrant
Vagrant Interface looks like as follows:

eth0      Link encap:Ethernet  HWaddr 08:00:27:88:0c:a6 
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe88:ca6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:830 errors:0 dropped:0 overruns:0 frame:0
          TX packets:656 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:92681 (92.6 KB)  TX bytes:75183 (75.1 KB)

eth1      Link encap:Ethernet  HWaddr 08:00:27:f5:e8:4c 
          inet addr:192.168.33.10  Bcast:192.168.33.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:136 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:12980 (12.9 KB)  TX bytes:418 (418.0 B)

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:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:486 (486.0 B)  TX bytes:486 (486.0 B)


Problem:
I can not able to ssh 192.168.33.10

My goal:
Run instance(192.168.33.10) from 10.176.138.*.

Kindly give me your suggestion.
Thanks,
Rajen

graziano obertelli

ulæst,
13. okt. 2014, 15.49.5013.10.2014
til appscale_...@googlegroups.com
Hello Rajen,

to have your vagrant instance accessible from your local network, you
will need to setup a bridge on your machine. What does
brctl show
gives on your machine? Have you ever setup a bridge? Are you in control
of the network you are using?

cheers
graziano
> --
> You received this message because you are subscribed to the Google
> Groups "AppScale Community" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to appscale_commun...@googlegroups.com.
> To post to this group, send email to
> appscale_...@googlegroups.com.
> Visit this group at http://groups.google.com/group/appscale_community.
> For more options, visit https://groups.google.com/d/optout.

--
Graziano Obertelli
AppScale Systems

Rajen Patel

ulæst,
30. okt. 2014, 13.54.4630.10.2014
til appscale_...@googlegroups.com
Hi Graziano,

Thanks for sharing info that i have to bridge network for access of instance from local network.However,I never bridged it so far.I am confused how to bridge as i am new guy in this field.Can you help me for that or site any refernce link which might helful in our case?


Rajen.

graziano obertelli

ulæst,
30. okt. 2014, 15.13.5930.10.2014
til appscale_...@googlegroups.com
Hi Rajen,

well one document from virtualbox is at
https://www.virtualbox.org/wiki/Advanced_Networking_Linux. In that
configuration you will use iptables to connect to the external world, and
your containers will share the same bridge.

A quick google also uncover the following:
http://www.scottro.net/vboxbridge.html. This one is more inline on what I
was saying, and your containers will be on your network instead of been
natted.

Another place you may want to look at is
http://www.dedoimedo.com/computers/virtualbox-network-sharing.html. Look
over the Bridged Adapter option.

Let mw know if any of them are helpful.

cheers,
graziano
> > > an email to appscale_commun...@googlegroups.com
> > <javascript:>.
> > > To post to this group, send email to
> > > appscale_...@googlegroups.com <javascript:>.
> > > Visit this group at http://groups.google.com/group/appscale_community.
> > > For more options, visit https://groups.google.com/d/optout.
> >
> > --
> > Graziano Obertelli
> > AppScale Systems
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups "AppScale Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to appscale_commun...@googlegroups.com.
Svar alle
Svar til forfatter
Videresend
0 nye opslag