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 www.forum-milanisti.com
PING www.forum-milanisti.com (219.83.122.174) 56(84) bytes of data.
64 bytes from www.forum (219.83.122.174): icmp_seq=1 ttl=53 time=42.6 ms
^C64 bytes from www.forum (219.83.122.174): icmp_seq=2 ttl=53 time=42.1 ms

— 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

No Comments Yet

Belum ada komentar.

Komentar RSS Lacak Balik URI Pengenal

Tinggalkan komentar