Translate

OSPF Network Summarization over PPTP Tunnel & EoIP Tunnel

OSPF Network Summarization over PPTP Tunnel & EoIP Tunnel
Objective:

  1. Membuat Tunnel PPTP antara 2 ISP
  2. Membuat Layer-2 Connection Antara 2 CPE
  3. Distribusi IP Ke CPE Menggunakan /32 Dengan PPPoE
  4. Routing Pada PPTP Menggunakan OSPF Yang Networknya Di Summarization

Goal:
  1. Antar ISP Bisa PING
  2. Antar CPE Bisa PING Tapi Tidak Bisa PING Ke ISP
  3. Antar Client Bisa PING Tapi Tidak Bisa PING Ke ISP

1. INTERNET
/ip address
add address=1.1.1.1/30 interface=ether1 network=1.1.1.0
add address=2.2.2.1/30 interface=ether2 network=2.2.2.0

2. ISP-1
/ppp profile
add local-address=172.16.1.1 name=pptp-profile remote-address=172.16.1.10
add address-list=no local-address=10.10.10.1 name=pppoe remote-address=10.10.10.10
/interface pppoe-server server
add default-profile=pppoe disabled=no interface=ether2
/interface pptp-server server
set default-profile=pptp-profile enabled=yes
/ip address
add address=1.1.1.2/30 interface=ether1 network=1.1.1.0
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
add action=masquerade chain=srcnat out-interface=ether1
/ip route
add distance=1 gateway=1.1.1.1
/ppp secret
add name=pptp password=pptp profile=pptp-profile service=pptp
add name=ppp@isp1.net password=pppoe service=pppoe
/routing ospf network
add area=backbone network=172.16.1.0/28
add area=backbone network=10.10.10.0/28

3. ISP-2
/interface pptp-client
add add-default-route=yes connect-to=1.1.1.2 default-route-distance=1 disabled=no name=pptp-out1 password=\
    pptp user=pptp
/ppp profile
add local-address=20.20.20.1 name=pppoe remote-address=20.20.20.10
/interface pppoe-server server
add default-profile=pppoe disabled=no interface=ether2
/ip address
add address=2.2.2.2/30 interface=ether1 network=2.2.2.0
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
add action=masquerade chain=srcnat out-interface=ether1
/ip route
add distance=1 gateway=2.2.2.1
/ppp secret
add name=ppp@isp2.net password=pppoe
/routing ospf network
add area=backbone network=172.16.1.0/28
add area=backbone network=20.20.20.0/28

4. CPE-1
/interface bridge
add name=eoip-bridge
/interface pppoe-client
add add-default-route=yes default-route-distance=1 disabled=no interface=ether1 name=pppoe-out1 password=\
    pppoe use-peer-dns=yes user=ppp@isp1.net
/interface eoip
add name=eoip1 remote-address=20.20.20.10 tunnel-id=100
/interface bridge port
add bridge=eoip-bridge interface=eoip1
add bridge=eoip-bridge interface=ether2

5. CPE-2
/interface bridge
add name=eoip-bridge
/interface pppoe-client
add add-default-route=yes default-route-distance=1 disabled=no interface=ether1 name=pppoe-out1 password=\
    pppoe use-peer-dns=yes user=ppp@isp2.net
/interface eoip
add name=eoip1 remote-address=10.10.10.10 tunnel-id=100
/interface bridge port
add bridge=eoip-bridge interface=eoip1
add bridge=eoip-bridge interface=ether2

6. Client
Client-1 = 192.168.1.10/24
Client-2 = 192.168.1.20/24

0 Comment:

Post a Comment