LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Setting up additional NICs, questions (https://www.linuxquestions.org/questions/linux-networking-3/setting-up-additional-nics-questions-62598/)

Shade 05-29-2003 10:13 PM

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

Shade 05-29-2003 10:46 PM

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??
:confused: :scratch:

Shade 05-30-2003 12:51 AM

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?

Shade 05-30-2003 01:06 PM

bump... I really need help here :confused:

Shade 05-31-2003 06:11 PM

... been losing sleep over this....

akaBeaVis 06-01-2003 10:34 AM

I don't see where you're doing anything with the routing table, eg "route add..." type of stuff.

Robert0380 06-01-2003 12:47 PM

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.

akaBeaVis 06-01-2003 06:47 PM

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?

trently29 06-01-2003 06:56 PM

This might help....
 
http://www.linuxhomenetworking.com/network-linux.htm

Shade 06-02-2003 04:35 PM

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 :)


All times are GMT -5. The time now is 08:30 AM.