This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: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 ]; |