Community discussions

MikroTik App
 
kintho
newbie
Topic Author
Posts: 29
Joined: Mon Nov 24, 2014 11:05 pm

New to MikroTik: understanding a simple exported config

Thu Dec 11, 2014 8:43 pm

Hi all,
I'm playing with a new RB915G-2HnD RouterBoard (RouterOS 6.23).
I've set a dual wan configuration (on ether1 and wlan1) with a DHCP Server on ether5 with a basic firewall configuration.
I've exported the configuration and I started to study the commend line.

This is the part I do not understand:
/interface ethernet
set [ find default-name=ether1 ] comment=WAN1
set [ find default-name=ether5 ] comment=LAN
/ip neighbor discovery
set ether1 comment=WAN1
set ether5 comment=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
add authentication-types=wpa-psk,wpa2-psk eap-methods="" management-protection=allowed mode=dynamic-keys name=Wireless1 supplicant-identity="" wpa-pre-shared-key=c7f2b2a312 wpa2-pre-shared-key=c7f4f2b2a312
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n comment=WAN2 country=italy disabled=no frequency=2437 l2mtu=1600 security-profile=Wireless1 ssid=AndroidHotspot2296 wireless-protocol=802.11
/ip neighbor discovery
set wlan1 comment=WAN2
/interface wireless manual-tx-power-table
set wlan1 comment=WAN2
/interface wireless nstreme
set wlan1 comment=WAN2
1. What is the command [ find default-name=ether1 ] or [ find default=yes ] and why they are used?

2. Why I have multiple command lines to comment ether1, ether5 and wlan1?

Thank you.
 
coylh
Member Candidate
Member Candidate
Posts: 159
Joined: Tue Jul 12, 2011 12:11 am

Re: New to MikroTik: understanding a simple exported config

Fri Dec 12, 2014 10:09 am

1. It's a way of referencing an interface. In other words, "find the interface that was originally called blah, and assign a comment to it."

2. The second set of comments apply to neighbor discovery rules. You could remove the comments.
 
kintho
newbie
Topic Author
Posts: 29
Joined: Mon Nov 24, 2014 11:05 pm

Re: New to MikroTik: understanding a simple exported config

Sun Dec 14, 2014 10:40 pm

Thank you.