Mikrotik-Vlan.pdf

(36 KB) Pobierz
91714145 UNPDF
VLAN
Document revision 1.2 (Mon Sep 19 13:46:34 GMT 2005)
This document applies to V2.9
Table of Contents
Table of Contents
General Information
Summary
Specifications
Related Documents
Description
Additional Documents
VLAN Setup
Property Description
Notes
Example
Application Example
VLAN example on MikroTik Routers
General Information
Summary
!" # $ % &
' $ ( '&' )% ''
% # *+, & ( $ - #.( /& %
( /' 0 / 1 )/( / % % $
' ' ' $ / % $ %% /
' / ( // % ' $ // $
/ % / &' ' ' % $ $ '%
' ' /
Specifications
Packages required: system
License required: level1 (limited to 1 vlan), level3
Home menu level: /interface vlan
Standards and Technologies: VLAN (IEEE 802.1Q)
Hardware usage: Not significant
Related Documents
"$ 2 ' '
#2 // / 2
Page 1 of 5
Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.
91714145.002.png
Description
% $% ' ' $ ' % ' $(
% ' 3 ' $ '$/ ' 3
1/ & $( 4$ & ) ( $
''/ / $ % )'
5 !" 6 $ 0 #!" / 17 $
/ /
$ !"# % ( ) / 8 % $ $ %
/ % ' 9 )/' 6 !" )/' % /
forward-protocols ip ( arp / other : )/' / ) ' '7
5 & $ / ' $
6( / & // /
0 // / / 7( )/'' & )/''
$ # $/( $ $ % $
( ) & $ / )/'/ $ %
Currently supported Ethernet interfaces
$ $ $ / / $/ ' ) %
( ) % 8 $ /
;+
# 2!<
# 2! & /
"/ .2;= )/ / 6 >!. )/ 9( >!. *
/7
"/ .2;, 6" )/ 97
# =, )/ / 6 >!. ** /7
# =,
# = 6# 92# )/ 97
$ $ $ / / $/( ) WITHOUT LARGE
PACKET (>1496 bytes) SUPPORT ?
;0 ;,+1 20#
.90 * 6 7
Additional Documents
?<<$$$ / $ < <0"*,@ < < /<8 )8 << '
Page 2 of 5
Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.
 
?<<$$$ < &/<</</< / < $ < <$<<;</)/'A1/*,;;
?<<$$$ <$ < )<*@;<@A '''
?<<$$$ <$ < )<,;<@
?<<$$$$ <$ <<<;,
?<<$$$<$<&%< </B) %<B)<& B
VLAN Setup
Home menu level: /interface vlan
Property Description
arp ( disabled | enabled | proxy-arp | reply-only ; default: enabled ) - Address Resolution Protocol
setting
disabled - the interface will not use ARP protocol
enabled - the interface will use ARP protocol
proxy-arp - the interface will be an ARP proxy
reply-only - the interface will only reply to the requests originated to its own IP addresses, but
neighbor MAC addresses will be gathered from /ip arp statically set table only
interface ( name ) - physical interface to the network where are VLANs
mtu ( integer ; default: 1500 ) - Maximum Transmission Unit
name ( name ) - interface name for reference
vlan-id ( integer ; default: 1 ) - Virtual LAN identifier or tag that is used to distinguish VLANs. Must
be equal for all computers in one VLAN.
Notes
C / ) , )% 9 > % $ $ 9 /
/ &'<' D 9 $ / /// 6, )%
/ E * )% / E * )% 9 /7 # C *+= ) /( )
$ ' ' & ) &
) C *+= % ) C /&% $' % )$
/ /
Example
// / ) / test $ vlan-id F ether1 ?
[admin@MikroTik] interface vlan> add name=test vlan-id=1 interface=ether1
[admin@MikroTik] interface vlan> print
Flags: X - disabled, R - running
# NAME
MTU ARP
VLAN-ID INTERFACE
0 X test
1500 enabled 1
ether1
[admin@MikroTik] interface vlan> enable 0
[admin@MikroTik] interface vlan> print
Flags: X - disabled, R - running
# NAME
MTU ARP
VLAN-ID INTERFACE
0 R test
1500 enabled 1
ether1
Page 3 of 5
Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.
91714145.003.png
[admin@MikroTik] interface vlan>
Application Example
VLAN example on MikroTik Routers
$ & $ !" / $ ) #
% $( $ ) /
ether1 6 // % 1
( ! 7
' % ) / %% / - #2 // / )
'/ % / ' / )
/?
[admin@MikroTik] interface vlan> add name=test vlan-id=32 interface=ether1
[admin@MikroTik] interface vlan> print
Flags: X - disabled, R - running
# NAME MTU ARP VLAN-ID INTERFACE
0 R test 1500 enabled 32 ether1
[admin@MikroTik] interface vlan>
# $ % /( ) $ ) running # /
% 6 ' $ /& / $/ 7( )
$ ) running
3 '( #2 // ) '/
! ?
[admin@MikroTik] ip address> add address=10.10.10.1/24 interface=test
[admin@MikroTik] ip address> print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 10.0.0.204/24 10.0.0.0 10.0.0.255 ether1
1 10.20.0.1/24 10.20.0.0 10.20.0.255 pc1
2 10.10.10.1/24 10.10.10.0 10.10.10.255 test
[admin@MikroTik] ip address>
! ?
[admin@MikroTik] ip address> add address=10.10.10.2/24 interface=test
[admin@MikroTik] ip address> print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 10.0.0.201/24 10.0.0.0 10.0.0.255 ether1
1 10.10.10.2/24 10.10.10.0 10.10.10.255 test
[admin@MikroTik] ip address>
# %( ) ' / & &?
[admin@MikroTik] ip address> /ping 10.10.10.1
10.10.10.1 64 byte pong: ttl=255 time=3 ms
10.10.10.1 64 byte pong: ttl=255 time=4 ms
10.10.10.1 64 byte pong: ttl=255 time=10 ms
10.10.10.1 64 byte pong: ttl=255 time=5 ms
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 3/10.5/10 ms
[admin@MikroTik] ip address> /ping 10.10.10.2
10.10.10.2 64 byte pong: ttl=255 time=10 ms
10.10.10.2 64 byte pong: ttl=255 time=11 ms
10.10.10.2 64 byte pong: ttl=255 time=10 ms
10.10.10.2 64 byte pong: ttl=255 time=13 ms
Page 4 of 5
Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.
91714145.004.png
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 10/11/13 ms
[admin@MikroTik] ip address>
Page 5 of 5
Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.
91714145.001.png
Zgłoś jeśli naruszono regulamin