Bluehost.com Web Hosting $6.95

setting up a local network

This is a discussion on setting up a local network within the Linux Networking forums, part of the Linux Forums category; Hi I am trying to set up a local network using the Class C addies 192.168.xxx.xxx. Initially ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-31-2004
lesley_b_linux@yahoo.co.yuk
 
Posts: n/a
Default setting up a local network

Hi

I am trying to set up a local network using the Class C addies
192.168.xxx.xxx.

Initially I am starting simple and adding a laptop to what was a standalone
machine. (I intend later to add a simple router device and then connect
laptop and eventually other boxes to the router which will be connected to the
box. I just want a simple network to monitor and play with for the moment.)

I have a Cat 5 x-over cable to connect between my box and my laptop

I have managed to succesfully configure my ethernet card on the laptop with
it's own static IP address and a route to my box's eth0.

The box has an SMC1244TX card installed which I had previously
configured to a static IP 192.168 address.

I have a ppp0 connection to the Internet which gives me a different fixed IP
address.

Initially I connected up the laptop and the box with no routing info set up on
either. All that was set up was the IP addresses on the respective eth0's.
(And they were different IP addresses ).

The main box froze. Couldn't get any response except from the on off button.
So I powered down and spent some time fscking and checking system integrity.

I have since set up the laptop to have a default gateway of the box's eth0 IP
address.

I have not yet tried to reconect the laptop to the box because I seem to have
lost the eth0 interface on the box.

Using the /lib/modules/2.4.20-4GB/kernel/drivers/net/rtl8139.o I get a failure
insmod: /lib/modules/2.4.20-4GB/kernel/drivers/net/rtl8139.o: insmod eth0 failed

in my syslog and my eth0 interface doesn't come up.

So my first problem seems to be to find out what's wrong with the eth0
interface on the box.

I'm using SuSE 8.2 and YaST2 shows the eth0 card with the previously
configured IP address; all sound and correct. ifconfig eth0 gives

eth0: error fetching interface information: Device not found

I need to work out what's gone wrong so that I can fix it but I am not getting
much help from anything.

Would someone say what module I am meant to use with the SMC1244TX?

The next thing I need to suss out is how to maintain the lan info in the
resolv.conf and routing info so that the Internet connection stuff is appended
rather than overwrites the lan info.

Any pointers to further good reading or help in pointing out what's going wrong?

Regards, TIA and apologies for a FAQ

Lesley



Reply With Quote
  #2 (permalink)  
Old 11-01-2004
Clifford Kite
 
Posts: n/a
Default Re: setting up a local network

lesley_b_linux@yahoo.co.yuk wrote:
> Hi


> I am trying to set up a local network using the Class C addies
> 192.168.xxx.xxx.


> Initially I am starting simple and adding a laptop to what was a
> standalone machine. (I intend later to add a simple router device
> and then connect laptop and eventually other boxes to the router
> which will be connected to the box. I just want a simple network
> to monitor and play with for the moment.)


> I have a Cat 5 x-over cable to connect between my box and my laptop


Self-made cross-over cable or purchased? I think it's easy to make
a wiring mistake.

> I have managed to succesfully configure my ethernet card on the
> laptop with it's own static IP address and a route to my box's eth0.


> The box has an SMC1244TX card installed which I had previously
> configured to a static IP 192.168 address.


This sounds like the card was working. Does "previously" mean you
configured the card before connecting the cross-over cable?

> I have a ppp0 connection to the Internet which gives me a different
> fixed IP address.


> Initially I connected up the laptop and the box with no routing
> info set up on either. All that was set up was the IP addresses
> on the respective eth0's. (And they were different IP addresses ).


> The main box froze. Couldn't get any response except from the
> on off button. So I powered down and spent some time fscking and
> checking system integrity.


Hardware is the most likely cause of a host freezing under Linux.

> I have since set up the laptop to have a default gateway of the
> box's eth0 IP address.


> I have not yet tried to reconect the laptop to the box because I
> seem to have lost the eth0 interface on the box.


> Using the /lib/modules/2.4.20-4GB/kernel/drivers/net/rtl8139.o I
> get a failure
> insmod: /lib/modules/2.4.20-4GB/kernel/drivers/net/rtl8139.o:
> insmod eth0 failed


> in my syslog and my eth0 interface doesn't come up.


> So my first problem seems to be to find out what's wrong with the
> eth0 interface on the box.


If you were able insert the module and configure the box before
connecting the cross-over cable then it sounds like the card was
somehow damaged by the connection.

> I'm using SuSE 8.2 and YaST2 shows the eth0 card with the previously
> configured IP address; all sound and correct. ifconfig eth0 gives


> eth0: error fetching interface information: Device not found


Dunno what YaST2 is, but clearly eth0 does not exist if ifconfig can't
find it. Since the module insertion failed that should be no surprise.

> I need to work out what's gone wrong so that I can fix it but I am
> not getting much help from anything.


> Would someone say what module I am meant to use with the SMC1244TX?


If the card could be configured with rtl8139.o in place before the
cross-over cable was connected then it's probably dead now. There
may be a slight chance there is an interrupt conflict, but I've never
seen a post where that caused a host to freeze.

> The next thing I need to suss out is how to maintain the lan info
> in the resolv.conf and routing info so that the Internet connection
> stuff is appended rather than overwrites the lan info.


This is a common problem with distributions that are trying too hard to
make things "easier" for the user. I suspect in all cases some script
is overwriting resolv.conf with the file /etc/ppp/resolv.conf that pppd
creates when the option usepeerdns is present. One solution *may* be
to remove the usepeerdns option from any pppd configuration file found
in /etc/ppp and to remove /etc/ppp/resolv.conf. No guarantee.

But there's also no guarantee that the next reboot won't put it back
in unless SuSE provides a way to configure to prevent using DNS servers
provided by the peer. DNS servers should not change more than once in
a blue moon so it should be sufficient to simply put the IP addresses
in /etc/resolv.conf.

> Any pointers to further good reading or help in pointing out what's

going wrong?

> Regards, TIA and apologies for a FAQ


> Lesley


--
Clifford Kite Email: "echo xvgr_yvahk-ccc@ri1.arg|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:15 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0