Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

dhcpcd ver 3.x, mtu, and VMWare (Solved)

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
dweigert
Guru
Guru
User avatar
Posts: 369
Joined: Fri Oct 04, 2002 10:49 pm
Location: Somerset, NJ USA

dhcpcd ver 3.x, mtu, and VMWare (Solved)

  • Quote

Post by dweigert » Tue Mar 13, 2007 9:27 pm

I've had a lovely time trying to troubleshoot an issue with VMWare. I did an emerge --sync, then and emerge -uD --newuse world. All went well, no issues at home with VMWare. Only when I connected with the corporate LAN, the Windows XP session inside of VMWare began throwing fits. No web pages loaded, no access to the Exchange servers, etc.

Funny thing, telnet and the windows remote desktop worked fine. This is clue #1

Nothing worked no matter what I did to get Wndows working again, including creating a fresh install of XP in another VM. With the help of our networking experts, I discovered today that the MTU of eth0 was 576. Clue #2....

A bit of digging and I found out that dhcpcd ver 3.x has a default fallback MTU of 576. Hmmmm.... I downgraded dhcpcd back to the latest ver 2 in portage, and have had no problems since.
"Always remember to mount a scratch monkey..."
Top
UberLord
Retired Dev
Retired Dev
User avatar
Posts: 6838
Joined: Thu Sep 18, 2003 10:26 am
Location: Blighty
Contact:
Contact UberLord
Website

Re: dhcpcd ver 3.x, mtu, and VMWare (Solved)

  • Quote

Post by UberLord » Wed Mar 14, 2007 10:04 am

dweigert wrote:A bit of digging and I found out that dhcpcd ver 3.x has a default fallback MTU of 576. Hmmmm.... I downgraded dhcpcd back to the latest ver 2 in portage, and have had no problems since.
Right. But we only use that fallback if the DHCP server in question requests that we use a lower MTU than 576. The chances are that your DHCP server is faulty.

You can diagnose this yourself. emerge wireshark and watch the UDP packets being sent during dhcpcd starting up. In the first packet we make no MTU request, so you won't see anything in the reply. In the 2nd request we do request an MTU value if the server has one. If it does then it sends it back and we use that MTU.

Maybe you could do this and tell me what MTU the server is trying to set and some info about your DHCP server.

Thanks
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Top
dweigert
Guru
Guru
User avatar
Posts: 369
Joined: Fri Oct 04, 2002 10:49 pm
Location: Somerset, NJ USA

  • Quote

Post by dweigert » Wed Mar 14, 2007 9:39 pm

I can tell you that the DHCP servers are windows boxes with a Cisco DHCP Server solution on it. The vintage is uncertain, as are the revisions of the servers.
I wish I had the clout to tell them to fix it...

*Shrug* Not the choice I would have made if I was in charge of the infrastructure...

Since the infrastructure isn't in my control, I can only do things from my end. The biggest issue was the MTU mismatch between Linux and the Windows XP running inside VMWare. Windows set an MTU of 1500. The dhcpcd client set 576. The resulting clash was a really messy thing to figure out.

Just out of curiosity, wouldn't a more sane default for ethernet be an MTU of 1500?

Dan
"Always remember to mount a scratch monkey..."
Top
UberLord
Retired Dev
Retired Dev
User avatar
Posts: 6838
Joined: Thu Sep 18, 2003 10:26 am
Location: Blighty
Contact:
Contact UberLord
Website

  • Quote

Post by UberLord » Thu Mar 15, 2007 9:46 am

dweigert wrote:Just out of curiosity, wouldn't a more sane default for ethernet be an MTU of 1500?
We don't do anything with the MTU unless the DHCP server requests that we do.
And yes 1500 is a sane default.
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Top
UberLord
Retired Dev
Retired Dev
User avatar
Posts: 6838
Joined: Thu Sep 18, 2003 10:26 am
Location: Blighty
Contact:
Contact UberLord
Website

  • Quote

Post by UberLord » Thu Mar 15, 2007 9:56 am

http://dev.gentoo.org/~uberlord/dhcpcd-mtu.patch

This patch may or may not help.
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Top
Dun
Apprentice
Apprentice
User avatar
Posts: 172
Joined: Sat Apr 17, 2004 2:04 am
Location: Amsterdam (NL) / Venice (IT)

  • Quote

Post by Dun » Sun Apr 22, 2007 6:34 pm

Bumping this thread just to confirm (already done on bugzilla) the problem
with net-misc/dhcpcd-3.0.16-r1 as dhcp client with my ISP (Fastweb IT).

MTU requested 64 (too low) and then set to 576.

Solved using dhclient. :)
Top
Post Reply

6 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic