Senin, 22 Agustus 2011

IP Route 2

A. ip route add --- add new route

Contoh Penggunaan:

1. Menambah plain route ke network 10.11.3.0/24 via gateway 193.200.7.1
#ip route add 10.11.3.0/24 via 193.200.7.1

2. Merubah direct route via device dummy
# ip ro chg 10.11.3.0/24 via 193.200.7.1 dev dummy

3. Menambah default multipath route splitting load between ppp0 and ppp1
# ip route add default scope global nexthop dev ppp0 nexthop dev ppp1

4. NAT the address 192.203.80.144 to 193.233.7.83 before forwarding
# ip route add nat 192.203.80.142 via 193.233.7.83


B. ip route delete

Menghapus multipath route yang dibuat pada contoh sebelumnya.

# ip route del default scope global nexthop dev ppp0 nexthop dev ppp1

Tidak ada komentar:

Posting Komentar