Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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.
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.
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
Distribution: Whatever I feel like at the time I install.
Posts: 284
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.