Community discussions

MikroTik App
 
tirkitneth
newbie
Topic Author
Posts: 31
Joined: Wed Nov 06, 2013 9:17 pm

Issues with traffic generator and VLANs

Tue Sep 06, 2016 5:17 pm

Hello,

I am trying to send traffic from "1 interface no vlan" to "1 interface multiple vlans" using a RB1100AHx2 6.36.3 and it only works for one VLAN.

TG router has the following config:
/interface vlan
add interface=ether6 name=ether6.10 vlan-id=10
add interface=ether6 name=ether6.11 vlan-id=11
add interface=ether6 name=ether6.12 vlan-id=12
add interface=ether6 name=ether6.13 vlan-id=13
/ip address
add address=10.0.0.2/24 interface=ether1 network=10.0.0.0
add address=10.0.10.2/24 interface=ether6.10 network=10.0.10.0
add address=10.0.11.2/24 interface=ether6.11 network=10.0.11.0
add address=10.0.12.2/24 interface=ether6.12 network=10.0.12.0
add address=10.0.13.2/24 interface=ether6.13 network=10.0.13.0
Tested router has the matching config:
interface GigabitEthernet0/0
 ip address 10.0.0.1 255.255.255.0
 duplex auto
 speed auto
 media-type rj45
!
interface GigabitEthernet0/1
 no ip address
 duplex auto
 speed auto
 media-type rj45
!
interface GigabitEthernet0/1.10
 encapsulation dot1Q 10
 ip address 10.0.10.1 255.255.255.0
!
interface GigabitEthernet0/1.11
 encapsulation dot1Q 11
 ip address 10.0.11.1 255.255.255.0
!         
interface GigabitEthernet0/1.12
 encapsulation dot1Q 12
 ip address 10.0.12.1 255.255.255.0
!
interface GigabitEthernet0/1.13
 encapsulation dot1Q 13
 ip address 10.0.13.1 255.255.255.0
TG packet-templates are very simple:
/tool traffic-generator packet-template
add ip-dst=10.0.10.2 ip-gateway=10.0.0.1 ip-src=10.0.0.2 name=pt0
add ip-dst=10.0.11.2 ip-gateway=10.0.0.1 ip-src=10.0.0.2 name=pt1
add ip-dst=10.0.12.2 ip-gateway=10.0.0.1 ip-src=10.0.0.2 name=pt2
add ip-dst=10.0.13.2 ip-gateway=10.0.0.1 ip-src=10.0.0.2 name=pt3
I can ping all IP from their facing interfaces.

I can successfully send/receive packets from 10.0.0.2 to 10.0.10.2:
[admin@RB1100AHx2] > /tool traffic-generator quick tx-template=pt0
SEQ    ID      TX-PACKET   TX-RATE     RX-PACKET   RX-RATE        RX-OOO   RX-BAD-CSUM   LOST-PACKET LOST-RATE LAT-MIN LAT-AVG LAT-MAX JITTER 
1      0              10 121.1kbps            10 121.1kbps                           0             0      0bps 113us   121us   152us   38.9us 
2      0              10 121.1kbps            10 121.1kbps                           0             0      0bps 113us   117us   124us   11.1us 
3      0              10 121.1kbps            10 121.1kbps                           0             0      0bps 112us   119us   147us   34.9us 
4      0              10 121.1kbps            10 121.1kbps                           0             0      0bps 113us   116us   122us   8.78us 
TOT    0              40 121.1kbps            40 121.1kbps                           0             0      0bps 112us   118us   152us   40.2us 
Other VLANs don't work:
[admin@RB1100AHx2] > /tool traffic-generator quick tx-template=pt1
SEQ    ID      TX-PACKET   TX-RATE     RX-PACKET   RX-RATE        RX-OOO   RX-BAD-CSUM   LOST-PACKET LOST-RATE LAT-MIN LAT-AVG LAT-MAX JITTER 
1      0              10 121.1kbps             0      0bps                           0            10 121.1kbps
2      0              10 121.1kbps             0      0bps                           0            10 121.1kbps
3      0              10 121.1kbps             0      0bps                           0            10 121.1kbps
TOT    0              30 121.1kbps             0      0bps                           0            30 121.1kbps

[admin@RB1100AHx2] > /tool traffic-generator quick tx-template=pt2
SEQ    ID      TX-PACKET   TX-RATE     RX-PACKET   RX-RATE        RX-OOO   RX-BAD-CSUM   LOST-PACKET LOST-RATE LAT-MIN LAT-AVG LAT-MAX JITTER 
1      0              10 121.1kbps             0      0bps                           0            10 121.1kbps
2      0              10 121.1kbps             0      0bps                           0            10 121.1kbps
TOT    0              20 121.1kbps             0      0bps                           0            20 121.1kbps
Using sniffer tool, I see the packets coming on the VLAN interfaces of the TG router, so the packets are forwarded.

What am I missing here ?

Who is online

Users browsing this forum: No registered users and 48 guests