Skip to content

Instantly share code, notes, and snippets.

# dec/24/2021 09:35:37 by RouterOS 6.49.2
# software id = X724-J0VP
#
# model = RouterBOARD 3011UiAS
/interface bridge
add add-dhcp-option82=yes dhcp-snooping=yes igmp-snooping=yes name=bridgeLAN
/interface ethernet
set [ find default-name=ether1 ] mac-address=00:1C:7F:3A:5E:AA
/interface bonding
add mode=802.3ad name=bondingR3011 slaves=ether6,ether7
Aruba S1500-24P:
Step 1: cáp console UGreen 60813 hoặc 50773
Step 2: Kết nối máy tính với cổng Serial: 9600, 8, 1, None, None.
Step 3: Dùng putty đăng nhập Default User: admin / admin123 . enable / enable
Step 4: congfig t
Step 5: show vlan
interface vlan 1
ip address dhcp-client #lấy IP từ router cấp về cho switch
exit
# Here's the PCC with 4 lines
# My LAN connection is called ether1, with the pppoe connections the default they come up with (pppoe-out1, pppoe-out2, pppoe-out3, pppoe-out4)
/ ip firewall mangle
add chain=input in-interface=pppoe-out1 action=mark-connection new-connection-mark=wan1_conn
add chain=input in-interface=pppoe-out2 action=mark-connection new-connection-mark=wan2_conn
add chain=input in-interface=pppoe-out3 action=mark-connection new-connection-mark=wan3_conn
add chain=input in-interface=pppoe-out4 action=mark-connection new-connection-mark=wan4_conn
add chain=output connection-mark=wan1_conn action=mark-routing new-routing-mark=to_wan1
/interface bridge add name=bridge
/interface bridge port
add bridge=bridge interface=ether3
add bridge=bridge interface=ether4
add bridge=bridge interface=ether5
add bridge=bridge interface=ether6
/interface list
@leolion84
leolion84 / pppoe_gw.txt
Created November 11, 2021 15:07
Script update gateway PPPoE for LB PCC Mikrotik
:local newgw [/ip address get [find interface="pppoe-out1"] network];
:local routegw [/ip route get [find comment="FPT"] gateway ];
:if ($newgw != $routegw) do={
/ip route set [find comment="FPT"] gateway=$newgw;
}
:local routegw [/ip route get [find comment="ROUTE TO WAN1"] gateway ];
:if ($newgw != $routegw) do={
/ip route set [find comment="ROUTE TO WAN1"] gateway=$newgw;
}
:local routegw [/ip route get [find comment="WAN2 FAIL ROUTE TO WAN1"] gateway ];
@leolion84
leolion84 / fshareaccwin10vn2018.txt
Last active June 24, 2018 15:32
fshare 2018 win10.vn
[
{
"domain": ".fshare.vn",
"expirationDate": 1592919328,
"hostOnly": false,
"httpOnly": false,
"name": "_ga",
"path": "/",
"sameSite": "no_restriction",
"secure": false,