D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Inet address

 

On Tue, May 14, 2013 at 11:10 AM, Neil Winchurst wrote:
> For some reason I have never noticed this before. I sometimes use VBox to
> check out various distros etc. For the first time I have run ifconfig on the
> VBox distro. I expected to see a result for the inet address starting with
> 192.168. Instead I got 10.0.2.15 which surprised me a bit.
>
> Is this normal or should I be looking into it?

It sounds normal.

Two things are important in this context. Firstly, there are three
blocks of private networks. Everything starting with 192.168.,
everything starting with 10. and everything between 172.16. and
172.31. (inclusive) belongs to a private network. See

https://en.wikipedia.org/wiki/Private_network

So the VM you checked has got a local IP address.

Secondly, given your question, I assume machines on your local network
have an IP address starting with 192.168. So you rightly wonder why
the VM is on a different range. This has likely to do with the way the
network on the VM is set up. There are various options for this, but
the two most commonly used (I'm guessing here) are NAT and Bridged.

Ah, I see that Grant has already started to explain this. Well, what
he says. It looks like you were using NAT and expecting Bridged.

Martijn.

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq