LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-13-2007, 02:36 AM   #1
murat1
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Rep: Reputation: 0
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.
 
Old 08-13-2007, 03:14 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
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.
 
Old 08-13-2007, 04:12 AM   #3
murat1
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
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 ?
 
Old 08-13-2007, 05:03 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
well you need a router sitting on both networks. do you have one?
 
Old 08-13-2007, 06:13 AM   #5
murat1
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
well you need a router sitting on both networks. do you have one?
what is router sitting?
 
Old 08-13-2007, 06:18 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
a network device able to communicate with both the networks in question.
 
Old 08-13-2007, 06:31 AM   #7
murat1
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
a network device able to communicate with both the networks in question.
no i havent just adsl modem .
 
Old 08-13-2007, 06:41 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
well you need to get one then. how else do you expect the two networks to communicate without something connecting them??
 
Old 08-13-2007, 08:14 PM   #9
rossonieri#1
Member
 
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto create 2 gateway route? grant-skywalker Linux - Networking 3 01-10-2007 10:44 AM
Default route took 20s to display with 'route' command Akhran Linux - Newbie 3 11-04-2006 05:59 AM
howTo: add ip route elrose Slackware 2 12-27-2005 01:44 PM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 05:34 AM
ADSL as a Alternate route or backup route bhagat2000 Linux - Networking 0 05-27-2004 04:17 PM


All times are GMT -5. The time now is 11:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration