LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   howto route (https://www.linuxquestions.org/questions/linux-networking-3/howto-route-576673/)

murat1 08-13-2007 01:36 AM

howto route
 
my ip is 10.0.0.2 and there is a network gw is 192.168.0.1 how do i connect to internet with my ip address by using route command or etc.

acid_kewpie 08-13-2007 02:14 AM

we can't help you with the little information you've provided. 192.168.0.1 can't be your gateway as it's not on the same network as 10.0.0.2. what does your network topology actually look like? your client machine needs to route to, presumably, somethign else within 10.0.0.0/24 and that box then would take care of routing on to the internet.

murat1 08-13-2007 03:12 AM

route 2 network
 
[QUOTE=murat1;2856969]there is two networks one of is 192.168.0.0/24 other is 10.0.0.0/24 there is an adsl connection with dhcp server on 192.168.0.0 adsl ip's number 192.168.0.1 the 192.168.0.0/24 network can connect how to connect 10.0.0.0/24 to the internet ?

acid_kewpie 08-13-2007 04:03 AM

well you need a router sitting on both networks. do you have one?

murat1 08-13-2007 05:13 AM

Quote:

Originally Posted by acid_kewpie (Post 2857091)
well you need a router sitting on both networks. do you have one?

what is router sitting?

acid_kewpie 08-13-2007 05:18 AM

a network device able to communicate with both the networks in question.

murat1 08-13-2007 05:31 AM

Quote:

Originally Posted by acid_kewpie (Post 2857156)
a network device able to communicate with both the networks in question.

no i havent just adsl modem .

acid_kewpie 08-13-2007 05:41 AM

well you need to get one then. how else do you expect the two networks to communicate without something connecting them??

rossonieri#1 08-13-2007 07:14 PM

hi murat1,

if you do have route to remote 192.168.0.0 network maybe your 10.0.0.0 machine can talk to the gateway - but does your gateway know how to reply back to 10.0.0.0 network?
you have to route it also.

this situation called next-hop-self routing. as 10.0.0.0 machine being the router itself.

have a try.

HTH.


All times are GMT -5. The time now is 11:00 PM.