Welcome Guest | RSS

My Menu

Calendar
«  Augustus 2010  »
SuMoTuWeThFrSa
1234567
891011121314
15161718192021
22232425262728
293031

CATEGORY

Recent News

Iklan

Main » 2010 » Augustus » 15 » Konfigurasi Gateway di Router Vyatta
04.04
Konfigurasi Gateway di Router Vyatta


Ok dah langsung aja setelah install vyatta qta lanjutkan ke bagian konfigurasi nya. di sini vyatta ane fungsikan sebagai Router Gateway .

Eth0 = 192.168.165.2
eth1 = 192.168.1.1
ip Modem = 192.168.165.1

OK setelah qta login di vyatta akan ada Mode operasional digunakan untuk melihat status sistem sedangkan mode konfigurasi untuk melakukan konfigurasi terhadap sistem. Untuk memasuki mode konfigurasi di vyatta dengan mengetikkan :
Code:
vyatta@vyatta> configure

Pertama kita seting dahulu interfacenya:
Pertama Konfigurasi interface Wan
Code:
vyatta@vyatta# set interfaces ethernet eth0 address 192.168.165.2/24
yatta@vyatta# set interfaces ethernet eth0 description WAN
kemudian, kita konfigurasikan interface yang ke arah WAN:
Code:
vyatta@vyatta# set interfaces ethernet eth1 address 192.168.1.1/24
vyatta@vyatta# set interfaces ethernet eth1 description LAN
setelah itu seting gateway dan name server nya:
Code:
vyatta@vyatta# set system gateway-address 192.168.165.1
vyatta@vyatta# set system name-server 192.168.165.1
disini ane gunain statik route :
Code:
vyatta@vyatta# set protocols static route 0.0.0.0/0 next-hop 192.168.165.1
lalu kita setting natnya untuk network eth1 agar bisa access ke internet:
Code:
vyatta@vyatta# set service nat rule 1
vyatta@vyatta# set service nat rule 1 source
vyatta@vyatta# set service nat rule 1 type masquerade
vyatta@vyatta# set service nat rule 1 outbound-interface eth0
vyatta@vyatta# set service nat rule 1 protocol all
vyatta@vyatta# set service nat rule 1 source address 192.168.1.0/24
vyatta@vyatta# set service nat rule 1 destination address 0.0.0.0/0
setelah itu seting dhcp untuk network 192.168.1.0:
Code:
vyatta@vyatta# set service dhcp-server shared-network-name LAN subnet 192.168.1.0/24 start 192.168.1.10 stop 150
vyatta@vyatta# set service dhcp-server shared-network-name LAN subnet 192.168.1.0/24 default-router 192.168.165.1
vyatta@vyatta# set service dhcp-server shared-network-name LAN subnet 192.168.1.0/24 dns-server 192.168.165.1
vyatta@vyatta# set service dhcp-server shared-network-name LAN subnet 192.168.1.0/24 lease 14400
terakhir setting telnet, ssh, dan https:
Code:
vyatta@vyatta# set service telnet
vyatta@vyatta# set service ssh
vyatta@vyatta# set service https
Tinggal commit and save dah semua konf
Code:
vyatta@vyatta# commit
vyatta@vyatta# save
sampe sini ane dah bisa ping ke internet coba ke facebook dan google ok.

Category: Networking | Views: 1238 | Added by: Ardi | Rating: 0.0/0
Total comments: 0
Name *:
Email *:
Code *:
  SHAREIT   Main   Registration   Login  
search

Entries archive

MY Link
Paid2YouTube.com
Adsense Indonesia
Review shareit.ucoz.net on alexa.com

ilkan

WIDGET

Site friends
  • M. Danu Wiyoto
  • Hacker Cisadane


  • Copyright MyCorp © 2024 Free web hostinguCoz