LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-27-2005, 02:16 AM   #1
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
192.168.2.1 network with 192.168.0.1?


Just an experiment I am doing for learning's sake, but is it possible to network two routers with different IP addresses? I basically plugged in a router into a router.

Computer A is on 192.168.2.1 router
Computer B is on 192.168.0.1 router

Computer A is unable to browse and share files with Computer B because they are on two different physical networks with different addresses, and vice versa. Both computer A and B have the same workgroup name with unique IP addresses.

Both computers are able to surf the internet flawlessly.
 
Old 02-27-2005, 03:44 AM   #2
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Rep: Reputation: 32
You could do that on Computer A:
route add -net 192.168.0.0 netmask 255.255.255.0 gw <IP.OF.ROUTER.HERE> dev eth0

And approximately on Computer B, the reverse thing ;]
 
Old 02-27-2005, 06:59 AM   #3
broch
Member
 
Registered: Feb 2005
Distribution: Slackware-current 64bit
Posts: 465

Rep: Reputation: 32
add WINS server.
One first segment add to the smb.conf
wins support = yes

on the second segment add to the smb.conf:
wins server = IP_address_of_WINS_server_from_the_first_segment
wins proxy = yes

If you have only two machines, one is windows and the other linux, then make samba WINS server and point to it on the another box.
 
  


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
Is someone on my network?! ::ffff:192.168.0.10:ssh ::ffff:192.168.0.:38201 ESTABLISHE ming0 Linux - Security 4 04-12-2005 01:04 AM
Iptables is converting -s 192.168.1.0/8 into 192.0.0.0/8 why !? qwijibow Linux - Security 2 01-26-2005 09:57 AM
what is the meaning of this 192.168/16 ? kublador Linux - Networking 2 09-02-2004 06:51 AM
smtp internal network 192.168.x.x sendmail sloboda Linux - Networking 0 10-03-2001 04:41 PM
192.168.0.0/25 ? Firew Linux - Networking 1 04-12-2001 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:59 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration