On Tue, Nov 27, 2007 at 09:04:04AM +0700, A. Yahya wrote:
> >
> Mungkin harus dibedakan, antara route ke Internet dengan ke intranet.
> Untuk intranet, pakai 10.216.145.65.
> route add -net 10.216.145.0 netmask 255.255.255.0 gw 10.216.145.65
> 
> Yaya
>
terima kasih mas Yaya, kok jadi bisa ya aku coba route add diatas, jadi script 
di /etc/ppp/ip-up.local sbb :
#!/bin/bash
ROUTE=/sbin/route
$ROUTE add -net 10.216.145.0/24 gw 10.216.145.65 
$ROUTE del default
$ROUTE add default dev ppp0

saat koneksi ke internet route -n nya :
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
61.94.146.3     0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
10.216.145.64   0.0.0.0         255.255.255.192 U     0      0        0 eth0
10.216.145.0    10.216.145.65   255.255.255.0   UG    0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0

sedang script di /etc/ppp/ip-down.local sbb :
#!/bin/bash
ROUTE=/sbin/route
$ROUTE del -net 10.216.145.0/24 gw 10.216.145.65
$ROUTE add default gw 10.216.145.65

dan route -n setelah tidak ada koneksi ke internet :
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.216.145.64   *               255.255.255.192 U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     1000   0        0 eth0
default         10.216.145.65   0.0.0.0         UG    0      0        0 eth0

yang masih jadi pertanyaan, network disini kan 10.216.145.64/26, kenapa saat 
aku kasih route add -net 10.216.145.64/26 gw 10.216.145.65 di 
/etc/ppp/ip-up.local, pc aku 10.216.145.66 ga bisa ngeping ke 10.216.145.68 ? 
mohon pencerahannya atau referensi, tampaknya harus belajar lagi ni soal ip :)
terima kasih sebelum dan sesudahnya.

salam,
Popo
 


This e-mail message may contain legally privileged and/or confidential 
information. If you are not the intended recipient(s), or the employee or agent 
responsible for delivery of this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution or copying of this e-mail 
message is strictly prohibited. If you have received this message in error, 
please immediately notify the sender and delete this e-mail message from your 
computer.

-- 
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [EMAIL PROTECTED]
Arsip dan info milis selengkapnya di http://linux.or.id/milis

Kirim email ke