NAT interface is always eth0

Discussions related to using VirtualBox on Mac OS X hosts.
Locked
lp
Posts: 6
Joined: 14. Jun 2016, 22:25

NAT interface is always eth0

Post by lp »

Im trying to run CentOS 7 as a guest with 2 host only adapter and 1 NAT interface.

I've set Host-only Adapter 1,2 as adapter #1 and #2 respectively and NAT adapter as adapter #3. Everything working fine but I see that NAT interface is always taking the first interface, i.e. eth0. Is there a way to change NAT interface to eth3?

Please see below details.

Code: Select all

MacBook-Pro:MacOS unni$ VBoxManage showvminfo ostack_server1 --details
Name: ostack_server1
Groups: /New group
Guest OS: Red Hat (64-bit)
UUID: a219d33d-accc-4876-bba5-101c8445bbf7
Config file: /Users/unni/VirtualBox VMs/New group/ostack_server1/ostack_server1.vbox
Snapshot folder: /Users/unni/VirtualBox VMs/New group/ostack_server1/Snapshots
Log folder: /Users/unni/VirtualBox VMs/New group/ostack_server1/Logs
Hardware UUID: a219d33d-accc-4876-bba5-101c8445bbf7
Memory size: 4096MB
Page Fusion: off
VRAM size: 12MB
CPU exec cap: 100%
HPET: off
Chipset: piix3
Firmware: BIOS
Number of CPUs: 1
PAE: on
Long Mode: on
CPUID Portability Level: 0
CPUID overrides: None
Boot menu mode: message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI: on
IOAPIC: on
Time offset: 0ms
RTC: UTC
Hardw. virt.ext: on
Nested Paging: on
Large Pages: on
VT-x VPID: on
VT-x unr. exec.: on
Paravirt. Provider: Default
State: running (since 2016-06-15T01:07:03.584000000)
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
Storage Controller Name (1): SATA
Storage Controller Type (1): IntelAhci
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1): 30
Storage Controller Port Count (1): 1
Storage Controller Bootable (1): on
IDE (1, 0): Empty (ejected)
SATA (0, 0): /Volumes/DATA/ostack_server1.vdi (UUID: 77a454ca-fec6-48a4-8285-6f197cd2b5f8)
NIC 1: MAC: 080027AE8A03, Attachment: Host-only Interface 'vboxnet0', Cable connected: on, Trace: off (file: none), Type: virtio, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-all, Bandwidth group: none
NIC 2: MAC: 0800277BA1CF, Attachment: Host-only Interface 'vboxnet1', Cable connected: on, Trace: off (file: none), Type: virtio, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-all, Bandwidth group: none
NIC 3: MAC: 080027CFEB34, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-all, Bandwidth group: none
NIC 3 Settings: MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)
NIC 4: disabled
NIC 5: disabled
NIC 6: disabled
NIC 7: disabled
NIC 8: disabled
Pointing Device: PS/2 Mouse
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: CoreAudio, Controller: AC97, Codec: AD1980)
Clipboard Mode: disabled
Drag and drop Mode: disabled
Session name: GUI/Qt
Video mode: 720x400x0 at 0,0 enabled
VRDE: disabled
USB: enabled
EHCI: disabled
XHCI: disabled

USB Device Filters:

<none>

Available remote USB devices:

<none>

Currently Attached USB Devices:

<none>

Bandwidth groups: <none>

Shared folders: <none>

VRDE Connection: not active
Clients so far: 0

Video capturing: not active
Capture screens: 0
Capture file: /Users/unni/VirtualBox VMs/New group/ostack_server1/ostack_server1.webm
Capture dimensions: 1024x768
Capture rate: 512 kbps
Capture FPS: 25

Guest:

Configured memory balloon size: 0 MB
OS type: RedHat_64
Additions run level: 0

Guest Facilities:

No active facilities.


MacBook-Pro:MacOS unni$
Last edited by socratis on 15. Jun 2016, 07:55, edited 1 time in total.
Reason: Enclosed the information in code tag for better readability
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: NAT interface is always eth0

Post by socratis »

Isn't that a guest question? Maybe CentOS is assigning the first internet-available interface as eth0?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: NAT interface is always eth0

Post by socratis »

OK, I just noticed viewtopic.php?f=3&t=78164
Locking this one...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Locked