add route xubuntu 10.10

18 11 2010

barusan dapet masalah pas add route buat AP-NSW,  karena pake network applet nggak mau juga.. padahal kemaren nggak ada masalah, nggak tau kemapa xubuntu ini kok kaya ngambek,akhirnya nyari-nyari yang pake CLI mengenai add static route

dapetnya dari sini

By using the ip command, you can setup and view static route.

For example, to display current routing table you can type command:

# ip route show

Sample output:

192.168.2.0/24 dev eth1 proto kernel  scope link  src 192.168.2.1
192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.2
default via 192.168.1.254 dev eth0

or can add static route using following command:

ip route add {NETWORK} via {IP} dev {DEVICE}

For example network 192.168.55.0/24 available via 192.168.1.254:

# ip route add 192.168.55.0/24 via 192.168.1.254 dev eth1

note : jurus diatas yang saya pakai, jadi add alamat route via gateway address buat route

Alternatively, you can use old good route command:

# route add -net 192.168.55.0 netmask 255.255.255.0 gw 192.168.1.254 dev eth1

note: nah jurus diatas ini yang sebelumnya saya pakai tapi ternyata gak mau, kirain jurusnya saya kaya windos, tapi ternyata gak ngaruh, jadi silakan dicoba sendiri antara dua pilihan tersebut


Tindakan

Information

Satu tanggapan

21 11 2010
Choiri Setyawan

weh.,. makin mantabz aja nich pak pangdam.. hebat ilmunya.. :)

Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

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

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s




Ikuti

Get every new post delivered to your Inbox.