You still havent answered the question "exactly what do you want to do?" :)
Anyway, my guess is you just want to specify routing entry based on your interface, if so, then just create it manually.
ex: route add -net 10.10.1.0 netmask 255.255.255.240 dev eth1
HTH, Kenneth
str tux wrote:
exactly what do you want to do?
Okei, I have 2 NIC connecting to two different network. Here's my complete Network Settings.
eth0 is connected to a router directly going to a branch office.
eth0 ip = 10.10.1.22
router ip = 10.10.1.20
subnet = 255.255.255.248/29 network = 10.10.1.16
broadcast = 10.10.1.23
so i want a default gateway for eth0 as 10.10.1.20
on the other hand, eth1 is connected to our main LAN's switch. eth1 ip = 10.10.1.7 main_lan_main_gateway_going_to_internet ip = 10.10.1.1 subnet = 255.255.255.240/28 network = 10.10.1.0 broadcast = 10.10.1.15 so want in a default gateway for eth1 as 10.10.1.1
how i will do this kind of configuration in linux?
thanks always.
str
--
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
-- Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
