Two network adapters

Two network adapters

Post by Andre » Thu, 05 Oct 2000 04:00:00



I've got a problem trying to setup two network adapters in a linux box.
I need to link two different networks: one with bnc, the other with
RJ45.

In the linux box (SUSE 6.2) there are two network adapters:

- Winbond Ne2000-compatible combo (BNC+RJ45) (driver ne2k-pci)
- 3com 3c905B Cyclone  (driver 3c90x)

The system recognizes both the network adapters.
(A) Both drivers included in the kernel: eth0-3c905b, eth1-ne2k-pci
(B) Ne2000 in the kernel, 3com adapter as module: eth0-ne2k-pci,
eth1-3c905b

The problem:

In the scenario (A)
    - I can ping eth0-3c905b from inside and outside
    - I can ping eth1-ne2k from inside, I CANNOT ping it from outside
(from another networked-PC).

In the scenario (B) both are visible inside
    - I can ping eth0-ne2k from inside and outside
    - I can ping eth1-3c905b from inside, I CANNOT ping it from outside
(from another networked-PC).

Thus just one network interface is working at a time.

ANY IDEA?

Thank you

Andrea

-------------------------------------------
"ifconfig" shows the following:

eth0      Link encap:Ethernet  HWaddr 00:00:E8:57:9D:61
          inet addr:172.31.1.20  Bcast:172.31.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:144827 errors:0 dropped:0 overruns:0 frame:3
          TX packets:136761 errors:0 dropped:0 overruns:0 carrier:0
          collisions:1451 txqueuelen:100
          Interrupt:12 Base address:0xe800

eth1      Link encap:Ethernet  HWaddr 00:50:DA:51:9B:FF
          inet addr:172.31.1.21  Bcast:172.31.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          Interrupt:10 Base address:0xe400

--

 
 
 

Two network adapters

Post by Ken Johnso » Thu, 05 Oct 2000 04:00:00


Put one of the adapters on a different subnet.    They can't BOTH be on
172.31.1.0/24

K.


> I've got a problem trying to setup two network adapters in a linux box.
> I need to link two different networks: one with bnc, the other with
> RJ45.

> In the linux box (SUSE 6.2) there are two network adapters:

> - Winbond Ne2000-compatible combo (BNC+RJ45) (driver ne2k-pci)
> - 3com 3c905B Cyclone  (driver 3c90x)

> The system recognizes both the network adapters.
> (A) Both drivers included in the kernel: eth0-3c905b, eth1-ne2k-pci
> (B) Ne2000 in the kernel, 3com adapter as module: eth0-ne2k-pci,
> eth1-3c905b

> The problem:

> In the scenario (A)
>     - I can ping eth0-3c905b from inside and outside
>     - I can ping eth1-ne2k from inside, I CANNOT ping it from outside
> (from another networked-PC).

> In the scenario (B) both are visible inside
>     - I can ping eth0-ne2k from inside and outside
>     - I can ping eth1-3c905b from inside, I CANNOT ping it from outside
> (from another networked-PC).

> Thus just one network interface is working at a time.

> ANY IDEA?

> Thank you

> Andrea

> -------------------------------------------
> "ifconfig" shows the following:

> eth0      Link encap:Ethernet  HWaddr 00:00:E8:57:9D:61
>           inet addr:172.31.1.20  Bcast:172.31.1.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:144827 errors:0 dropped:0 overruns:0 frame:3
>           TX packets:136761 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:1451 txqueuelen:100
>           Interrupt:12 Base address:0xe800

> eth1      Link encap:Ethernet  HWaddr 00:50:DA:51:9B:FF
>           inet addr:172.31.1.21  Bcast:172.31.1.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:12 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
>           Interrupt:10 Base address:0xe400

> --


 
 
 

Two network adapters

Post by Peter Mitchel » Thu, 05 Oct 2000 04:00:00




Quote:> Put one of the adapters on a different subnet.    They can't BOTH be
on
> 172.31.1.0/24

Also you need to do a bit of fiddling to get them both working in the
kernel. There is a paramet line you need to pass through lilo or at the
lilo prompt. Check the network and ethernet HOWTOs for details. If you
are using modules I _think_ both will be detected, but not necessarily
in the order you want them to be. There are parameters you can put into
conf.modules that will control this. Not sure of the details off the top
of my head, but this may point you in the right direction.

Good luck

Peter

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Two network adapters

Post by Andre » Fri, 06 Oct 2000 04:00:00


Hi!

Thank you for your precious tip! Now it's working perfectly!

Thank you once more!

Andrea


> Put one of the adapters on a different subnet.    They can't BOTH be on
> 172.31.1.0/24

 
 
 

1. Two network adapters on seperate networks problem

Greetings. Here's my situation: I have a PC running SuSe 9.3 that has
two NIC's. One of these is configured with a static IP such as:
device: eth0
IP: 10.9.81.204
Subnet Mask: 255.255.255.192
Default Gateway: 10.9.81.193

This is an "isolated" network. By this I mean that the routers on this
network have extensive access control lists so that only certain
machines on this network can see other machines. There is no access
from this network to the public internet, (the proxy server for the
internet is blocked on this network).

My other NIC is configured to get an IP via DHCP (although I could get
a static IP if that would help). It gets an IP like:
device: eth1
IP: 10.9.16.140
Subnet Mask:255.255.255.0
Gateway: 10.9.16.1

This network does have a connection to the public internet through a
proxy server at IP 10.22.2.100.

I can ping and ssh to machines on both networks. Machines on both
networks can see me, even my samba shares. But, I cannot get to the
public internet from my machine, it seems that my connection to the
proxy server is blocked. I suspect it is because my default gateway is
going through eth0 onto the private network. If I remove the default
gateway entry, then I can get to the public internet, but I loose the
connection I have to machines on the "isolated" network network.

Is there some sort of solution that will allow me to have my default
network traffic go to the eth1 adapter configured via DHCP, and still
allow traffic to go through eth0 for the isolated network. Note that
there are about 35 machines I need to connect to on the isolated
network. They have IP's in the 10.9.##. domains, where ## is 52-69. So,
maybe I could use a bunch of route statements to forward traffic to
these machines through the gateway of eth0? Or, maybe I just need to
use a route command to direct the proxy out eth1? I'm kind of at a loss
here, this sort of networking is not my strong suit.

Any help here is greatly appreciated! Thanks!

2. TCP/IP: What's the diff. of BSD and Linux

3. installing two network adapter cards

4. checking group membership

5. Two network adapters anyone ?

6. Apache & mime.types

7. Two network adapters

8. Solaris 2.6 Memory

9. Second network adapter

10. Problems with second network adaptor / routing

11. second network adapter... local intranet between 4 cpus

12. How do I install two network adapters ???

13. two network cards, two(?) networks, one computer...