Skip to content

How to create macvtap network for InfraSIM

sharkconi edited this page Sep 18, 2016 · 3 revisions

Create macvtap network device

 ip link add link < physical network device > name < macvtap network device > type macvtap mode bridge
 ip link set < macvtap network device > address < mac_address > up
 ifconfig < macvtap network device > promisc

Delete macvtap network device

 ip link set < macvtap network device > down
 ip link delete < macvtap network device >

For Example

  1. Create macvtap network device

      ip link add link ens33 name macvtap0 type macvtap mode bridge
      ip link set macvtap0 address 52:53:54:55:56:57 up
      ifconfig macvtap0 promisc
    
  2. Delete macvtap network device

      ip link set macvtap0 down
      ip link delete macvtap0