作者: hkcwnet 時間: 2016-10-4 23:13 標題: 新手用 EdgeRouter X Dual Wan 求教
本帖最後由 hkcwnet 於 2016-10-4 23:16 編輯
買左 想用dual wan , set 到 上網 , 但set 吾到
PBR for dual lan
eth0 --->> HGC
eth4 ---->>HKBN
eth1 ------Lan1, 192.168.200.0/24
eth2,3 -----Lan2, 192.168.201.0/24
想 PBR lan1 經 HGC 走, Lan2 經 HKBN 走
[attach]1928287[/attach]
作者: shal 時間: 2016-10-4 23:28
Ubnt wiki 幫到你
https://help.ubnt.com/hc/en-us/a ... urce-address-based-
呢個正正是你要的方案
作者: hkcwnet 時間: 2016-10-5 01:20
http://community.ubnt.com/t5/EdgeMAX/Ubnt-Edge-Router-Pro-Need-help-with-setup/m-p/768646#M26435
作者: hkcwnet 時間: 2016-10-10 12:59
回覆 2# shal
用左呢個方法
show load-balance
group HGC {
interface eth0 {
route-test {
type {
ping {
target 8.8.8.8
}
}
}
}
interface eth4 {
failover-only
route-test {
type {
ping {
target 8.8.8.8
}
}
}
}
}
group HKBN {
interface eth0 {
failover-only
}
interface eth4 {
route-test {
type {
ping {
target 8.8.8.8
}
}
}
}
}
show firewall modify
modify HGC_POLICY {
rule 20 {
destination {
group {
network-group PRIVATE_NETS
}
}
modify {
table main
}
}
rule 40 {
destination {
group {
address-group ADDRv4_eth0
}
}
modify {
table main
}
}
rule 60 {
destination {
group {
address-group ADDRv4_eth4
}
}
modify {
table main
}
}
rule 70 {
action modify
modify {
lb-group HGC
}
}
}
modify HKBN_POLICY {
rule 20 {
destination {
group {
network-group PRIVATE_NETS
}
}
modify {
table main
}
}
rule 40 {
destination {
group {
address-group ADDRv4_eth0
}
}
modify {
table main
}
}
rule 60 {
destination {
group {
address-group ADDRv4_eth4
}
}
modify {
table main
}
}
rule 70 {
action modify
modify {
lb-group HKBN
}
}
}
作者: shal 時間: 2016-10-10 13:04
本帖最後由 shal 於 2016-10-10 13:12 編輯
load-balance 祝你好運
好多要login 的網都會有不同問提~
作者: Hippo 時間: 2016-10-10 13:08
IP based load balancing 應該可以解決 log in 問題, 不過唔知呢隻 router 有冇
via HKEPC Reader for Android
作者: shal 時間: 2016-10-10 13:12
用
proto > static > table > rule > route > 0.0.0.0/0 > 112.248.x.x
or
proto > static > table > rule > interdace-route > 0.0.0.0/0 > ethX
之後
firewall modify xxx_pbr rule action modify
firewall modify xxx_pbr rule source 192.168.x.0/24
firewall modify xxx_pbr rule modify table rule
作者: shal 時間: 2016-10-10 13:13
IP based load balancing 應該可以解決 log in 問題, 不過唔知呢隻 router 有冇
via HKEPC Reade ...
Hippo 發表於 2016-10-10 13:08
有得解決但煩到爆
作者: Hippo 時間: 2016-10-10 16:03
就算 IP based 解決到, 都應該會冇左 H/W NAT

