migrasi linux part V: setting default gateway

kebetulan kantor pake 2 line network  berbeda.. buat wifi yang direct ke internet (192.168.x.x) dan koneksi umum pake proxy (10.10.x.x | lelet mode on)..

jadi pas ethernet /eth0 dan wifinya nyambung.. ups.. internet ga konek.. so gue cek…

root@fatah-laptop:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     2      0        0 wlan0
10.10.10.0      *               255.255.255.0   U     1      0        0 eth0
link-local      *               255.255.0.0     U     1000   0        0 eth0
default         10.10.10.1      0.0.0.0         UG    0      0        0 eth0

wekz.. salah kamar.. default gatewaynya ke 10.10.10.1, harus nya gateway diarahin ke 192.168.1.1,,

so kita hapus dulu..

route del  default gw 10.10.10.1

up next.. masukin gateway baru..

root@fatah-laptop:~# route add default gw 192.168.1.1

yipz.. setelah di rubah.. koneksi ke interet pun wuz wuz wuz…

root@fatah-laptop:~/vina# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     2      0        0 wlan0
10.10.10.0      *               255.255.255.0   U     1      0        0 eth0
link-local      *               255.255.0.0     U     1000   0        0 eth0
default         mygateway1.ar7  0.0.0.0         UG    0      0        0 wlan0
root@fatah-laptop:~/vina# ping http://www.forum-milanisti.com
PING http://www.forum-milanisti.com (219.83.122.174) 56(84) bytes of data.
64 bytes from http://www.forum (219.83.122.174): icmp_seq=1 ttl=53 time=42.6 ms
^C64 bytes from http://www.forum (219.83.122.174): icmp_seq=2 ttl=53 time=42.1 ms

http://www.forum-milanisti.com ping statistics —
2 packets transmitted, 2 received, 0% packet loss, time 5052ms
rtt min/avg/max/mdev = 42.116/42.382/42.649/0.336 ms

1 Komentar

  1. Thx Gan, ngelmu nya seminggu gw cari 2x, akhirnya sukses dengan di https://fierd.wordpress.com/2009/04/02/migrasi-linux-part-v-setting-default-gateway/

    Thx Sukses ….


Comments RSS TrackBack Identifier URI

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

  • follow @fatah7f