My Host OS is Centos 6.9 and virtual Box is 5.1. I created a VM in VirtualBox with OS Centos 6.9 and configured as bridge mode by providing the static IP to guest of the same LAN as Host.
I am able to ping from Guest to Host, but unable to ping outside the Host, but within the LAN. Internet is also not working in guestos.
When I change the bridge to NAT and selecting the dhcp in guest, internet is working OK in guest OS.
My requirement is to use VM as a Server in LAN in which Host is connected. I tried for help in the internet, but, no help.
The details of my host server is as below:
Code: Select all
[root@cpcb Desktop]# vboxmanage showvminfo vm --details
Name: vm
Groups: /
Guest OS: Red Hat (32-bit)
UUID: 083de935-5df8-4508-a952-f6eaed3bb600
Config file: /root/VirtualBox VMs/vm/vm.vbox
Snapshot folder: /root/VirtualBox VMs/vm/Snapshots
Log folder: /root/VirtualBox VMs/vm/Logs
Hardware UUID: 083de935-5df8-4508-a952-f6eaed3bb600
Memory size: 2048MB
Page Fusion: off
VRAM size: 16MB
CPU exec cap: 100%
HPET: off
Chipset: piix3
Firmware: BIOS
Number of CPUs: 1
PAE: on
Long Mode: off
Triple Fault Reset: off
APIC: on
X2APIC: on
CPUID Portability Level: 0
CPUID overrides: None
Boot menu mode: message and menu
Boot Device (1): DVD
Boot Device (2): HardDisk
Boot Device (3): Not Assigned
Boot Device (4): Not Assigned
ACPI: on
IOAPIC: on
BIOS APIC mode: APIC
Time offset: 0ms
RTC: local time
Hardw. virt.ext: on
Nested Paging: on
Large Pages: off
VT-x VPID: on
VT-x unr. exec.: on
Paravirt. Provider: Default
Effective Paravirt. Provider: KVM
State: powered off (since 2017-05-16T04:38:42.687000000)
Monitor count: 1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Tracing Enabled: off
Allow Tracing to Access VM: off
Tracing Configuration:
Autostart Enabled: off
Autostart Delay: 0
Default Frontend:
Storage Controller Name (0): IDE
Storage Controller Type (0): PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0): 2
Storage Controller Port Count (0): 2
Storage Controller Bootable (0): on
IDE (1, 0): /root/VirtualBox VMs/vm/centos-disk1.vmdk (UUID: 51eac171-7390-4797-a989-4c923a927ae7)
NIC 1: MAC: 080027915BBD, Attachment: Bridged Interface 'eth3', Cable connected: on, Trace: off (file: none), Type: 82545EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 2: disabled
NIC 3: disabled
NIC 4: disabled
NIC 5: disabled
NIC 6: disabled
NIC 7: disabled
NIC 8: disabled
Pointing Device: USB Tablet
Keyboard Device: PS/2 Keyboard
UART 1: disabled
UART 2: disabled
UART 3: disabled
UART 4: disabled
LPT 1: disabled
LPT 2: disabled
Audio: enabled (Driver: ALSA, Controller: AC97, Codec: STAC9700)
Clipboard Mode: disabled
Drag and drop Mode: disabled
VRDE: disabled
USB: enabled
EHCI: disabled
XHCI: disabled
USB Device Filters:
<none>
Bandwidth groups: <none>
Shared folders: <none>
Video capturing: not active
Capture screens: 0
Capture file: /root/VirtualBox VMs/vm/vm.webm
Capture dimensions: 1024x768
Capture rate: 512 kbps
Capture FPS: 25
Configured memory balloon size: 0 MB
[root@cpcb Desktop]#
Code: Select all
root@cpcb Desktop]# sudo ifconfig
eth0 Link encap:Ethernet HWaddr 94:57:A5:6D:46:D0
UP BROADCAST RUNNING 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)
Interrupt:16
eth1 Link encap:Ethernet HWaddr 94:57:A5:6D:46:D1
UP BROADCAST RUNNING 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)
Interrupt:17
eth2 Link encap:Ethernet HWaddr 94:57:A5:6D:46:D2
UP BROADCAST RUNNING 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)
Interrupt:16
eth3 Link encap:Ethernet HWaddr 94:57:A5:6D:46:D3
inet addr:10.24.84.226 Bcast:10.24.84.255 Mask:255.255.255.0
inet6 addr: fe80::9657:a5ff:fe6d:46d3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1829145 errors:0 dropped:0 overruns:0 frame:0
TX packets:718998 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:484724626 (462.2 MiB) TX bytes:764561244 (729.1 MiB)
Interrupt:17
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:657428 errors:0 dropped:0 overruns:0 frame:0
TX packets:657428 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5824585830 (5.4 GiB) TX bytes:5824585830 (5.4 GiB)
virbr0 Link encap:Ethernet HWaddr 52:54:00:E8:8F:D1
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:744 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:154494 (150.8 KiB)
[root@cpcb Desktop]#
File attached.
Please help in this.
Thank you,