joaopa Posted August 9, 2007 Report Share Posted August 9, 2007 I would like to link my 2 pc with a cable to do a local network. I have got a RJ45 cable to link the both computers. But with mandriva 2007 Spring and drakconf, I do not manage to configure my local network. Any idea to do that? Thank you in advance for any answer Joaopa Link to comment Share on other sites More sharing options...
SilverSurfer60 Posted August 9, 2007 Report Share Posted August 9, 2007 (edited) To link two pc's without using a router you will need a crossover cable ie. The send and receive wires are crossed over. Edited August 9, 2007 by SilverSurfer60 Link to comment Share on other sites More sharing options...
joaopa Posted August 9, 2007 Author Report Share Posted August 9, 2007 my cable is a crossover cable. I just do not know how to configure my lan with drakconf. Joaopa Link to comment Share on other sites More sharing options...
scarecrow Posted August 9, 2007 Report Share Posted August 9, 2007 Are you using DHCP, or static addresses? Have you set any LAN workgroup? Link to comment Share on other sites More sharing options...
scoonma Posted August 9, 2007 Report Share Posted August 9, 2007 Once you've connected both PCs with your crossover cable, this should be very easy. You even don't need dhcp; i.e. use static adresses instead Just make sure you setup your network cards (eth0) on both machines to IP numbers with different vaules like this: PC one gets 192.168.0.1 PC two gets 192.168.0.2 You also should set proper hostnames for name resolution (not just "localhost"!!!). Assume your machines are named ernie and bert. All you have to do now is edit the file /etc/hosts in each case to reflect the changes. So do the following: 1. Open a terminal window and "su" to get root access 2. Type "cd /etc" 3. Type "nano hosts" (or use your favourite text editor for this; if not installed you can do that by "urpmi nano" before). Your hosts file should have at least the following entries: 127.0.0.1 ernie localhost (this would be on the machine named ernie) 4. Just add a single linge: 192.168.0.2 bert 5. Save and exit 6. On the "bert" machine you repeat this, but the line to add is slightly different: 192.168.0.1 ernie After saving and exiting the editor you can restart your network ("service network restart") and both of the PCs should see their companion. :-) Good luck, scoonma Link to comment Share on other sites More sharing options...
joaopa Posted August 9, 2007 Author Report Share Posted August 9, 2007 Thnaks to all. It works. :thanks: :thanks: Joaopa Link to comment Share on other sites More sharing options...
scoonma Posted August 9, 2007 Report Share Posted August 9, 2007 Nice to hear that all went well. :-) (Please don't forget to mark the subject of this thread as "solved".) Greetings, scoonma Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now