By jim, 3 months ago
macvlan is used to give a second MAC address to a network adapter and see it as a new device at the higher levels. It is useful to pretend you are multiple machines, as the container people do, or in my case, to implement your own TCP stack without interference from the kernel IP code.

My ugly scars thus far:
  • There is nearly no documentation.
  • What there is, is inaccurate.
  • Just because your iproute ip command doesn't have any help or documentation for "link add", doesn't mean it won't work. Lenny's will.
  • You create a new interface thusly (note eth0, missing in most docs): 
    ip link add link eth0 address 00:19:d1:29:d2:58 macvlan0 type macvlan
  • You can leave out the macvlan0 and it will allocate one.
  • The Debian Lenny kernels do not have macvlan turned on.
  • make-kpkg is broken in Lenny. Badly broken. But if you specify the architecture and revision on the command line and turn off Xen support in your config you can get it to work.
Not macvlan's fault, but if you are working on a user space TCP stack and you are wondering why it seems to be sending RST packets... make sure you aren't accidentally sharing the link with the kernel.

The femtoblogger software is being written by Jim Studt. The content of this page is provided by anonymous individuals. If you believe something on this page is innapropriate contact Jim Studt.

Contribute

login
logout
post
create account (12 seconds)
recent comments

Filter

everything
coding
femtoblogger
language
linux

Search

Browsers

googlebot26.9%
IE 616.6%
yahoobot15.7%
Firefox12.2%
msnbot10.8%
hiding6.4%
Safari6.3%
IE 74.1%
Opera0.6%
Chrome0.2%
jeevesbot0.1%
iPhone0.1%
IE 50.0%
unknown0.0%

Archives

2009January1
2008December2
November4
October5
September1
August1
July2
June3
May3
April4
February1
January4
2007December1
November3
October8
September18