Allrighty... booting my linux now
Some of the networking ralated files are stored in:
/etc/sysconfig
and
/etc/sysconfig/network-scripts
i was setting my network by using this files. I'm using X's only to browse the web... never used any config tool from it.
This file contains your defaultrouter. You can have two static routes to two different gateways on two different interfaces but you cannot of course have two defaultrouters. Place your defaultrouter in this file.
/etc/sysconfig/network
by all this years i was using winblows i thought that a "default route" was attached to the NIC and that was not something "general"... anyway in this file planced my default route some time ago. It looks like this:
networking=yes
hostname=fix
gateway=62.121.87.254This file contains your static routes. If you have a defaultrouter in file above, you can leave the two entries in this file alone.
/etc/sysconfig/static-routes
i don't have this file... not in /etc ... not named like that or similar
Your IP address is in:
/etc/sysconfig/network-scripts/ifcfg-eth0 (or eth0:1 for virtual devices, oh how Linux changes eh)
/etc/sysconfig/network-scripts/ifcfg-1
Within these two files there are various settings. Of concern are these two (assuming all else was set correctly from Xwindows GUI)
I was configuring my network by using MC (f4 for editing) and i configured this files correctly. It's prety easy config but there is no room for a "routes" in this files. Never tried an X gui.. and i don't think i will... it's too sweet looking and i don't trust it
ONBOOT (y/n)
ISPCMCIA (y/n)
should be (y) for both cards.
Still I've seen the problem of interfaces automatically go into inactive mode before and not just for PCMCIA, some times this also occures for PCI card devices as well.
i got onboot=yes for both cards but 3c is built in PCI card not PCMCIA (like Xircom is). When both cards using static IP addys i have no problem with booting them. I had some problems when one of them was on dynamic IP (OS was showing a faliure when bringing it up, but this card was working correctly) anyway it's not a problem.
Start with PCMCIA stuff, its in:
/etc/sysconfig/pcmcia
PCMCIA=yes|no
PCIC=i82365|tcic
(make sure its the correct chipset, probably already is)
PCIC_OPTS=socket driver (i82365 or tcic) timing parameters
CORE_OPTS=pcmcia_core options
CARDMGR_OPTS=cardmgr options
that is pretty interesting... as a winblows admin i never took any care on how PCMCIA is working
I'm green here but will tell you wnat i found in this file:
PCMCIA=yes (ok)
PCIC=yenta_socket (i think i know what it is
)
PCIC_OPTS= (empty)
CORE_OPTS= (empty)
all other about PCMCIA looks ok... i don't have a problem with it when i'm using RH.
So basicall an entry for your defaultrouter in
/etc/sysconfig/network
and whis device to route through should fix your defaultrouter issue.
Then if your eth interfaces are not up, there could be few reasons.
1) is inactive
ifconfig eth0 up
2) inactive at boot
modify /etc/sysconfig/network-scripts/ifcfg-1 and 2
see above, then:
ifup eth0
or (if these commands dont work your kernel is too old)
ifdown eth1
3) or the PCMCIA ethernet device did not load properly or somehow became unloaded
/etc/pcmcia/network start eth0
or
/etc/pcmcia/network start eth1
Running this command is what happens when you insert your PCMCIA cards (dont have to remove card to run command).
i'm not THAT newbie
I know how to bring up a ethernet adapter
==============================================
bottom line is:
the only problem i have now is a
/etc/sysconfig/static-routes file missing... as i understand there i could add a static gw for a eth0 and eth1 interfaces? If i have NO such a file... i should manually create it? if yes - could you post here some example of how this files looks like? if i don't have this file, there is a chance that even if i create it, this new (crerated files) will stay unused... should i place some entries to the other file(s) to use this "/etc/sysconfig/static-routes" file?
Thanks a lot for your replay senna
!!!
it's mostly what i already know, but there are some ports that i'm not familiar with (like PCMCIA). I will give them a closer look!
bike