LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-02-2003, 08:56 AM   #1
radix
Member
 
Registered: May 2002
Location: Okinawa, Japan
Distribution: Slackware 9, FreeBSD 5.1, Gentoo 1.4
Posts: 38

Rep: Reputation: 15
cant get eth1 working


ok, im setting up a firewall/nat/server for my new dsl. i installed slack - x, gnome, kde, and all x apps. the 3com (3c59x driver) went in fine, but my SMC EPIC wont load. it gets detected but thats it. i edited rc.inet1 to show the ip, subnet, and gateway, but after i login, ifconfig just shows the 3com. how do i get eth1 going?

its slack 9 with smp enabled.

Last edited by radix; 09-02-2003 at 08:57 AM.
 
Old 09-02-2003, 09:02 AM   #2
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
Did you load the modules for that card?
 
Old 09-02-2003, 09:13 AM   #3
radix
Member
 
Registered: May 2002
Location: Okinawa, Japan
Distribution: Slackware 9, FreeBSD 5.1, Gentoo 1.4
Posts: 38

Original Poster
Rep: Reputation: 15
yes, it get detected durring boot, but i dont see anything when i run ifconfig. do i need to alias it somewhere? eth0 is dhcp from the dsl, but eth1 is static for thje local net.
 
Old 09-02-2003, 10:02 AM   #4
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
I know that you mentioned that its detected in your first post, my question is did you modprobe cardmodulename.o?

Did you also try manually bringing up the interface:

ifconfig eth1 <IP Address> broadcast <Broadcast Range> netmask <Netmask>;
ifconfig eth1 up
 
Old 09-02-2003, 10:10 AM   #5
radix
Member
 
Registered: May 2002
Location: Okinawa, Japan
Distribution: Slackware 9, FreeBSD 5.1, Gentoo 1.4
Posts: 38

Original Poster
Rep: Reputation: 15
imagine that....... thanks
 
Old 09-02-2003, 10:14 AM   #6
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
Quote:
Originally posted by radix
imagine that....... thanks
So it worked?
 
Old 09-04-2003, 11:51 AM   #7
carrierel
LQ Newbie
 
Registered: Aug 2003
Location: Saint-Hubert, Québec
Distribution: Mandrake 9.0
Posts: 18

Rep: Reputation: 0
try to post us the result of:

#route -vn

and

#iptables -L

most of the time the connections problems can be found in the route... But maybe your firewall is blocking something it shouldn't...

it also may be usefull to take a look at your eth1. file somewhere in /etc/rc.d/ (can't remember the exact path and I'm at work so I can't take a look at my tree..)

Last edited by carrierel; 09-04-2003 at 11:49 PM.
 
Old 09-04-2003, 07:02 PM   #8
radix
Member
 
Registered: May 2002
Location: Okinawa, Japan
Distribution: Slackware 9, FreeBSD 5.1, Gentoo 1.4
Posts: 38

Original Poster
Rep: Reputation: 15
im sorry, yes. i did get it working. the module was loaded, however i hadnt edited rc.inet1 correctly. now if i can just figure out why im getting virtual address errors while ftp'ing.........
 
Old 09-04-2003, 07:32 PM   #9
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
Quote:
Originally posted by radix
im sorry, yes. i did get it working. the module was loaded, however i hadnt edited rc.inet1 correctly. now if i can just figure out why im getting virtual address errors while ftp'ing.........
How did you know you didn't edit it correctly?

Virtual address errors? Mind showing us a few lines of log?
 
Old 09-05-2003, 12:31 AM   #10
radix
Member
 
Registered: May 2002
Location: Okinawa, Japan
Distribution: Slackware 9, FreeBSD 5.1, Gentoo 1.4
Posts: 38

Original Poster
Rep: Reputation: 15
http://www.linuxquestions.org/questi...threadid=88485


its not always proftpd that starts it either. sometimes just after running for awhile.
 
Old 09-05-2003, 02:39 PM   #11
grym
Member
 
Registered: Jun 2003
Location: Texas
Distribution: Gentoo/Slackware/Debian/Mandrake
Posts: 285

Rep: Reputation: 30
Azmeen: editting /etc/rc.d/rc.inet1 is pretty easy it has instructions in the file. here's an example of something I did:

#! /bin/sh
# /etc/rc.d/rc.inet1
# This script starts up the base networking system.
#
# Version:
# @(#)/etc/rc.d/rc.inet1 8.1 Tue May 28 15:27:39 PDT 2002 (pjv)

# Edit these values to set up your first Ethernet card (eth0):
IPADDR="192.168.1.1" # REPLACE with YOUR IP address!
NETMASK="255.255.255.0" # REPLACE with YOUR netmask!
# Or, uncomment the following lines to set up eth0 using DHCP:
#USE_DHCP=yes
# If your provider requires a DHCP hostname, uncomment and edit below:
#DHCP_HOSTNAME="CCHOSTNUM-A"

# Edit these values to set up your second Ethernet card (usb0),
# if you have one. Otherwise leave it configured to 127.0.0.1,
# or comment it out, and it will be ignored at boot.
IPADDR2="192.168.129.200" # REPLACE with YOUR IP address!
NETMASK2="255.255.255.255" # REPLACE with YOUR netmask!
# Or, uncomment the following lines to set up usb0 using DHCP:
#USE_DHCP2=yes
# If your provider requires a DHCP hostname, uncomment and edit below:
#DHCP_HOSTNAME2="CCHOSTNUM-A"

# Edit the next line to point to your gateway:
GATEWAY="192.168.1.9" # REPLACE with YOUR gateway!

# You shouldn't need to edit anything below here.

As you can see I added usb0 as my second network interface. It works quite well for my Zaurus (It might be better done thru hotplug somehow but this works nicely for now) . And if I'm not mistaken you can just duplicate these entries to add as many cards as you would like setup on boot.
 
Old 09-05-2003, 08:10 PM   #12
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
Quote:
Originally posted by grym
Azmeen: editting /etc/rc.d/rc.inet1 is pretty easy it has instructions in the file. here's an example of something I did:
Cool... anyway, I never said it was difficult
 
Old 09-06-2003, 02:07 PM   #13
grym
Member
 
Registered: Jun 2003
Location: Texas
Distribution: Gentoo/Slackware/Debian/Mandrake
Posts: 285

Rep: Reputation: 30
Azmeen:

Sorry misunderstood your reply:

"How did you know you didn't edit it correctly?"

Sometimes I read too fast I guess (kinda missed the word "didn't") heh.
 
  


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
cannot activate eth1 using ifup or using ifcfg-eth1 akay Linux - Hardware 10 12-16-2010 05:10 AM
eth1 not working naughtymutt Linux - Networking 4 08-05-2005 02:34 AM
Cable cnxn not working (eth1) on MDK10.0 Official[One machine, just Internet access] techsimian Linux - Networking 3 08-24-2004 12:46 PM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 12:12 PM
Kernel 2.4.22 finds eth0 and eth1 but 2.6.0 does not find eth1 coollink Linux - Networking 3 01-13-2004 07:32 PM


All times are GMT -5. The time now is 09:37 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration