Jump to content

Setting up a LAN at home


Guest stompalot
 Share

Recommended Posts

Guest stompalot

Hi,

 

I've been Googling for the last couple of hours and have had no joy.....

 

I'm trying to set up a LAN at home 3 PC's all running XP connected to my PC which is running Madrake 10.2 CE. The XP machines will hopefully connect to mine so they can use my printer and internet connection which is an external modem and works fine..

 

When i boot up it says bringing up eth0 --- failed.

 

ifconfig gives me the following

 

eth0      Link encap:Ethernet  HWaddr 00:20:ED:BD:9A:26
         inet6 addr: fe80::220:edff:febd:9a26/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:16 errors:0 dropped:0 overruns:0 frame:0
         TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:1995 (1.9 Kb)  TX bytes:2772 (2.7 Kb)
         Interrupt:17 Base address:0x1f00

lo        Link encap:Local Loopback
         inet addr:127.0.0.1  Mask:255.0.0.0
         inet6 addr: ::1/128 Scope:Host
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:2490 errors:0 dropped:0 overruns:0 frame:0
         TX packets:2490 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:178032 (173.8 Kb)  TX bytes:178032 (173.8 Kb)

ppp0      Link encap:Point-to-Point Protocol
         inet addr:81.76.146.48  P-t-P:195.92.168.35  Mask:255.255.255.255
         UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
         RX packets:4 errors:0 dropped:0 overruns:0 frame:0
         TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:3
         RX bytes:64 (64.0 b)  TX bytes:97 (97.0 b)

 

running ifup eth0 just comes up with failed.

 

I've tried running modprobe 8139too and that works

 

lsmod | grep 8139too gives the following

 

8139too                20928  0
mii                     4224  1 8139t

 

The network card is PCI and is Realtek RTL8139/810x Family Ethernet NIC

 

My hub is a Linksys 5 Hub.......

 

How do i set it up and where do i find all the IP and gateway and DHCPD stuff from?

 

Sorry if i'm being a tad stupid :)

 

Thanks

 

Jon

Link to comment
Share on other sites

I'm guessing that your eth0 is setup to receive the IP information via DHCP. With that in mind what you need to do is set it up with a static ip address and other related information (gateway, DNS etc) and then setup a DHCP server in Linux to listen to eth0 and have your Windows machines set to use DHCP for their IP addresses

 

Here's a really basic howto

http://linux.cudeso.be/linuxdoc/dhcp.php

 

Asking questions is not even remotely stupid - not asking them is.

Edited by Draco Araurlis
Link to comment
Share on other sites

Guest stompalot

Thanks for the reply, i'll had a quick look at the link and i'll try setting it up in the morning.

 

when you say......

 

I'm guessing that your eth0 is setup to receive the IP information via DHCP.

 

I've just found out that on windows my computer is the DHCP server and assigns IP address' to the others.

 

I presume this means that i have to set up my computer as a DHCP server on linux?

 

 

Thanks

 

Jon

Edited by stompalot
Link to comment
Share on other sites

Guest stompalot

Getting somewhere.

 

My network card and setting now seem to be set up. I can ping my other machine and by the looks of it its eing given an IP address by mine.

 

The problem is that whenever the network eth0 (lan) is running my dial up internet connection (ppp) is down.

 

If i ifdown eth0 and redial the net connection is OK. When eth0 is up i connect ok but nothing is transfered.

 

The oject of all this is to get my other windows XP computer to share my dial up internet connection.

 

Here are my settings

 

With no ppp conected i get

[root@Jon jon]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:20:ED:BD:9A:26
         inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
         inet6 addr: fe80::220:edff:febd:9a26/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:32 errors:0 dropped:0 overruns:0 frame:0
         TX packets:959 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:3990 (3.8 Kb)  TX bytes:66835 (65.2 Kb)
         Interrupt:17 Base address:0x1f00

lo        Link encap:Local Loopback
         inet addr:127.0.0.1  Mask:255.0.0.0
         inet6 addr: ::1/128 Scope:Host
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:629 errors:0 dropped:0 overruns:0 frame:0
         TX packets:629 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:59794 (58.3 Kb)  TX bytes:59794 (58.3 Kb)

 

When the modem is connected (ppp) this is added on to ifconfig

 

   ppp0      Link encap:Point-to-Point Protocol
         inet addr:62.137.123.8  P-t-P:195.92.168.32  Mask:255.255.255.255
         UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
         RX packets:4 errors:0 dropped:0 overruns:0 frame:0
         TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:3
         RX bytes:64 (64.0 b)  TX bytes:97 (97.0 b

 

Netstat - rn when ppp is not connected is

 

[root@Jon jon]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         192.168.0.1     0.0.0.0         UG        0 0          0 eth0

 

When ppp is not running i get

 

[root@Jon jon]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
195.92.168.33   0.0.0.0         255.255.255.255 UH        0 0          0 ppp0
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         192.168.0.1     0.0.0.0         UG        0 0          0 eth0

 

 

Thanks for any help,

 

Rgds

 

Jon

Link to comment
Share on other sites

Guest stompalot

Stil can't get this sorted.

 

Here's my config files, may be of use in finding the problem.

 

/etc/sysconfig/networking/ifcfg-lo

DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback

 

/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.1
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=no

 

Thanks for any help,

 

Rgds

 

Jon

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...