configure 2 NIC

0

how to configure 2 NIC dalam 1 PC

dalam ilustrasi sbb :

internet ---> eth0 ( ipaddr : 192.168.5.24 defa gateways : 192.168.5.3 ) ---> eth1 ( 192.168.24.1 ) ----> switch ---> to X client ( with ipaddr : 192.168.24.x defa gateways 192.168.24.1 ).

need help to solusi...

hiks.. hiks.. telmi dah lama ndak ngoprek

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Configure 2 NIC

Ini pake distro apa yah?
tapi secara umu, script nya adalah sbb :
1. Konfigure Ip address eth0 (asumsi pakai class C) :
ifconfig eth0 192.168.5.24 netmask 255.255.255.0 up
2. Konfigure eth1
ifconfig eth1 192.168.21.1 netmask 255.255.255.0 up
3. Setting default gw :
route add default gw 192.168.5.3
4. Enable ip forward spy client bisa routing
echo 1 > /proc/sys/net/ipv4/ip_forward

Silahkan dicoba.:) He..he..tapi perintah diatas nggak permanen loh, kalau pc nya di restart, konfigurasi nya bisa hilang, nah biar gak ilang perlu pake tools spt linuxconf, yast atau controlcenter. Atau langsung edit file network nya tapi hrs cari2 dulu soalnya tiap distro agak beda2 dikit.:D