Red Hat This forum is for the discussion of Red Hat Linux. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
03-24-2006, 05:34 PM
|
#1
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Rep:
|
router/nic initialization in RH9 and Slackware
I am dual booting Red Hat 9 and Slackware 10.1 off a Pentium 200 with 64 MB RAM. This pc is good in command line mode as an mp3 file server with a DSL connection. I actually prefer to run it in Slack since this is still being actively updated and works also as an FTP server in my network.
Thing is that my Netgear FA311 pci nic and Westell NAT router only get initialized on a cold boot with RH9. Slack will only initialize my router when I reboot out of RH9. I am running low on harddrive space and want to single boot. Since my server is set up with Slackware, this is the OS of choice for me. If I take off RH9, though, I won't be able to use my router....unless I can figure out why it is not initializing with Slack and does with RH9.
Any ideas?
|
|
|
03-24-2006, 08:50 PM
|
#2
|
Senior Member
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020
Rep:
|
hi,
is your slackware detecting the NIC card ???
post the out put of:
#lspci
regards
|
|
|
03-24-2006, 09:36 PM
|
#3
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
|
Quote:
Originally Posted by ruudra
hi,
is your slackware detecting the NIC card ???
post the out put of:
#lspci
regards
|
root@LinuxHippy:~# lspci
00:00.0 Host bridge: Intel Corp. 430TX - 82439TX MTXC (rev 01)
00:07.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 01)
00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01)
00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 01)
00:08.0 VGA compatible controller: ATI Technologies Inc 3D Rage II+ 215GTB [Mach64 GTB] (rev 9a)
00:0d.0 Unknown mass storage controller: Promise Technology, Inc. 20268 (rev 02)
00:0e.0 Serial controller: 5610 56K FaxModem 56K FaxModem Model 5610 (rev 01)
00:0f.0 Ethernet controller: National Semiconductor Corporation DP83815 (MacPhyter) Ethernet Controller
|
|
|
03-24-2006, 10:36 PM
|
#4
|
Senior Member
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020
Rep:
|
Quote:
00:0f.0 Ethernet controller: National Semiconductor Corporation DP83815 (MacPhyter) Ethernet Controller
|
ok, its detecting the NIC card.
Now the next step to find out the module this NIC require.
run
#ifconfig
while you will be setting up the various configurations like IP, gateway.......it may prompt about the module.
Check out upto here......otherwise something else would have to be done to know the module of NIC.
regards
|
|
|
03-25-2006, 07:26 AM
|
#5
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
|
root@LinuxHippy:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:40:F4:4C:F0:80
inet addr:192.168.1.45 Bcast:255.255.255.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12787 errors:0 dropped:0 overruns:0 frame:0
TX packets:12791 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:891085 (870.2 Kb) TX bytes:17778620 (16.9 Mb)
Interrupt:3 Base address:0x7000
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:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:100 (100.0 b) TX bytes:100 (100.0 b)
root@LinuxHippy:~# lsmod
Module Size Used by Not tainted
snd-pcm-oss 36704 0 (unused)
snd-mixer-oss 12152 0 [snd-pcm-oss]
snd-sb16 6408 0
snd-pnp 2976 0 [snd-sb16]
isa-pnp 29968 0 [snd-sb16 snd-pnp]
snd-sb16-dsp 5812 0 [snd-sb16]
snd-pcm 54504 0 [snd-pcm-oss snd-sb16-dsp]
snd-sb16-csp 15244 0 [snd-sb16]
snd-sb-common 6980 0 [snd-sb16 snd-sb16-dsp snd-sb16-csp]
snd-opl3-lib 5860 0 [snd-sb16]
snd-hwdep 4352 0 [snd-sb16-csp snd-opl3-lib]
snd-timer 13412 0 [snd-pcm snd-opl3-lib]
snd-mpu401-uart 3200 0 [snd-sb16]
snd-rawmidi 12320 0 [snd-mpu401-uart]
snd-seq-device 3812 0 [snd-opl3-lib snd-rawmidi]
snd 31268 0 [snd-pcm-oss snd-mixer-oss snd-sb16 snd-sb16-dsp snd-pcm snd-sb16-csp snd-sb-common snd-opl3-lib snd-hwdep snd-timer snd-mpu401-uar
snd-rawmidi snd-seq-device]
snd-page-alloc 4712 0 [snd-mixer-oss snd-pcm snd-sb16-csp snd-sb-common snd-hwdep snd-timer snd-rawmidi snd-seq-device snd]
soundcore 3396 6 [snd]
uhci 24284 0 (unused)
usbcore 58860 1 [uhci]
natsemi 15680 1
crc32 2880 0 [natsemi]
ide-scsi 9392 0
|
|
|
03-25-2006, 10:54 AM
|
#6
|
Senior Member
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020
Rep:
|
hi,
since you have DSL connection then whats the problem in setting up the internet connection?? Your NIC too is well detected by your slack machine.
I'm a bit confused about your problem now.....
regards
|
|
|
03-25-2006, 11:08 AM
|
#7
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
|
The problem is that it initializes fine with RH9 only. What I would like to use is the newest version of Slackware (I want to upgrade to Slack 10.2) and do away with my RH9 partition. What I do now is kickstart my nic and NAT router by booting into RH9 to get it working...then I reboot into Slackware and my nic and router settings are kept. I'm not sure why it won't start on it's own without RH9. I read that the file that starts networking in Slackware is /etc/rc.d/rc.inet1...what is the same file in RH9 (I did an slocate inet in RH9 and found nothing)?
The file is 184 lines. Here's a screenshot:
#! /bin/sh
# /etc/rc.d/rc.inet1
# This script is used to bring up the various network interfaces.
#
# @(#)/etc/rc.d/rc.inet1 10.0 Sun Jun 6 23:42:32 PDT 2004 (pjv)
############################
# READ NETWORK CONFIG FILE #
############################
# Get the configuration information from /etc/rc.d/rc.inet1.conf:
. /etc/rc.d/rc.inet1.conf
###########
# LOGGING #
###########
# If possible, log events in /var/log/messages:
if [ /var/run/syslogd.pid -a -x /usr/bin/logger ]; then
LOGGER=/usr/bin/logger
else # output to stdout/stderr:
LOGGER=/bin/cat
fi
######################
# LOOPBACK FUNCTIONS #
######################
# Function to bring up the loopback interface. If loopback is
# already up, do nothing.
lo_up() {
if grep lo: /proc/net/dev 1> /dev/null ; then
if ! /sbin/ifconfig | grep "^lo" 1> /dev/null ; then
echo "/etc/rc.d/rc.inet1: /sbin/ifconfig lo 127.0.0.1" | $LOGGER
/sbin/ifconfig lo 127.0.0.1
echo "/etc/rc.d/rc.inet1: /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo" | $LOGGER
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
fi
fi
}
# Function to take down the loopback interface:
lo_down() {
if grep lo: /proc/net/dev 1> /dev/null ; then
echo "/etc/rc.d/rc.inet1: /sbin/ifconfig lo down" | $LOGGER
/sbin/ifconfig lo down
|
|
|
03-25-2006, 07:47 PM
|
#8
|
Senior Member
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020
Rep:
|
Quote:
Originally Posted by linuxhippy
I read that the file that starts networking in Slackware is /etc/rc.d/rc.inet1...what is the same file in RH9 (I did an slocate inet in RH9 and found nothing)?
|
in Red Hat it is:
/etc/sysconfig/network-scripts/ifcfg-eth0 (whose counterpart in slack is /etc/rc.d/rc.inet1.conf).
The file you have posted is not complete.
Quote:
then I reboot into Slackware and my nic and router settings are kept
|
where and how are they kept ???
anyways......here is my file.
Quote:
#! /bin/sh
# /etc/rc.d/rc.inet1
# This script is used to bring up the various network interfaces.
#
# @(#)/etc/rc.d/rc.inet1 10.0 Sun Jun 6 23:42:32 PDT 2004 (pjv)
############################
# READ NETWORK CONFIG FILE #
############################
# Get the configuration information from /etc/rc.d/rc.inet1.conf:
. /etc/rc.d/rc.inet1.conf
###########
# LOGGING #
###########
# If possible, log events in /var/log/messages:
if [ /var/run/syslogd.pid -a -x /usr/bin/logger ]; then
LOGGER=/usr/bin/logger
else # output to stdout/stderr:
LOGGER=/bin/cat
fi
######################
# LOOPBACK FUNCTIONS #
######################
# Function to bring up the loopback interface. If loopback is
# already up, do nothing.
lo_up() {
if grep lo: /proc/net/dev 1> /dev/null ; then
if ! /sbin/ifconfig | grep "^lo" 1> /dev/null ; then
echo "/etc/rc.d/rc.inet1: /sbin/ifconfig lo 127.0.0.1" | $LOGGER
/sbin/ifconfig lo 127.0.0.1
echo "/etc/rc.d/rc.inet1: /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo" | $LOGGER
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
fi
fi
}
# Function to take down the loopback interface:
lo_down() {
if grep lo: /proc/net/dev 1> /dev/null ; then
echo "/etc/rc.d/rc.inet1: /sbin/ifconfig lo down" | $LOGGER
/sbin/ifconfig lo down
fi
}
######################
# ETHERNET FUNCTIONS #
######################
# Function to bring up an Ethernet interface. If the interface is
# already up or does not yet exist (perhaps because the kernel driver
# is not loaded yet), do nothing.
eth_up() {
# If the interface isn't in the kernel yet (but there's an alias for it in
# modules.conf), then it should be loaded first:
if ! grep eth${1}: /proc/net/dev 1> /dev/null ; then # no interface yet
if /sbin/modprobe -c | grep -w "alias eth${1}" | grep -vw "alias eth${1} off" > /dev/null ; then
echo "/etc/rc.d/rc.inet1: /sbin/modprobe eth${1}" | $LOGGER
/sbin/modprobe eth${1}
fi
fi
if grep eth${1}: /proc/net/dev 1> /dev/null ; then # interface exists
if ! /sbin/ifconfig | grep -w "eth${1}" 1>/dev/null || \
! /sbin/ifconfig eth${1} | grep "inet addr" 1> /dev/null ; then # interface not up or not configured
if [ -x /etc/rc.d/rc.wireless ]; then
. /etc/rc.d/rc.wireless eth${1} # Initialize any wireless parameters
fi
if [ "${USE_DHCP[$1]}" = "yes" ]; then # use DHCP to bring interface up
if [ ! "${DHCP_HOSTNAME[$1]}" = "" ]; then
echo "/etc/rc.d/rc.inet1: /sbin/dhcpcd -d -t 10 -h ${DHCP_HOSTNAME[$1]} eth${1}" | $LOGGER
/sbin/dhcpcd -d -t 10 -h ${DHCP_HOSTNAME[$1]} eth${1}
else
echo "/etc/rc.d/rc.inet1: /sbin/dhcpcd -d -t 10 eth${1}" | $LOGGER
/sbin/dhcpcd -d -t 10 eth${1}
fi
else # bring up interface using a static IP address
if [ ! "${IPADDR[$1]}" = "" ]; then # skip unconfigured interfaces
# Determine broadcast address from the IP address and netmask:
BROADCAST=`/bin/ipmask ${NETMASK[$1]} ${IPADDR[$1]} | cut -f 1 -d ' '`
# Set up the ethernet card:
echo "/etc/rc.d/rc.inet1: /sbin/ifconfig eth${1} ${IPADDR[$1]} broadcast ${BROADCAST} netmask ${NETMASK[$1]}" | $LOGGER
/sbin/ifconfig eth${1} ${IPADDR[$1]} broadcast ${BROADCAST} netmask ${NETMASK[$1]}
else
if [ "$DEBUG_ETH_UP" = "yes" ]; then
echo "/etc/rc.d/rc.inet1: eth${1} interface is not configured in /etc/rc.d/rc.inet1.conf" | $LOGGER
fi
fi
fi
else
if [ "$DEBUG_ETH_UP" = "yes" ]; then
echo "/etc/rc.d/rc.inet1: eth${1} is already up, skipping" | $LOGGER
fi
fi
else
if [ "$DEBUG_ETH_UP" = "yes" ]; then
echo "/etc/rc.d/rc.inet1: eth${1} interface does not exist (yet)" | $LOGGER
fi
fi
}
# Function to take down an Ethernet interface:
eth_down() {
if grep eth${1}: /proc/net/dev 1> /dev/null ; then
if [ "${USE_DHCP[$1]}" = "yes" ]; then
echo "/etc/rc.d/rc.inet1: /sbin/dhcpcd -k -d eth${1}" | $LOGGER
/sbin/dhcpcd -k -d eth${1} || /sbin/ifconfig eth${1} down
sleep 1
else
echo "/etc/rc.d/rc.inet1: /sbin/ifconfig eth${1} down" | $LOGGER
/sbin/ifconfig eth${1} down
fi
fi
}
#####################
# GATEWAY FUNCTIONS #
#####################
# Function to bring up the gateway if there is not yet a default route:
gateway_up() {
if ! /sbin/route -n | grep "^0.0.0.0" 1> /dev/null ; then
if [ ! "$GATEWAY" = "" ]; then
echo "/etc/rc.d/rc.inet1: /sbin/route add default gw ${GATEWAY} metric 1" | $LOGGER
/sbin/route add default gw ${GATEWAY} metric 1 2>&1 | $LOGGER
fi
fi
}
# Function to take down an existing default gateway:
gateway_down() {
if /sbin/route -n | grep "^0.0.0.0" 1> /dev/null ; then
echo "/etc/rc.d/rc.inet1: /sbin/route del default" | $LOGGER
/sbin/route del default
fi
}
############
### MAIN ###
############
case "$1" in
'start') # "start" brings up all available interfaces:
lo_up
eth_up 0
eth_up 1
eth_up 2
eth_up 3
gateway_up
;;
'stop') # "stop" takes down all existing interfaces:
gateway_down
eth_down 3
eth_down 2
eth_down 1
eth_down 0
lo_down
;;
eth?_start) # "eth?_start" will start the specified interface
INUM=`echo $1 | /bin/cut -c 4`
eth_up $INUM
;;
eth?_stop) # "eth?_stop" will stop the specified interface
INUM=`echo $1 | /bin/cut -c 4`
eth_down $INUM
;;
eth?_restart) # "eth?_restart" will take the specified interface down and up again
INUM=`echo $1 | /bin/cut -c 4`
eth_down $INUM
eth_up $INUM
;;
*) # The default is to bring up all interfaces:
lo_up
eth_up 0
eth_up 1
eth_up 2
eth_up 3
gateway_up
esac
# End of /etc/rc.d/rc.inet1
|
regards
Last edited by b0nd; 03-25-2006 at 07:48 PM.
|
|
|
All times are GMT -5. The time now is 11:29 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|