[Solved] Router DHCP IP Table - No guest host client name?

Discussions related to using VirtualBox on Windows hosts.
Post Reply
presumedhuman
Posts: 5
Joined: 11. Sep 2009, 16:51
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: fedora 11

[Solved] Router DHCP IP Table - No guest host client name?

Post by presumedhuman »

HOST: Windows XP
GUEST: Fedrora 11
ROUTER: Linksys WRT54GS

How do I get the GUEST system's name (hostname) to appear in my router's DHCP Active IP Table?
The name for each of my other network items appears in the table as shown below:

Client Host Name.......IP Address..........MAC Address........Expires
Printer1................192.168.1.100.....00:24:81:75:03:2B.....23:56:12
PC1.....................192.168.1.102.....00:15:C5:58:D7:C2.....23:56:17
PC2.....................192.168.1.103.....00:11:11:72:D7:3A.....23:56:17
PC1.....................192.168.1.104.....00:1D:7E:01:2E:AA.....23:56:17
.........................192.168.1.105.....08:00:27:9A:E0:B7.....23:59:45
.........................192.168.1.106.....08:00:27:76:55:0A.....23:59:46

PC1 appears twice because I have 2 NICs installed (one ineternal, one usb).
The last 2 lines (no Client Host Names) are my GUEST's ips for each of the HOST's NICs.

GUEST network adapter 1 is configured as Bridge Adapter, Broadcom 440x 10/100 Integrated Controller
GUEST network adapter 2 is configured as Bridge Adapter, Linksys USB 2.0 Network Adapter ver. 2

Thanks,
ph
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Router DHCP Active IP Table - No guest host client name?

Post by vbox4me2 »

Did you set a hostname for those Guests? if you move them to the other bridge does that make them known? Hostnames used without exotic characters?
presumedhuman
Posts: 5
Joined: 11. Sep 2009, 16:51
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: fedora 11

Re: Router DHCP Active IP Table - No guest host client name?

Post by presumedhuman »

Q: Did you set a hostname for those Guests?
A: If you mean, did I set the hostname, etc. within the Fedora guest system- YES.

Q: if you move them to the other bridge does that make them known?
A: Not sure what you mean by "other" bridge. I am using VB 3.0.4...
Network adapter settings offer choices of Type, Attached to, and Name.
My selections for Adapter 1 are PCnet-FAST III, Bridge Adapter, Broadcom 440x 10.100 integrated controller.
My selections for Adapter 2 are PCnet-FAST III, Bridge Adapter, Linksys USB 2.0 Network Adapter ver. 2.

Q: Hostnames used without exotic characters?
A: Hostnames are simple text: eg., "PC1_F11VM"
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Router DHCP Active IP Table - No guest host client name?

Post by vbox4me2 »

Are the 2 unknowns tied to one specific adapter? what happens if you change the adapter choice for them.
presumedhuman
Posts: 5
Joined: 11. Sep 2009, 16:51
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: fedora 11

Re: Router DHCP Active IP Table - No guest host client name?

Post by presumedhuman »

vbox4me2 wrote:Are the 2 unknowns tied to one specific adapter? what happens if you change the adapter choice for them.
The two unknowns are a one for one correspondence to the two NICs. It seems that when the GUEST system starts, it receives the ip addresses from the router but the router does not actually know (or display) the host client that they have been leased to.

So... is this an artifact of the GUEST ("virtual") environment mapping to/though the HOST hardware?
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Router DHCP Active IP Table - No guest host client name?

Post by vbox4me2 »

Could be a Host issue but it can also be a router issue or a Guest issue, it depends how(who) and by what means(protocol) the name is resolved.
presumedhuman
Posts: 5
Joined: 11. Sep 2009, 16:51
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: fedora 11

Re: Router DHCP Active IP Table - No guest host client name?

Post by presumedhuman »

SOLVED!

I found the following suggestion and applied it to my VB Fedora 11 guest - it works:
-------------------------------
This is due to Fedora 8 not reporting its hostname when obtaining a DHCP lease from your router. A network interface may be configured to report a hostname to the DHCP server using the DHCP_HOSTNAME variable. Add the following line to /etc/sysconfig/network-scripts/ifc fg-eth0 (substitute eth0 for your primary network interface name if it differs).

DHCP_HOSTNAME=MyHostname
--------------------------------
ph
Post Reply