LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-29-2003, 10:13 PM   #1
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
Question Dual NIC configuration problem...


Alright, I guess this is a bit of a child-thread from mine posted in the General forum, about what to do with this old 133mhz box...

We're getting DSL soon, and I'm trying to do as much preconfiguring as possible to set it up as a router.

Current config:
Vectorlinux 3.2 (Slackware based) running 2.4.20-pent-ide kernel

Eth0: Kingston NIC running tulip driver
Eth1: Realtek 8139 running on 8139too driver
Eth2: will be Realtek 8139 as well

I'm having trouble configuring each ethernet card individually and getting the settings to stick.

i do
ifconfig eth0 inet 192.168.0.3 netmask 255.255.255.0 broadcast 192.168.0.3
ifconfig eth1 inet 192.168.0.4 netmask 255.255.255.0 broadcast 192.168.0.4

and those settings work for me.

after reboot, the settings are lost... what file dictates what settings will be used on boot?

I suspect it's /etc/rc.d/rc.inet1 and rc.inet2 after doing some grep-ing.

Second, even with either one of these set up right, I can't seem to ping my windows machine, set as 192.168.0.1 255.255.255.0

Anyway, just trying to make some first steps towards building this router.

Thanks-
Shade

Last edited by Shade; 05-30-2003 at 01:07 PM.
 
Old 05-29-2003, 10:46 PM   #2
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418

Original Poster
Blog Entries: 1

Rep: Reputation: 46
Alright, I've run into another problem.

I just connected this computer to the project box at eth0 and then eth1 with a crossover, and cannot ping either card, using either address...

I tried changing the broadcast settings, so this is what ifconfig reports now:

eth0:
ip: 192.168.0.3
mask: 255.255.255.0
bcast: 192.168.0.255

eth1:
ip: 192.168.0.4
mask: 255.255.255.0
bcast: 192.168.0.255

yet I still can't ping the computer I hook up with a crossover, to either NIC.

it's setup as follows:
eth0:
ip: 192.168.0.2
mask: 255.255.255.0
bcast: 192.168.0.255

What gives??

Last edited by Shade; 05-30-2003 at 12:48 AM.
 
Old 05-30-2003, 12:51 AM   #3
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418

Original Poster
Blog Entries: 1

Rep: Reputation: 46
Update:

I also get an error on bringing up either card... both from boot, and manually with
ifconfig eth0 (or eth1) up

they give me:
eth0: setting half-duplex based on MII#1 link partner capability of 0080

eth1: Setting half-duplex based on auto-negotiated partner ability 0000

Is there a way to force full duplex? could this be part of the problem?
 
Old 05-30-2003, 01:06 PM   #4
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418

Original Poster
Blog Entries: 1

Rep: Reputation: 46
bump... I really need help here
 
Old 05-31-2003, 06:11 PM   #5
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418

Original Poster
Blog Entries: 1

Rep: Reputation: 46
... been losing sleep over this....
 
Old 06-01-2003, 10:34 AM   #6
akaBeaVis
LQ Guru
 
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109

Rep: Reputation: 45
I don't see where you're doing anything with the routing table, eg "route add..." type of stuff.
 
Old 06-01-2003, 12:47 PM   #7
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
can the router ping its own interfaces?

from the router itself can you do "ping 192.168.0.3" and get back replies? And the same for the .4 of course.
 
Old 06-01-2003, 06:47 PM   #8
akaBeaVis
LQ Guru
 
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109

Rep: Reputation: 45
yes, you should be able to type "ping 192.168.x.xxx" in a console and get a response, does an "ifconfig -a" list all cards' MAC addresses correctly?
 
Old 06-01-2003, 06:56 PM   #9
trently29
LQ Newbie
 
Registered: May 2003
Posts: 13

Rep: Reputation: 0
This might help....

http://www.linuxhomenetworking.com/network-linux.htm
 
Old 06-02-2003, 04:35 PM   #10
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418

Original Poster
Blog Entries: 1

Rep: Reputation: 46
Yup, it does list everything correctly- i foud part of the problem though, my bios was set incorrectly to enable Plug and Pray... after disabling that, I've been able to wade through some more how-tos to get this a bit more sorted out.

Thanks guys
 
  


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
Intel D845GLLY + Multiple Intel Pro 100 NICs + kernel 2.6.x = NICs don't work egable Linux - Hardware 0 02-04-2005 02:30 PM
Setting up two nics with ntop in Debian bazagee Linux - Networking 0 02-13-2004 03:40 PM
Setting up an OpenBSD firewall... Got OBSD installed, can't see both nics! dboyer *BSD 5 01-18-2004 09:02 PM
D-Link 650+ (ARRRGGGG!) Additional Questions--How to add default gw to script? rekkert Linux - Networking 4 11-18-2003 11:18 AM
Setting up Redhat squid gateway with dual NICs wrathyimp Linux - Networking 13 06-12-2003 11:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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