0

I am trying to simulate two different computers on one box, using the macvlan module (which is awesome, by the way) but I have one small problem; When I create the macvlan Ubuntu 11.10 very helpfully starts broadcasting its hostname on both interfaces, creating an amazing amount of confusion for everything that deals with hostnames.

Does anyone know how to stop ubuntu from advertising its hostname on a certain interface? Thanks!

staticfloat
  • 257
  • 1
  • 3
  • 8

1 Answers1

3

You don't explain in what manner your system is broadcasting its hostname. If you're seeing it show up via multicast DNS, you may want to look to the "avahi" package, which is often used under Linux to broadcast multicast dns notifications on the local network. I don't know the exact package name under Ubuntu, but you can probably find the control script somewhere in /etc/rc.d.

You can safely just stop the avahi server and disable the service, unless you're relying on this for service discovery on your local network.

larsks
  • 43,623
  • 14
  • 121
  • 180
  • Awesome. That's exactly what I meant. Avahi was indeed the culprit, and there is an /etc/avahi/avahi-daemon.conf with an "allow-interfaces" and "deny-interfaces" area. – staticfloat Mar 27 '12 at 22:33
  • Additionally, anybody playing around with macvlan stuff should be aware of the "arp flux" problem; if your ssh sessions are randomly dropping, then I suggest you look here: http://serverfault.com/questions/207480/massive-packet-loss-when-servers-are-brought-online and then here: http://linux-ip.net/html/ether-arp.html – staticfloat Mar 28 '12 at 05:35