Re: Double Net cards?


Subject: Re: Double Net cards?
From: Vanja Bucic (vanjab@UDel.Edu)
Date: Fri Mar 30 2001 - 16:53:36 MST


Look at this snippet:

[localhost:~] vanjab% telnet 128.175.14.23
Trying 128.175.14.23...
Connected to 128.175.14.23.
Escape character is '^]'.
Welcome!
This is YellowDog Champion Server 1.2
PowerPC 750 (G3) @233Mhz
login: vanjab
Password:
Last login: Fri Mar 30 17:48:53 from color-g3.bartol.udel.edu

----------------------------------------------------------------

[vanjab@cosray-g3 vanjab]$ ifconfig
bash: ifconfig: command not found
[vanjab@cosray-g3 vanjab]$ /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:05:02:AD:D9:22
           inet addr:128.175.14.190 Bcast:128.175.14.255
Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
           RX packets:375 errors:3 dropped:3 overruns:0 frame:3
           TX packets:88 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:100
           Interrupt:42 Base address:0x1000

lo Link encap:Local Loopback
           inet addr:127.0.0.1 Mask:255.0.0.0
           UP LOOPBACK RUNNING MTU:3924 Metric:1
           RX packets:54 errors:0 dropped:0 overruns:0 frame:0
           TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0

As you can see, I have no link (that I know of) to 128.175.14.23. How
does this work? I have set up my old BMAC card for .190, and it responds
to .23 . I must be very bad at this, everything is messed up in my head
right now.

ping works for both addresses: 190 and 23. But I have only one card
running. Here is my ifcfg-eth0 file

DEVICE=eth0
USERCTL=yes
ONBOOT=yes
BOOTPROTO=none
BROADCAST=128.175.14.255
NETWORK=128.175.14.0
NETMASK=255.255.255.0
IPADDR=128.175.14.190
IPXNETNUM_802_2=""
IPXPRIMARY_802_2="no"
IPXACTIVE_802_2="no"
IPXNETNUM_802_3=""
IPXPRIMARY_802_3="no"
IPXACTIVE_802_3="no"
IPXNETNUM_ETHERII=""
IPXPRIMARY_ETHERII="no"
IPXACTIVE_ETHERII="no"
IPXNETNUM_SNAP=""
IPXPRIMARY_SNAP="no"
IPXACTIVE_SNAP="no"

Anything wrong with this?

Thanks.

On Friday, March 30, 2001, at 06:47 , Bryn Hughes wrote:

> Everything you have there looks right... I really can't figure out why
> your interfaces are acting 'linked'. And judging by the packet counts
> on your NICs, I'd guess you're right about everything going through
> eth0.
>
> What happens when you take down eth0 while running? (ifdown eth0)
>
> If you try to ping an outside address after taking down eth0 what do
> you get?
>
> What's in /etc/sysconfig/network?
> what are the contents of /etc/sysconfig/network-scripts/ifcfg-eth0 and
> ifcfg-eth1?
>
>
> Bryn
>
>> Here is the ifconfig output:
>>
>> eth0 Link encap:Ethernet HWaddr 00:05:02:AD:D9:22
>> inet addr:128.175.14.190 Bcast:128.175.14.255
>> Mask:255.255.255.0
>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>> RX packets:10870 errors:8 dropped:8 overruns:0 frame:8
>> TX packets:2152 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:100
>> Interrupt:42 Base address:0x1000
>>
>> eth1 Link encap:Ethernet HWaddr 00:00:C5:53:B4:A1
>> inet addr:128.175.14.23 Bcast:128.175.14.255
>> Mask:255.255.255.0
>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>> RX packets:393 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:100
>> Interrupt:24 Base address:0x400
>>
>> lo Link encap:Local Loopback
>> inet addr:127.0.0.1 Mask:255.0.0.0
>> UP LOOPBACK RUNNING MTU:3924 Metric:1
>> RX packets:420 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:420 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:0
>>
>> here is netstat -rn output:
>>
>> Kernel IP routing table
>> Destination Gateway Genmask Flags MSS Window
>> irtt Iface
>> 128.175.14.23 0.0.0.0 255.255.255.255 UH 0 0
>> 0 eth1
>> 128.175.14.190 0.0.0.0 255.255.255.255 UH 0 0
>> 0 eth0
>> 128.175.14.0 0.0.0.0 255.255.255.0 U 0 0
>> 0 eth0
>> 128.175.14.0 0.0.0.0 255.255.255.0 U 0 0
>> 0 eth1
>> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
>> 0 lo
>> 0.0.0.0 128.175.14.184 0.0.0.0 UG 0 0
>> 0 eth1
>> 0.0.0.0 128.175.14.184 0.0.0.0 UG 0 0
>> 0 eth0
>>
>> ----------
>> I tried the card from the mac side and it works.
>> Also doing 'telnet 128.175.14.23' (eth1) will connect me to the eth0
>> interface. Everything seems to be going to eth0...
>>
>> I don't know what else to check...
>>
>>
>>
>>
>> On Friday, March 30, 2001, at 06:05 , Bryn Hughes wrote:
>>
>>> Hi there,
>>>
>>> First of all, go to your /etc/sysconfig/network file and make sure
>>> that DEFAULT_GATEWAY=eth1 (if that's what you want)
>>>
>>> Secondly, take a look at the output from /sbin/route. This will tell
>>> you what your box is trying to do.
>>>
>>> If you don't want to use eth0 at all, go to
>>> /etc/sysconfig/network-scripts and delete (or rename) ifcfg-eth0. Or
>>> alternatively open that file and change ONBOOT="yes" to ONBOOT="no".
>>>
>>> Bryn
>>>
>>>> Hi,
>>>> I just installed an additional net card into my AllInOne Mac.
>>>> Everything
>>>> worked fine, or so it looked like.
>>>>
>>>> Problem: all network traffic defaults to eth0 built-in BMAC
>>>> ethernet
>>>> card. I don't want to use this buggy piece of *. That is why I bought
>>>> Farallon FastEther 10/100 TX card. How do I bypass the eth0?
>>>> I tried to just unplug the eth0 cable, but that would also
>>>> render the
>>>> eth1 unusable. The packets would come in eth1, but could not go out
>>>> (probably trying to go out through eth0).
>>>>
>>>> How can I make these two cards self sufficient so eth1 doesn't
>>>> depend on
>>>> eth0? I want to be able to telnet into this computer in case one of
>>>> the
>>>> cards dies (as BMAC does every week)?
>>>>
>>>> Thanks.
>>>>
>>>> PS( tulip version 0.92, kernel version 2.2.17)
>



This archive was generated by hypermail 2a24 : Fri Mar 30 2001 - 16:56:16 MST