LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-12-2002, 06:42 PM   #1
rhstudent
LQ Newbie
 
Registered: Feb 2002
Location: Western PA USA
Distribution: Red Hat 8.0/9.0 Fedora Core 3
Posts: 28

Rep: Reputation: 15
network config on startup?


Hello,
I did some searching on this site looking for what file to edit to get my nic up on start up. I have had no luck. As I have it now, I need to type:

ifconfig eth0 up

then I type

ifup eth0

I need to do this before I can ping anyother machine on my network, including the ip of eth0.

I'm using win98 on 0ne machine and redhat 7.2 on my linux box. after typing the above commands, my network works great. I can telnet to my linux box from win98.

My question is, How do I set up linux to run the above commands on startup without my input?
Any help would be great!
Thanks,
RH
 
Old 03-12-2002, 07:50 PM   #2
AzrielMacKay
Member
 
Registered: Jul 2001
Location: Moody, AL
Distribution: Debian and Kubuntu
Posts: 249

Rep: Reputation: 30
i needed to do that too, i added them to the bottom of
/etc/rc3.d/S13local
default run level is 3
but im not sure if red hat is set up the same way
 
Old 03-12-2002, 08:44 PM   #3
rhstudent
LQ Newbie
 
Registered: Feb 2002
Location: Western PA USA
Distribution: Red Hat 8.0/9.0 Fedora Core 3
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks for the quick post, and the great info...
I looked into /etc/rc3.d/S10network, added the two commands and now linux shows the eth0 as up on startup.
However, I still don't have network access untill I ping from the linux box. I get 3 lines of host not accessable then I get a line that says,
warning time of day goes back, taking countermeasures

then, it pings the ip.
any ideas?
RH
 
Old 03-12-2002, 09:14 PM   #4
AzrielMacKay
Member
 
Registered: Jul 2001
Location: Moody, AL
Distribution: Debian and Kubuntu
Posts: 249

Rep: Reputation: 30
sorry, thats a new one on me
hopefully someone else here will have an idea
hope i atleast helped some tho
 
Old 03-13-2002, 01:10 AM   #5
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
try making sure your ifcfg-eth0 file is done correctly. It is located in /etc/sysconfig/network-scripts-ifcfg-eth0
mine looks like this:

DEVICE=eth0
IPADDR=192.168.168.1
NETMASK=255.255.255.0
BROADCAST=192.168.168.255
ONBOOT=yes
BOOTPROTO=none
NAME=3c515

if you want to use dhcp then make BOOTPROTO=dhcp. Also make sure that in /etc/modules.conf you have the alias setup for your NIC. Like this:

alias eth0 3c515

If that doesn't fix it then if you would explain a little more of your setup that would help some.
 
Old 03-13-2002, 09:47 PM   #6
rhstudent
LQ Newbie
 
Registered: Feb 2002
Location: Western PA USA
Distribution: Red Hat 8.0/9.0 Fedora Core 3
Posts: 28

Original Poster
Rep: Reputation: 15
bbenz3, thanks for the info, I think we're on the right track. If nothing else, I'm learning linux.

The contents of my /etc/modules.conf is the following:

alias parport_lowlevel parport_pc
alias eht0 tulip
alias usb-controller usb-uhci

contents of /etc/sysconfig/network-scripts/ifcfg-eth0 are :

NETMASK=255.255.255.0
BOOTPROTO=static
HWADDR=[this is my mac address]
DEVICE=eht0
IPADDR=192.168.0.2
TYPE=Ethernet
ONBOOT=yes
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
PEERDNS=NO

What is the NAME=3c515 for? Is 3c515 the name of the module for your nic? I have seen this sequece of characters before but I'm not exactly shure what or how it's used. Should I include something similar?
I know my nic uses the de4x5.o module but I have no idea where to look and see if in fact it's loaded.

Can you see anything else I need?

As for my system, I'm running RH 7.2 through a crossover cable to a win98 box.

My total goal for this project is to get my linux box to act as a samba server on a 98 network. I'm just trying to get the network a little more stable before I tackle the smb.
 
Old 03-14-2002, 06:41 AM   #7
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
The NAME field is not really necessary. I think it's just used for a logical name. The HWADDR is another one which you don't really need.
The DEVICE part says eht0. I hope that's it's just a spelling mistake in your post and not in the script. Because it won't work properly if it is.
 
Old 03-14-2002, 06:17 PM   #8
rhstudent
LQ Newbie
 
Registered: Feb 2002
Location: Western PA USA
Distribution: Red Hat 8.0/9.0 Fedora Core 3
Posts: 28

Original Poster
Rep: Reputation: 15
Mik,

eht0 is a typo, sorry. My /etc/sysconfig/network-scripts/ifcfg-eth0 does say :

DEVICE=eth0.

I'd like to know a little more about the way linux uses the modules. I know there is a process you can use to list all the running modules but I don't know what it is.
Anyone have an Idea?
Thanks for your time.
RH
 
Old 03-14-2002, 08:44 PM   #9
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
Quote:
I'd like to know a little more about the way linux uses the modules.
To get a listing of all modules running type "lsmod".

3c515 is indeed the name of my NIC. I use 3c515.o as the module for it. Since you said:
Quote:
I know my nic uses the de4x5.o module but I have no idea where to look and see if in fact it's loaded.
the way you should have your /etc/modules.conf file should look is:
alias eth0 de4x5.o
and then you can setup your ifcfg-eth0 file like what I had but instead of 3c515 put de4x5. This however is just a name and is only an identifier.
The only other thing you need to do is setup your NIC on your win98 system to have a static IP ex) 192.168.168.2 and then setup your /etc/hosts file on your linux system as follows:
192.168.168.2 name_of_win98_box
this will let you network things a little easier.
 
  


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
modules and network config on startup darkleaf Linux - Software 1 07-22-2004 03:39 AM
TV Time Startup Config scoobs Linux - Software 2 06-23-2004 08:44 AM
How do I Config the StartUp goboi Mandriva 1 01-19-2004 01:43 AM
startup config?? robhargreaves Linux - Software 1 01-06-2004 10:45 AM
possible samba config problem or network config issue? rruffin Linux - Networking 3 06-03-2003 04:04 PM

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

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