Find the answer to your Linux question:
Results 1 to 4 of 4
I just installed Fedora 17 on my virtual Box. My host PC is a Windows 7 machine and connects to the internet Wirelessly. Could anyone tell me what network configurations ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2011
    Posts
    68

    Unhappy Networking a Fedora 17 on Virtual Box and Host PC Windows 7


    I just installed Fedora 17 on my virtual Box. My host PC is a Windows 7 machine and connects to the internet Wirelessly. Could anyone tell me what network configurations should I use on my virtual fedora box so that I could be able to ping my host Windows 7 system and at the same time use the internet. I am currently using a bridged adapter setting with promiscous mode set to "Allow All"

    [zedan@FedBox ~]$ ifconfig
    lo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436
    inet 127.0.0.1 netmask 255.0.0.0
    inet6 ::1 prefixlen 128 scopeid 0x10<host>
    loop txqueuelen 0 (Local Loopback)
    RX packets 70 bytes 5880 (5.7 KiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 70 bytes 5880 (5.7 KiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    p2p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet 192.168.1.9 netmask 255.255.255.0 broadcast 192.168.1.255
    inet6 fe80::a00:27ff:fe05:d5a2 prefixlen 64 scopeid 0x20<link>
    ether 08:00:27:05:d5:a2 txqueuelen 1000 (Ethernet)
    RX packets 162 bytes 47713 (46.5 KiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 156 bytes 16357 (15.9 KiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

  2. #2
    Just Joined!
    Join Date
    Oct 2012
    Posts
    4
    Hello,
    Are you able to access the internet with your browser in fedora? Are you trying to use fedora to run a web server? The ip address that fedora is finding "192.168.1.9" is a static ip, because your using bridged networking, its using your windows 7 system to send and receive data, meaning, that when you ping, you just get your computers static ip. Have you tryed reading the virtual networking docs? (virtualbox.org/manual/ch06.html)
    With bridged networking, VirtualBox uses a device driver on your host system that filters data from your physical network adapter.

  3. #3
    Linux Newbie
    Join Date
    Apr 2012
    Posts
    112
    Quote Originally Posted by zedan85 View Post
    I just installed Fedora 17 on my virtual Box. My host PC is a Windows 7 machine and connects to the internet Wirelessly. Could anyone tell me what network configurations should I use on my virtual fedora box so that I could be able to ping my host Windows 7 system and at the same time use the internet. I am currently using a bridged adapter setting with promiscous mode set to "Allow All"

    [zedan@FedBox ~]$ ifconfig
    lo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436
    inet 127.0.0.1 netmask 255.0.0.0
    inet6 ::1 prefixlen 128 scopeid 0x10<host>
    loop txqueuelen 0 (Local Loopback)
    RX packets 70 bytes 5880 (5.7 KiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 70 bytes 5880 (5.7 KiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    p2p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet 192.168.1.9 netmask 255.255.255.0 broadcast 192.168.1.255
    inet6 fe80::a00:27ff:fe05:d5a2 prefixlen 64 scopeid 0x20<link>
    ether 08:00:27:05:d5:a2 txqueuelen 1000 (Ethernet)
    RX packets 162 bytes 47713 (46.5 KiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 156 bytes 16357 (15.9 KiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
    I had similar issues to you and they were related to McAfee Host Intrusion prevention, preventing network access from VirtualBox

  4. $spacer_open
    $spacer_close
  5. #4
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by zedan85 View Post
    I just installed Fedora 17 on my virtual Box. My host PC is a Windows 7 machine and connects to the internet Wirelessly. Could anyone tell me what network configurations should I use on my virtual fedora box so that I could be able to ping my host Windows 7 system and at the same time use the internet.
    Hi,

    I have the exact same setup as you, and I did not have to do anything in order for my F17 guest to be able to get onto the internet.

    Here are some quick things to check/try:

    1. what is the ip of your Windows box, the one that the Linux box can see? It should be 192.168.1.x

    2. Does your F17 box have a default gateway? It should be the Win7 ip address determined in 1. above. Check w/this command:

    Code:
    route -n
    a default gateway will be listed as an ip address in the 2nd column of output in that command. it should be the ip address of the Win box. assuming your Win box has an ip address of 192.168.1.1, you can add one like this (as root):

    Code:
    route add default gw 192.168.1.1
    3. What DNS settings do you have in your F17 box? Check with:
    Code:
    cat /etc/resolv.conf
    You can use the DNS server ip addresses that your Win7 box uses. On you Win box, open a command prompt and run this:
    Code:
    ipconfig /all|find "DNS Servers"
    Take those ip addresses and put them in the F17 /etc/resolv.conf file like this:
    Code:
    nameserver 123.123.123.123
    nameserver 124.124.124.124

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •