LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-28-2005, 03:58 AM   #1
tuxuser19
Member
 
Registered: Oct 2005
Posts: 67

Rep: Reputation: 15
Networking 2 pcs in Debian


I want to network 2 pcs which are running debian 3.1. I dont know how to add the second pc on to my first pc(which i want to make it like a server). I have connected them through crossover cable.

How to set the IP address of second pc properly? So that I can ping from my first pc?
 
Old 10-28-2005, 04:11 AM   #2
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
Set the first pc as 192.168.2.25and the second as 192.168.2.50/255.255.255.0.

You can pick any IP as long as it's on the same class C subnet. But dude, crossover is kinda ghetto.
 
Old 10-28-2005, 04:48 AM   #3
tuxuser19
Member
 
Registered: Oct 2005
Posts: 67

Original Poster
Rep: Reputation: 15
I dont know how to add the IP address on my second pc! On my first pc when i type /etc/ifconfig this is wat i get:
----------------------
eth0 Link encap:Ethernet HWaddr 00:0F:B5:8D:89:B1
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:2052 (2.0 KiB)
Interrupt:18 Base address:0x2000

eth1 Link encap:Ethernet HWaddr 00:20:ED:1E:4B:64
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4761 errors:0 dropped:0 overruns:0 frame:0
TX packets:5108 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2657433 (2.5 MiB) TX bytes:712386 (695.6 KiB)
Interrupt:21 Base address:0x9c00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:119353 errors:0 dropped:0 overruns:0 frame:0
TX packets:119353 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:22164182 (21.1 MiB) TX bytes:22164182 (21.1 MiB)
---------------
My first pc has 2 network cards one is for the ADSL connection and other I installed it to connect to the second pc using crossover cable.

When i type in "ifup -a" in second pci get a message "doesnt have all the varibales for inet/eth0 cannot bring eth0 up"

Can you please tell me what I i have to add in /etc/network/interfaces to make my second pc communiacte with the first?

This is what i have in /etc/network/interfaces in my first pc:
----------------
auto eth0
iface eth0 inet dhcp
name Ethernet LAN card


auto eth1
iface eth1 inet dhcp
name Ethernet LAN card
----------------
For some reason what happened is my eth0 and eth1 are swapped! What I meant is before i installed my second network card, my first network card used to be "eth0" after installing the second one the new one became "eth0" and the first one the primary one which i used for adsl became "eth1" !

I think i have stuffed it up in /etc/network/interfaces

Can any one please help me out!!!! I am struggling for the past 7 hours in networking these 2 pcs. I have just started learning linux. Quick help me greately regarded
 
Old 10-28-2005, 07:40 AM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
I have responded to your like request in the Debian forum, but;

You have eth0 requesting a dhcp connection from the second system. In order for this to happen you need to have a dhcp server running on the second system. In this particular situation where you only have a small number of pc's then you will find static addressing much easier to work with. I have covered this in the Debian forum so won't repeat it here.
 
  


Reply



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
Networking two PCs: XP Pro and Linux. justin_slc Linux - Networking 5 08-18-2005 02:46 AM
PCS Data Card in Debian drgnswrd Linux - Hardware 2 04-14-2005 05:23 PM
Networking 3 PCs, 2 printers, with DSL & wifi bluefire Linux - Wireless Networking 0 06-06-2004 07:25 PM
Debian Networking... SainT1337 Linux - Networking 1 03-31-2004 03:26 AM
Debian networking help please! magisterj Debian 7 09-08-2003 04:07 PM

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

All times are GMT -5. The time now is 04:57 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