LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-24-2006, 05:34 PM   #1
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Rep: Reputation: 47
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?
 
Old 03-24-2006, 08:50 PM   #2
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
hi,
is your slackware detecting the NIC card ???

post the out put of:

#lspci

regards
 
Old 03-24-2006, 09:36 PM   #3
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
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
 
Old 03-24-2006, 10:36 PM   #4
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
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
 
Old 03-25-2006, 07:26 AM   #5
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
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
 
Old 03-25-2006, 10:54 AM   #6
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
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
 
Old 03-25-2006, 11:08 AM   #7
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
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
 
Old 03-25-2006, 07:47 PM   #8
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Slackware-current network initialization trouble Danus ex Slackware 3 05-31-2005 08:37 PM
2 External Nic, 1 Internal Nic Router Problem trevanda Linux - Networking 0 10-13-2004 01:20 AM
building a router with RH9 or slackware help needed dark_templar Linux - Networking 8 07-27-2004 05:31 AM
Slackware 9.1, PCI or onboard NIC, Comcast through a router Frogmum Linux - Networking 11 12-13-2003 05:02 PM
Sound initialization (not drivers) under TP380XD running slackware kyudosha Linux - Laptop and Netbook 3 05-28-2003 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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