Dengan demikian misalnya dari 100 PC yang terhubung bisa kita pecah menjadi 2. Misalnya dengan melewatkan koneksi internet ke ISP A untuk 50 PC pertama dan ke ISP B untuk 50 PC terakhir.
A. Buat address list
B. Setup ip interface modem
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.9.19.254/24 192.9.19.0 192.9.19.255 ether2
1 192.9.18.8/24 192.9.18.0 192.9.18.255 ether1
2 192.168.1.2/24 192.168.1.0 192.168.1.255 ether4
C. Buat mangle (connection n route mark)
0 ;;; lalulintas koneksi internet pada network 1
chain=prerouting action=mark-connection new-connection-mark=koneksi_net1
passthrough=yes connection-state=new dst-address-list=!jst networks
in-interface=bridge1
1 ;;; lalulintas koneksi internet pada network 1
chain=prerouting action=mark-connection
new-connection-mark=koneksi_net1_speedy passthrough=yes
connection-state=new src-address-list=speedy
dst-address-list=!jst networks in-interface=bridge1
2 ;;; route ke speedy
chain=prerouting action=mark-routing new-routing-mark=speedy
passthrough=yes in-interface=bridge1 connection-mark=koneksi_net1_speedy
3 ;;; lalulintas koneksi internet pada network 2
chain=prerouting action=mark-connection new-connection-mark=koneksi_net2
passthrough=yes connection-state=new dst-address-list=!jst networks
in-interface=ether2
4 ;;; lalulintas koneksi internet pada network 2
chain=prerouting action=mark-connection
new-connection-mark=koneksi_net2_speedy passthrough=yes
connection-state=new src-address-list=speedy
dst-address-list=!jst networks in-interface=ether2
5 ;;; route ke speedy
chain=prerouting action=mark-routing new-routing-mark=speedy
passthrough=yes in-interface=ether2 connection-mark=koneksi_net2_speedy
D. Buat nat
0 chain=srcnat action=src-nat to-addresses=192.168.1.2
connection-mark=koneksi_net2_speedy
1 chain=srcnat action=src-nat to-addresses=192.168.1.2
connection-mark=koneksi_net1_speedy
E. Buat route baru
# DST-ADDRESS PREF-SRC GATEWAY-STATE GATEWAY DISTANCE INTERFACE
0 A S 0.0.0.0/0 reachable 192.168.1.1 1 ether4
1 A S ;;; added by setup
0.0.0.0/0 reachable 192.9.18.254 1 bridge1
2 ADC 192.9.18.0/24 192.9.18.8 0 bridge1
3 ADC 192.9.19.0/24 192.9.19.254 0 ether2
4 ADC 192.168.1.0/24 192.168.1.2 0 ether4
--
http://sigidwu.blogspot.com
Save a tree. Don't print any documents unless it's necessary.
0 comments:
Poskan Komentar