Manual:Interface/Virtual-ethernet: Difference between revisions

From MikroTik Wiki
Jump to navigation Jump to search
 
(12 intermediate revisions by 3 users not shown)
Line 4: Line 4:
To connect your virtual routers to RouterOS host system you either have to assign interface for your guest (possible only on [[Metarouter|MetaROUTER]]) or you can add virtual Ethernet interface that is described in this document.
To connect your virtual routers to RouterOS host system you either have to assign interface for your guest (possible only on [[Metarouter|MetaROUTER]]) or you can add virtual Ethernet interface that is described in this document.


May contain either static or dynamic interface. Static interfaces should be configured here if under <em>/kvm interface</em> (for [[Kvm|KVM]] or <em>/metarouter interface</em> for [[Metarouter|MetaROUTER]]. Dynamic interfaces will be recreated automatically each reboot and will contain new MAC address.
May contain either static or dynamic interface. Static interfaces should be configured in virtual-ethernet menu and then assigned to virtual machine in '''/kvm interface''' (for [[Kvm|KVM]]) or '''/metarouter interface''' (for [[Metarouter|MetaROUTER]]). Dynamic interfaces will be recreated automatically on each reboot and will contain new MAC address.
 
{{Note | Virtual-ethernets will be automatically removed even if configured as static in /kvm interface menu}}


==Requirements==
==Requirements==
 
This menu becomes available:
Menu is only available if KVM package is installed on x86 architecture, or on RouterOS running on selected RouterBOARDS.
*on ''x86'' architeecture you have to have ''kvm'' packge installed
*on ''mipsbe'' architecture RouterBOARDS
*on ''ppc'' architecture RouterBOARDS, except RB333, RB600 and variants.


==Virtual Ethernet creation==
==Virtual Ethernet creation==


'''Menu:''' <em>/interface virtual-ethernet add</em>
'''Menu:''' <em>/interface virtual-ethernet add</em>
{| cellpadding="2"
!width="300px" style="background:#cccccc; border-bottom:1px solid gray;"| Property
!width="450px" style="background:#cccccc; border-bottom:1px solid gray;"| Desciption
|-
|style="border-bottom:1px solid gray;" valign="top"|'''arp''' (<em>disabled | enabled | proxy-arp | reply-only, default: ''enabled''</em>)
|style="border-bottom:1px solid gray;" valign="top"| ARP protocol resolution mode:
*''disabled'' - interface is not replying to ARP requests
*''enabled'' - interface is replaying to all ARP requests on its MAC address
*''proxy-arp'' - interface is replying to all ARP requests even if it is not interface MAC address
*''reply-only - interface replies only to known (static entries in ARP table) sources
|-
|style="border-bottom:1px solid gray;" valign="top"|'''comment''' (<em>text</em>)
|style="border-bottom:1px solid gray;" valign="top"|Short description of the item
|-
|style="border-bottom:1px solid gray;" valign="top"|'''copy-from'''  (<em>number</em>)
|style="border-bottom:1px solid gray;" valign="top"|Item number to copy settings from to create new item
|-
|style="border-bottom:1px solid gray;" valign="top"|'''disabled''' (<em>yes | no default:&nbsp;yes</em>)
|style="border-bottom:1px solid gray;" valign="top"|identifies if entry is part of active coniguration
|-
|style="border-bottom:1px solid gray;" valign="top"|'''mac-address''' (<em>MAC address default:&nbsp;automatically&nbsp;generated</em>)
|style="border-bottom:1px solid gray;" valign="top"|MAC address of interface. If automatically generated, then this pattern will be used ''02:XX:XX:XX:XX:XX''
|-
|style="border-bottom:1px solid gray;" valign="top"|'''mtu''' (<em>0&nbsp;65536 default:&nbsp;1500</em>)
|style="border-bottom:1px solid gray;" valign="top"|maximal transmission unit of the interface
|-
|style="border-bottom:1px solid gray;" valign="top"|'''name''' (<em>text default:&nbsp;tapX or vifX</em>)
|style="border-bottom:1px solid gray;" valign="top"|Interface name where, if auto-generated, X is inreased if previous valid number already exists, starts with 1. tap is on x86 vif is on RouterBOARD platform.
|}


==See Also==
==See Also==
[[Kvm| KVM]]
*[[M:KVM| KVM]]
[[Metarouter|MetaROUTER]]
*[[M:Metarouter|MetaROUTER]]




[[Category:Manual]]
[[Category:Manual|V]]
[[Category:Unfinished]]
[[Category:Virtualization|V]]

Latest revision as of 13:55, 24 November 2011

Version.png

Applies to RouterOS: v4.x

Summary

To connect your virtual routers to RouterOS host system you either have to assign interface for your guest (possible only on MetaROUTER) or you can add virtual Ethernet interface that is described in this document.

May contain either static or dynamic interface. Static interfaces should be configured in virtual-ethernet menu and then assigned to virtual machine in /kvm interface (for KVM) or /metarouter interface (for MetaROUTER). Dynamic interfaces will be recreated automatically on each reboot and will contain new MAC address.

Icon-note.png

Note: Virtual-ethernets will be automatically removed even if configured as static in /kvm interface menu


Requirements

This menu becomes available:

  • on x86 architeecture you have to have kvm packge installed
  • on mipsbe architecture RouterBOARDS
  • on ppc architecture RouterBOARDS, except RB333, RB600 and variants.

Virtual Ethernet creation

Menu: /interface virtual-ethernet add


Property Desciption
arp (disabled | enabled | proxy-arp | reply-only, default: enabled) ARP protocol resolution mode:
  • disabled - interface is not replying to ARP requests
  • enabled - interface is replaying to all ARP requests on its MAC address
  • proxy-arp - interface is replying to all ARP requests even if it is not interface MAC address
  • reply-only - interface replies only to known (static entries in ARP table) sources
comment (text) Short description of the item
copy-from (number) Item number to copy settings from to create new item
disabled (yes | no default: yes) identifies if entry is part of active coniguration
mac-address (MAC address default: automatically generated) MAC address of interface. If automatically generated, then this pattern will be used 02:XX:XX:XX:XX:XX
mtu (0 65536 default: 1500) maximal transmission unit of the interface
name (text default: tapX or vifX) Interface name where, if auto-generated, X is inreased if previous valid number already exists, starts with 1. tap is on x86 vif is on RouterBOARD platform.

See Also