Mikrotik EOIP in Unetlab

SOURCE: http://computechtips.com/534/mikrotik-eoip-tunnel-in-action

26-Feb 10.57.42.jpg

Image.png
NOTE:
-I am using Mikrotik as PC, just to proof that ping between subnet is successful
-Unetlab will be my main testing environment from now on

[admin@PC1] > export
# feb/24/2016 15:35:38 by RouterOS 6.34.2
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip address
add address=12.12.12.2/24 interface=ether1 network=12.12.12.0
/ip dns set servers=8.8.8.8,8.8.4.4
/ip route add distance=1 gateway=12.12.12.1
/system identity
set name=PC1
/tool romon
set enabled=yes

[admin@R1] > export
/interface ethernet
set [ find default-name=ether1 ] mtu=9000
/interface eoip
add !keepalive mac-address=FE:CC:3F:2B:A6:6E mtu=9000 name=eoip1 remote-address=\
10.0.10.143 tunnel-id=10
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip address
add address=12.12.12.1/24 interface=ether2 network=12.12.12.0
add address=10.0.10.142/24 interface=ether1 network=10.0.10.0
add address=23.23.23.1/30 interface=eoip1 network=23.23.23.0
/ip dns
set servers=8.8.8.8,8.8.4.4
/ip route
add distance=1 gateway=10.0.10.1
add distance=1 dst-address=34.34.34.0/24 gateway=23.23.23.2
/system identity
set name=R1
/tool romon
set enabled=yes

[admin@R2] > export
# feb/24/2016 15:33:51 by RouterOS 6.34.2
/interface ethernet
set [ find default-name=ether1 ] mtu=9000
/interface eoip
add !keepalive mac-address=FE:C1:E4:9A:A8:94 mtu=9000 name=eoip1 \
remote-address=10.0.10.142 tunnel-id=10
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip address
add address=10.0.10.143/24 interface=ether1 network=10.0.10.0
add address=23.23.23.2/30 interface=eoip1 network=23.23.23.0
add address=34.34.34.1/24 interface=ether2 network=34.34.34.0
/ip dns
set servers=8.8.8.8,8.8.4.4
/ip route
add distance=1 gateway=10.0.10.1
add distance=1 dst-address=12.12.12.0/24 gateway=23.23.23.1
/system identity
set name=R2
/tool romon
set enabled=yes

[admin@PC2] > export
# feb/24/2016 15:35:03 by RouterOS 6.34.2
/interface wireless security-profiles set [ find default=yes ] supplicant-identity=MikroTik
/ip address
add address=34.34.34.2/24 interface=ether1 network=34.34.34.0
/ip dns set servers=8.8.8.8,8.8.4.4
/ip route add distance=1 gateway=34.34.34.1
/system identity set name=PC2
/tool romon set enabled=yes

26-Feb 11.10.37.jpg

26-Feb 07.36.45.jpg

PC1
[admin@PC1] > export
# feb/25/2016 10:10:24 by RouterOS 6.34.2
# software id =
#
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip address
add address=12.12.12.2/24 interface=ether1 network=12.12.12.0
/ip dns
set servers=8.8.8.8,8.8.4.4
/ip route
add distance=1 gateway=12.12.12.1
/system identity
set name=PC1
/tool romon
set enabled=yes

R1
[admin@R1] > export
# feb/25/2016 09:55:48 by RouterOS 6.34.2
# software id =
#
/interface bridge
add name=bridge1
/interface eoip
add allow-fast-path=no !keepalive mac-address=02:B5:23:BE:B8:85 name=eoip1 \
remote-address=10.0.10.143 tunnel-id=10
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/interface bridge port
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=eoip1
/ip address
add address=10.0.10.142/24 interface=ether1 network=10.0.10.0
add address=12.12.12.1/24 interface=ether2 network=12.12.12.0
/ip dns set servers=8.8.8.8,8.8.4.4
/ip route
add distance=1 gateway=10.0.10.1
/system identity
set name=R1
/tool romon
set enabled=yes

R2
[admin@R2] > export
# feb/25/2016 09:56:33 by RouterOS 6.34.2
# software id =
#
/interface bridge
add name=bridge1
/interface ethernet
set [ find default-name=ether1 ] mtu=9000
/interface eoip
add allow-fast-path=no !keepalive mac-address=02:1B:33:BC:55:77 name=eoip1 \
remote-address=10.0.10.142 tunnel-id=10
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/interface bridge port
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=eoip1
/ip address
add address=10.0.10.143/24 interface=ether1 network=10.0.10.0
add address=12.12.12.128/24 interface=ether2 network=12.12.12.0
/ip dns set servers=8.8.8.8,8.8.4.4
/ip route
add distance=1 gateway=10.0.10.1
/system identity
set name=R2
/tool romon
set enabled=yes

PC2
[admin@PC2] > export
# feb/24/2016 15:35:38 by RouterOS 6.34.2
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip address
add address=12.12.12.129/24 interface=ether1 network=12.12.12.0
/ip dns set servers=8.8.8.8,8.8.4.4
/ip route add distance=1 gateway=12.12.12.128
/system identity
set name=PC2
/tool romon
set enabled=yes

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s