LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 06-11-2005, 12:01 PM   #1
solusrex
Member
 
Registered: May 2005
Posts: 35

Rep: Reputation: 15
is it possible for 2 computers behind a router to talk directly or do i need vpn


hi,

i've got an unbranded (conexant chipset) but totally great wireless router feeding my 2 ubuntu laptops. can they talk together and share files or do i need to look into the arcane world of vpns?
 
Old 06-11-2005, 12:14 PM   #2
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
why would you need a vpn? can you ping one from the other?
 
Old 06-11-2005, 12:18 PM   #3
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
Can they ping each other;
Code:
ping 10.0.0.1(or whatever there address is) -c 3
Then add them to /ect/hosts here is mine for one box
Code:
# /etc/hosts:  This file describes a number of hostname-to-address
#              mappings for the TCP/IP subsystem.  It is mostly
#              used at boot time, when no name servers are running.
#              On small systems, this file can be used instead of a
#              "named" name server.  Just add the names, addresses
#              and any aliases to this file...
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8 2003/08/04 20:12:25 azarah Exp $
#

127.0.0.1	 abbottdavid.no-ip.info  localhost
192.168.1.96      abbottdavid.no-ip.info  abbottdavid
192.168.0.2    tux.no-ip.info tux
Then make sure you have the hostname's and domainname's set up right
 
Old 06-11-2005, 12:43 PM   #4
solusrex
Member
 
Registered: May 2005
Posts: 35

Original Poster
Rep: Reputation: 15
Thanks for the response.

A ping (to 10.0.0.12) was successful. One problem I think I have is that both laptops have been given the same IP address by the router which also means my cheap'n'nasty attempt at sharing with myself via nicotine failed. Would I be right in assuming they would need different IPs for anything to work?

I thought I was pretty cool with Linux, a quick trip here usually solves all my problems, but I am ENTIRELY out of my depth in the esoteric world of networking...
 
Old 06-11-2005, 01:38 PM   #5
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
the router gives both the laptops the same ip? how do you configure the router?
 
Old 06-11-2005, 01:46 PM   #6
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
Could you post ifconfig on both box's?
 
Old 06-11-2005, 01:58 PM   #7
solusrex
Member
 
Registered: May 2005
Posts: 35

Original Poster
Rep: Reputation: 15
DHCP (I believe...warned you i was out of my depth)

I would have RTFM but it's in a badly translated technical language that is about as easy to understand as Finnegans Wake...

Can you define your own ip addresses on standard conexant routers? If so how do you avoid giving them numbers that are claimed already (or have clever protocol designers figured that out already?)

If I did manage to reassign IPs would it be as simple a matter as adding the details to hosts.allow (a file I have fiddled with in the past - particularly when I was a Fedora user and you need to tweak it before things work ok). If it was added to hosts.allow, would I be able to set up simple shared folders between the 2.

To be honest I only need this share for one thing, and it's the only reason I still have a windows partition on the other laptop. I backed up my MPs a few years ago on a mates XP machine with a DVD burner. I relaxed the UDF rules to allow for illegal characters (or whatever the right phrase is) and only windows can read the discs. Properly burned UDF discs still work so it's not UDF that's the problem just my wretched Nero-relaxed ones. I need to copy them onto the XP partition then get them onto my shiny new linux laptop (which I don't want to tarnish with M$ filth). So near to being M$-free, yet so far...

(interestingly the new Nerolinux can actually read the files but I cannot extract them in any way)
 
Old 06-11-2005, 02:14 PM   #8
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
you have to be able to change the settings for your router somehow. is there an ip on the bottom? try (in a browser behind the router) http://192.168.0.1 (or whatever the router ip is) does it give you a menu? you should be able to turn off dhcp. if you give the machines ip addresses in the range for private lan use like 10.0.*.* or 192.168.*.* you should have no conflictions unless another machine on your network uses the same ip.
 
Old 06-11-2005, 03:06 PM   #9
solusrex
Member
 
Registered: May 2005
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by comprookie2000
Could you post ifconfig on both box's?
coz of my problem I'll have to send them from their prospective boxes. First up is the laptop I want to copy TO:

wlan0 Link encap:Ethernet HWaddr 00:E0:986:30:5A
inet addr:10.0.0.4 Bcast:255.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::2e0:98ff:fed6:305a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20939 errors:54 dropped:0 overruns:0 frame:0
TX packets:15034 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20922534 (19.9 MiB) TX bytes:1011406 (987.7 KiB)
Interrupt:17

Will send the one from the dual-boot (eurgh) laptop in a mo...
 
Old 06-11-2005, 03:12 PM   #10
solusrex
Member
 
Registered: May 2005
Posts: 35

Original Poster
Rep: Reputation: 15
...and from the other:

eth0 Link encap:Ethernet HWaddr 00:A0:CCF:37:EF
inet addr:10.0.0.12 Bcast:255.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::2a0:ccff:fedf:37ef/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:816 errors:0 dropped:0 overruns:0 frame:0
TX packets:884 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:459534 (448.7 KiB) TX bytes:131917 (128.8 KiB)
Interrupt:19 Base address:0xcc00


For all I know it might not be DHCP. I know people posting here should gather as much info as possible so not to waste all you kind-folk's time but I am for the first time in years entirely lost. Like I say, I can figure out things out in Linux - hell I even have just graduated to writing my very own shell scripts !?!?! but Networking, oi vey...
 
Old 06-11-2005, 03:17 PM   #11
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 46
you have two different IPs: 10.0.0.4, and 10.0.0.12. to "talk" to each other, transfer files, etc. you'll need some sort of protocol: telnet, ssh, ftp, nfs, etc. there are lots of ways, it just depends on what you want to do and how you want to do it.
 
Old 06-11-2005, 03:20 PM   #12
solusrex
Member
 
Registered: May 2005
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by johnson_steve
you have to be able to change the settings for your router somehow. is there an ip on the bottom? try (in a browser behind the router) http://192.168.0.1 (or whatever the router ip is) does it give you a menu? you should be able to turn off dhcp. if you give the machines ip addresses in the range for private lan use like 10.0.*.* or 192.168.*.* you should have no conflictions unless another machine on your network uses the same ip.
Hi again,

I can get access to the modem/router. I use bulldog (8MB - phwoar!) and you have to get your own kit and install yourself. I had no internet access and have never used ADSL (I was cable before) but it was easy enough to configure and I got it up in working in a minute. It's just there doesn't seem to be a VPN subsection unless they're using their own proprietarily named equivalent.

Apparently the router is a 'conexant hasbani' and a quick scan at google reveals all sorts of problems with tunneling (if indeed that's what I want to do)
 
Old 06-11-2005, 03:29 PM   #13
solusrex
Member
 
Registered: May 2005
Posts: 35

Original Poster
Rep: Reputation: 15
me again...

I appreciate all your help and advice but I think the problem is I'm giving you a load of garbled details coz I don't fully understand what I'm looking for. Perhaps now is the time to take out a mortgage and go on a networking certification course so I at least speak basic networking lingo. In the meanwhile I might see if there's such a thing as a Linux Laplink
 
Old 06-11-2005, 03:29 PM   #14
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
Look at /etc/network/interfaces and you will see how you are connecting
then look at /etc/resolv.conf you will see your modem there
You are most likely using dhcp but I am sure there is a way to keep the same address.
This is not really addressing what you want to do as synaptical already said just some background info for later, later

Last edited by comprookie2000; 06-11-2005 at 03:32 PM.
 
Old 06-11-2005, 03:29 PM   #15
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 46
Quote:
Originally posted by solusrex
Hi again,

I can get access to the modem/router. I use bulldog (8MB - phwoar!) and you have to get your own kit and install yourself. I had no internet access and have never used ADSL (I was cable before) but it was easy enough to configure and I got it up in working in a minute. It's just there doesn't seem to be a VPN subsection unless they're using their own proprietarily named equivalent.

Apparently the router is a 'conexant hasbani' and a quick scan at google reveals all sorts of problems with tunneling (if indeed that's what I want to do)
you don't need to mess with vpn or tunneling any of that. as johnson_steve already said, all you have to do is disable DHCP (or make it static) and then assign IPs to each computer. strictly speaking you don't even need to do that if you don't want to, it just makes it easier if you always know what the IP of each computer is going to be. it would be anything from a PITA to a disaster to have a server keep getting a different IP every time you rebooted, or the router got reset, or the lease expired or whatever.
 
  


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
VPN: linux VPN server behind Linksys router hamish Linux - Networking 14 08-25-2005 08:42 PM
How do I get multiple computers to talk to a raid array? Travis86 Linux - Hardware 5 11-16-2003 07:50 PM
Can my computers talk to each other? Amos Ku Linux - Software 3 09-10-2003 08:17 AM
Newbie needs to know how to talk to router logikos Linux - Networking 4 08-25-2002 10:02 AM
Connecting two computers directly Joe Soap General 6 02-05-2002 06:13 PM


All times are GMT -5. The time now is 05:04 PM.

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