LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ipaddress of virutal machine (https://www.linuxquestions.org/questions/linux-newbie-8/ipaddress-of-virutal-machine-769884/)

vinaytp 11-18-2009 03:22 AM

ipaddress of virutal machine
 
Hi all....

In my fedora9 machine i have a Virtual Machine installed...The ip of virtual machine is 192.168.122.82.

But when i execute ifconfig in my fedora9 machine i get
Code:

virbr0    Link encap:Ethernet  HWaddr 00:FF:5E:31:17:72 
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr: fe80::2c7c:1dff:fef8:5fcc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:57 errors:0 dropped:0 overruns:0 frame:0
          TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:8920 (8.7 KiB)  TX bytes:7813 (7.6 KiB)

vnet0    Link encap:Ethernet  HWaddr 00:FF:5E:31:17:72 
          inet6 addr: fe80::2ff:5eff:fe31:1772/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:57 errors:0 dropped:0 overruns:0 frame:0
          TX packets:625 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:9718 (9.4 KiB)  TX bytes:33902 (33.1 KiB)

Above what is virbr0 and vnet0 ?

Also ip address in virbr0 is different than Ip address of my virtual machine which is 192.168.122.82 ?

Also there is no ipaddress for vnet0 ?

I am confused...Can anyone please help me...

Thanks in advance...

vishesh 11-18-2009 03:27 AM

There can be multiple form of networking exist between host and guest.
like
NAT
Host only networking
Bridged Networking
If you select bridged network then a virtaul network interface created on your guest that is vnet0 that create a bridge interface virbr0. Ip address specified to virbr0.

You can use brctl to view which interfaces are present in bridge interface.


All times are GMT -5. The time now is 02:34 PM.