Monday, August 3, 2009

Setting AP dengan Hotspot, Tanpa Melalui Jaringan Hotspot

ini Topologi jaringan saya

server(192.168.200.2/27)===>RBxxx wlan AP1 (192.168.200.1/27)===>AP2 RBxxx (192.168.200.30/27)===> client(laptop)192.168.200.3/27


server konek ke Ap1 pake wireless.

client konek ke AP2 pake laptop lwat wireless.


AP 1 RBxxx dgn 1 wireless.

[admin@AP1] > interface print
Flags: D - dynamic, X - disabled, R - running, S - slave
# NAME TYPE MTU L2MTU
0 R ether1 ether 1500 1600
1 ether2 ether 1500 1600
2 ether3 ether 1500 1600
3 R wlan1 wlan 1500 2304


[admin@AP1] > interface wireless print
Flags: X - disabled, R - running

0 R name="wlan1" mtu=1500 mac-address=00:00:00:00:00:00 arp=enabled
ssid="ap1" wds-mode=disabled
wds-default-bridge=none wds-ignore-ssid=no default-authentication=no
default-forwarding=yes default-ap-tx-limit=0 default-client-tx-limit=0
hide-ssid=yes security-profile=default


[admin@AP1] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.0.3/29 192.168.0.0 192.168.0.7 ether1
1 192.168.200.1/27 192.168.200.0 192.168.200.31 wlan1


[admin@AP1]> ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC G GATEWAY DISTANCE INTE...
0 A S 0.0.0.0/0 r 192.168.0.1 1 ether1
1 ADC 192.168.200.0/24 192.168.200.31 0 wlan1
2 ADC 192.168.15.0/29 192.168.15.3 0 ether1



AP 2 RBxxx dgn 2 wireless. wlan1 sebagai station, wlan2 sebagi hotspot dan AP

[admin@AP2] > int print
Flags: D - dynamic, X - disabled, R - running, S - slave
# NAME TYPE MTU L2MTU
0 R ether1 ether 1500 1526
1 ether2 ether 1500 1522
2 ether3 ether 1500 1522
3 R Client wlan 1500 2304
4 R bridge1 bridge 1500 1526
5 AP wlan 1500 2304
6 R Hotspot wlan 1500 2304


[admin@AP2] > interface wireless print
Flags: X - disabled, R - running
0 R name="Client" mtu=1500 mac-address=00:00:00:00:00:00 arp=enabled
interface-type=Atheros AR5212 mode=station ssid="ap1"
frequency=2422 band=2.4ghz-b scan-list=default antenna-mode=ant-a
wds-mode=disabled wds-default-bridge=none wds-ignore-ssid=no
default-authentication=yes default-forwarding=yes default-ap-tx-limit=0
default-client-tx-limit=0 hide-ssid=no security-profile=default
compression=no

1 name="AP" mtu=1500 mac-address=00:00:0:00:00:03 arp=enabled
master-interface=Hotspot ssid="Ap2" wds-mode=disabled
wds-default-bridge=none wds-ignore-ssid=no default-authentication=no
default-forwarding=yes default-ap-tx-limit=0 default-client-tx-limit=0
hide-ssid=yes security-profile=default

2 R name="Hotspot" mtu=1500 mac-address=00:00:00:00:00:00 arp=enabled
interface-type=Atheros AR5413 mode=ap-bridge ssid="Hotspot"
frequency=2417 band=2.4ghz-b scan-list=default antenna-mode=ant-a
wds-mode=disabled wds-default-bridge=none wds-ignore-ssid=no
default-authentication=yes default-forwarding=no default-ap-tx-limit=0
default-client-tx-limit=0 hide-ssid=no security-profile=default
compression=no



[admin@AP2] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 88.88.88.88/27 88.88.88.64 88.88.88.95 bridge1
1 192.168.200.30/27 192.168.200.0 192.168.200.31 Client


[admin@AP2] > interface bridge port print
Flags: X - disabled, I - inactive, D - dynamic
# INTERFACE BRIDGE PRIORITY PATH-COST HORIZON
0 ether1 bridge1 0x80 10 none
1 Hotspot bridge1 0x80 10 none

[admin@AP2] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY-STATE GATEWAY DISTANCE INTERFACE
0 A S 0.0.0.0/0 reachable 192.168..200.1 1 Client
1 ADC 88.88.88.64/27 88.88.88.88 0 bridge1
2 ADC 192.168.200.0/27 192.168.200.30 0 Client



Solusi......


Settingan AP 1

1. Buat interface eoip

[admin@AP1] > interface eoip print
Flags: X - disabled, R - running
0 R name="EoIP" mtu=1500 l2mtu=65535 mac-address=FE:5F:7D:59:0A:3B
arp=enabled remote-address=192.168.200.30 tunnel-id=100

2. Buat Bridge

[admin@AP1] /interface bridge> print
Flags: X - disabled, R - running
0 R name="Bridge1" mtu=1500 l2mtu=2304 arp=enabled
mac-address=FE:5F:7D:59:0A:00 protocol-mode=rstp priority=0x8000
auto-mac=yes admin-mac=00:00:00:00:00:00 max-message-age=20s
forward-delay=15s transmit-hold-count=6 ageing-time=5m

3. Buat Port antara wlan1 dan EoIp yang dibuat tadi

[admin@AP1] /interface bridge> port print
Flags: X - disabled, I - inactive, D - dynamic
# INTERFACE BRIDGE PRIORITY PATH-COST HORIZON
0 wlan1 Bridge1 0x80 10 none
1 EoIP Bridge1 0x80 10 none



Settingan AP 2


[admin@AP2] > interface eoip print
Flags: X - disabled, R - running
0 R name="EoIP1" mtu=1500 l2mtu=65535 mac-address=FE:9C:38E:A0:6E arp=enabled remote-address=192.168.200.1 tunnel-id=100



[admin@AP2] > interface bridge print
Flags: X - disabled, R - running
0 R name="bridge1" mtu=1500 l2mtu=1526 arp=enabled mac-address=00:0C:42:00:63:00 protocol-mode=rstp priority=0x8000
auto-mac=yes admin-mac=00:00:00:00:00:00 max-message-age=20s forward-delay=15s transmit-hold-count=6 ageing-time=5m

1 R name="bridge2" mtu=1500 l2mtu=65535 arp=enabled mac-address=FE:9C:38E:A0:6E protocol-mode=rstp priority=0x8000
auto-mac=yes admin-mac=00:00:00:00:00:00 max-message-age=20s forward-delay=15s transmit-hold-count=6 ageing-time=5m

[admin@AP2] > interface bridge port print
Flags: X - disabled, I - inactive, D - dynamic
# INTERFACE BRIDGE PRIORITY PATH-COST HORIZON
0 ether1 bridge1 0x80 10 none
1 Hotspot bridge1 0x80 10 none
2 EoIP1 bridge2 0x80 10 none
3 wlan1 bridge2 0x80 10 none


tanks...

No comments:

Post a Comment