Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
whichever network is not used as the default route will need any additional routes explitictly setting on it. how is your box supposed to know that, for example, 192.168.100.100 lives down the VPN side as opposed to the internet side?
route add -net 192.168.100 netmask 255.255.255.0 dev eth0
whichever network is not used as the default route will need any additional routes explitictly setting on it. how is your box supposed to know that, for example, 192.168.100.100 lives down the VPN side as opposed to the internet side?
route add -net 192.168.100 netmask 255.255.255.0 dev eth0
sorry chirs, i didn't get you. plz clear me what u wanna advice me.
plzzzzzzzzzzz.
what's not clear? I'm sure i can give more information if you actually explain your problem to a suitable level of detail. you've not even said what "unable to access both network simultaneously" even means...
eth0:- 192.168.123.6 gateway 192.168.123.123 (ip address of dlink adsl router to access internet)
eth1:- 192.168.10.2 gateway 192.168.10.5( ip address of cisco router connected to VPN)
beside above i put dns server to access internet also.
ok
now both card are active, but when i want to access internet .it takes the route to 192.168.10.2 ,thr it should take 192.168.123.6 for internet access....why so?
n when i try to access vpn it takes the route 192.168.123.6 thr it should tk 192.168.10.2..!
so, that's my problem i m unable to access both service at the same time , i hv to disable a netowk card to access relevent service.
as above you need to tell your pc which way to go to get where you want. so as you have two identical looking eth interfaces, you need to simply set the default route to go via eth0 and don't set anything about a default route for eth1. then using the example above, use the route command (or your gui of choice) to add specific, non-default routes to the system saying what else lives down eth1.
save(copy-paste) them to any of your startup script. e.g. rc.local or any runlevel specific startup script.
or you can go through the below mentioned link for setting up persistent routes but neverthless it works the same way.(i am not sure whether it will work in other distro or not) http://www.cementhorizon.com/wiki/in...Linux_3_RHEL_3
EDIT : updated link info.
Last edited by amitsharma_26; 11-25-2006 at 04:40 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.