LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Noob- home networking (https://www.linuxquestions.org/questions/linux-networking-3/noob-home-networking-323584/)

tidasu 05-14-2005 09:47 PM

Noob- home networking
 
Hello,

I recently bought a very low end server via ebay.
(200 mhz, 128 mb ram, ... such a thing)
I want to use it as print server.
I got the whole thing up and running (finaly) with RedHat enterprise 7.1
The server has got 3 network cards: eth0, tr0 and tr1.

I drew a little scheme on how the home network is setup atm.
http://www.natural-solution.org/network.gif

My current problem is that when I do
Code:

/etc/init.d/network
reload I get this:
Code:

Bringing up device eth0: Determing IP information for eth0...Operation failed
  failed
                  [FAILED]
Bringing up device tr0: Determing IP information for tr0...Operation failed
  failed
                  [FAILED]
Bringing up device tr1: Determing IP information for tr1...Operation failed
  failed
                  [FAILED]

:cry:

I have got zero networking, and zero internet on my server.
Please tell me all you need to know so you can explain me what to do.
I am going to learn these things when I get out of highschool, so I don't know em yet.
Please help.:confused:


Greetz

johnson_steve 05-14-2005 10:37 PM

it looks like you didn't configure the adapters or they cant find a dhcp server. could you do a ifconfig and post the output

tidasu 05-14-2005 10:50 PM

Code:

[root@remi /root]# ifconfig
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:54 errors:0 dropped:0 overruns:0 frame:0
                    TX packets:54 errors:0 dropped:0 overruns:0 frame:0
                    Collisions:0 txqueuelen:0

This is what I get
I know, it is the localhost.
It's all I'm getting

Upon entering ifconfig eth0 I get this:
Code:

[root@remi /root]# ifconfig eth0
eth0            Link encap:Ethernet HWaddr 00:00:00:00:00:00
                    BROADCAST NOTRAILERS MTU:1500 Metric:1
                    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
                    TX packets:0 errors:0 dropped:0 overruns:0 frame:0
                    Collisions:0 txqueuelen:100
                    Interrupt:9 Base address:0x9200

Upon entering ifconfig tr0 I get this:
Code:

[root@remi /root]# ifconfig tr0
tr0              Link encap:16/4 Mbps Token Ring (New) HWaddr 00:04:AC:EC:E3:8A
                    BROADCAST MULTICAST MTU:4056 Metric:1
                    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
                    TX packets:0 errors:0 dropped:0 overruns:0 frame:0
                    Collisions:0 txqueuelen:100
                    Interrupt:15 Base address:0xa100

Upon entering ifconfig tr1 I get this:
Code:

[root@remi /root]# ifconfig tr1
tr1              Link encap:16/4 Mbps Token Ring (New) HWaddr 00:04:AC:EC:E3:7E
                    BROADCAST MULTICAST MTU:4056 Metric:1
                    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
                    TX packets:0 errors:0 dropped:0 overruns:0 frame:0
                    Collisions:0 txqueuelen:100
                    Interrupt:11 Base address:0xa000

I hope you can help

johnson_steve 05-15-2005 11:14 AM

it looks like the network devices were never configured the easiest way to do that is probably with the redhad configuration utility, but I don't use redhat so I couldn't even tell you what it is. Are you using dhcp or manual ip? if you have a /etc/conf.d/net file you can edit it by hand like:

(For DHCP)
iface_eth0="dhcp"

(For static IP)
iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
gateway="eth0/192.168.0.1"

tidasu 05-15-2005 12:16 PM

I have worked in the network configurator of linux before to test...

Currently it looks like this:
Interface | IP | proto | atboot | Active
--------------------------------------------------------------------------------
lo | 127.0.0.1 | none | yes | active
eth0 | 10.0.0.30 | dhcp | yes | inactive
| | none | no | active
eth0.OLD | | dhcp | yes | inactive
tr0 | 10.0.0.31 | dhcp | yes | inactive
tr1 | 10.0.0.32 | dhcp | yes | inactive

When I activate eth0, the next time I boot the network configurator, it's deactivated again.
I have added the IP of eth0, tr1 and tr2 becasue they were IP-less. I thought it might help ...

the ip of the router is 10.0.0.2
so other IP's are following up, I don't think I have an 192.168.0.1 atm.
However, I have another router here.
Would it help placing it bitween the splitter and the server?
It has a dhcp on it ...

johnson_steve 05-15-2005 12:33 PM

192.168.0.1 was just an example. you should use your router ip here. is the router a dhcp server?

tidasu 05-15-2005 12:55 PM

I think so.
Lets see

Code:

Number of ethernet devices connected to the DHCP server: 2 
 IP Address        MAC Address
1        10.0.0.12        00:11:D8:53:43:11       
2        10.0.0.9        00:0C:6E:62:65:9A

I also have this in my router:
Code:

LAN Configuration

IP Address: 10.0.0.2       
Subnet Mask: 255.0.0.0
               
 DHCP Server        X       

DHCP address pool selection:
        X  System Allocated       
        User Defined       
User Defined Start Address                10.0.0.4
User Defined End Address                10.0.0.100


DHCP gateway selection:
        X  Automatic       
        User Defined       
User Defined Gateway Address:

               
Lease Time        1days  0hours  0minutes  0seconds       
User Mode: multi user


Ethernet mode: autosense

------------

Anything else you need to know?


Greetz

johnson_steve 05-15-2005 01:08 PM

after you activate them do they work? maybe the just don't get brought up at boot time

tidasu 05-15-2005 01:19 PM

when I activate and close the network configurator, I can't ping the network.
When I bring back up the network config, it sais it's deactivated ...

johnson_steve 05-15-2005 09:45 PM

post your /etc/conf.d/net file. I hope you have one I don't use redhat are the other two plugged into anything?

jschiwal 05-16-2005 02:47 AM

If you enter as root: service network restart
does this cause both the dhcp client and the interfaces to go down and up again.

Do you have a dhcp client installed?

The lspci command will give you information on what controller the NIC interface uses. The controller determines which kernel module needs to be loaded when the computer boots.

The lsmod command will list the kernels that are loaded. You might want to supply the outputs of these commands to check if the currect kernel module is loaded.


tidasu 05-16-2005 12:44 PM

johnson, I tried to open the file, but I got the error it didn't existed.
Code:

bash: /etc/conf.d/net: No such file or directory
jschiwal:
I tried the first command: service network restart, and I got this:

Code:

Setting network parameters: [OK ]
bringing up interface lo: [OK ]
bringing up interface eth0:  Determing IP information for eth0...Operation failed
failed
[FAILED ]
Bringing up interface tr0: tr0: retrying at different ringspeed
tro: lobe media test - function failure
tr0: retrying at different ring speed
tr0: lobe media test - function failure
determing IP information for tr0...Operation failed.
failed.  [FAILED ]

Bringing up interface tr1: tr1: retrying at different ringspeed
tr1: lobe media test - function failure
tr1: retrying at different ring speed
tr1: lobe media test - function failure
determing IP information for tr1...failed.
Operation failed.  [FAILED ]


I have no idea if there is a dhcp client installed ... How do I do that?


LSMOD:

Code:

Module                  Size                Used          By
ppp_async            6928                0                (autoclean)
ppp_generic          19888                0                (autoclean) [ppp_async]
autofs                    11808              1                (autoclean)
olympic                  21744                0              (autoclean)  (unused)
pcnet32                12272                0                (autoclean)  (unused)
ipchains                41632                0              (unused)
ips                        41568                0              (unused)
aic7xxx                  136336              6
sd_mod                11744                6
scsi_mod              98624                3              [ips aic7xxx sd_mod]


I hope you can help me with this...

jschiwal 05-16-2005 12:59 PM

The dhcp cient package may be called dhcp-cliet or dhcpc. There may actually be 3 different clients that you could install. I don't know which versions RH 7.1 offers. You'll need to look for it on the istall disks. There is one by ISC that you might consider. You could also download a tarball from ISC http://www.isc.org/index.pl?/sw/dhcp/

tidasu 05-16-2005 03:27 PM

downloading a tarball was a bit funny ...

Is there a command how I can see what is installed?
There's only 1 cd of this linux, and as I remember clicked all the netwroking tools ...

mike33 05-16-2005 04:06 PM

It is not hard to compile and install a program, but since you haven't done that before
I would recommend that you get the binary client for Mandrake; it is called dhcpcd
(the dhcp server is called dhcpd).
The client should be in sbin if it is installed: /sbin/dhcpcd.
If it is not installed then you can find it either on the cd or on the web. The client for 10.1
(probably works for 10.0 as well)
is called dhcp-client-3.0.1-5mdk.i586.rpm. Download it and install it(as root) by typing
rpm -ivh dhcp-client-3.0.1-5mdk.i586.rpm
on the command line.


All times are GMT -5. The time now is 10:05 PM.