9.26.2009
Via text Mode.. :D
minimal interface ada dua buah...
[CODE]
[edo@cimanggis]> [B]interface pr [/B]
Flags: X - disabled, D - dynamic, R - running
# NAME TYPE RX-RATE TX-RATE MTU
0 R local ether 0 0 1500
1 R public ether 0 0 1500
[/CODE]
[CODE]
setting IP address...
[edo@cimanggis]> [B]ip address add 192.168.0.254 netmask=255.255.255.0 interface=local[/B]
[edo@cimanggis] ip address pr
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.0.254/24 192.168.0.0 192.168.0.255 local
[/CODE]
Untuk Interface ke-2 yaitu interface public, caranya sama dengan diatas, sehingga jika dilihat lagi akan menjadi 2 interface
[CODE]
[edo@cimanggis] [B]ip address pr[/B]
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.0.254/24 192.168.0.0 192.168.0.255 local
1 10.10.10.1/29 10.10.10.0 10.10.10.7 public
[/CODE]
settting gateway.
[CODE]
[B]ip route add gateway= 10.10.10.x(dari ISP)[/B]
[/CODE]
meneruskan dari interface local ke public supaya network 192.168.0.254/24 ke 10.10.10.1 bisa terkoneksi dengan internet.
[CODE]
[edo@cimanggis] > [B]/ip firewall nat add chain=srcnat action=masquerade out-interface=public[/B]
[/CODE]
Setting dns.
[CODE]
[edo@cimanggis] > ip dns set primary-dns= (IP dari ISP)
[edo@cimanggis] > ip dns set secondary-dns= (IP dari ISP)
[/CODE]
Pengecekan, Ping ke gateway. jika berhasil. success.
jika gagal, perhatikan firewall'a..
:)
di lanjud ..
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment