is it possible for 2 computers behind a router to talk directly or do i need vpn
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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...
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)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152
Rep:
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.
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...
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.
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)
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.