Konfigurasi wvdial
masuk sebagai root
[userdrake@migration-team ~]$ su -
[root@migration-team ~]#
jalankan wvdialconf
[root@migration-team ~]# wvdialconf /etc/wvdial.conf
Scanning your serial ports for a modem.
ttyS1<*1>: ATQ0 V1 E1 — OK
ttyS1<*1>: ATQ0 V1 E1 Z — OK
ttyS1<*1>: ATQ0 V1 E1 S0=0 — OK
ttyS1<*1>: ATQ0 V1 E1 S0=0 &C1 — OK
ttyS1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyS1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 — OK
ttyS1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0 — OK
ttyS1<*1>: Modem Identifier: ATI — 28800
ttyS1<*1>: Speed 2400: AT — OK
ttyS1<*1>: Speed 4800: AT — OK
ttyS1<*1>: Speed 9600: AT — OK
ttyS1<*1>: Speed 19200: AT — OK
ttyS1<*1>: Speed 38400: AT — OK
ttyS1<*1>: Speed 57600: AT — OK
ttyS1<*1>: Speed 115200: AT — OK
ttyS1<*1>: Max speed is 115200; that should be safe.
ttyS1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0 — OK
ttyS0<*1>: ATQ0 V1 E1 — ATQ0 V1 E1 — ATQ0 V1 E1 — nothing.
Port Scan<*1>: S2 S3
Found a modem on /dev/ttyS1.
Lakukan konfigurasi wvdial.conf
[Dialer Defaults]
Modem = /dev/ttyS1
Baud = 115200
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0
Phone = 080989999
Username = telkomnet@instan
Password = telkom
jalankan wvdial
[userdrake@migration-team ~]# wvdial
setelah komputer terkoneksi biasanya komputer nya akan mendapatkan DNS di /etc/resolve.conf dan routing gateway telkom itu artinya komputer anda sudah bisa browsing,
Untuk menshare ada beberpa tahapan konfigurasi lagi.
Aktifkan forward ipv4
[userdrake@migration-team ~]# vi /etc/sysctl.conf
ipv4_forward = 1 ( aktif , default=0 )
agar network local dapat melakukan routing ke ppp0 ( disini kunci agar jaringan komputer kita dapat sharing internet
[userdrake@migration-team ~]# iptables -t nat -A POSTROUTING -s 10.60.254.0/24 -o ppp0 -j MASQUERADE
0 komentar:
Posting Komentar