You are not logged in.

#1 2011-07-29 17:29:43

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 794

Multiple network interfaces won't play nicely

I am trying to set up a new computer that I bought to be our home router.  It has two network interfaces - one on board (sky2) and one from a PCI network card (3c59x).

The PCI card (eth0) is  connected to my cable modem and the onboard NIC (eth1) is connected to the network. 

If I configure just eth0 then everything works well. It uses DHCP to get it's config from my ISP and it is then connected to the internet.  As soon as I try and configure the other NIC (using a static ip) everything breaks.  Both NICs (according to ifconfig) have a valid ip - and they look exactly how you would expect them to. The problem is that the internet is gone.  If I try and disable eth1 in rc.conf and then restart the network, it is too quick and, despite claiming to have the appropriate ip, all connection to the internet is gone. Whatever I do, it remains broken until I reboot the computer with only eth0 configured.

I am confident that eth0 and eth1 are the correct interface names every time since I am loading the modules directly in rc.conf and in order.

How can I get these two NICs to play nicely?

Offline

#2 2011-07-29 17:33:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Multiple network interfaces won't play nicely

Are you trying to setup 2 interfaces in rc.conf? It's not supported anymore.
http://www.archlinux.org/news/deprecation-of-net-tools/

Last edited by karol (2011-07-29 17:34:26)

Offline

#3 2011-07-29 17:40:42

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 794

Re: Multiple network interfaces won't play nicely

Yes I am so, presumably, I must use netcfg instead? I'll give that go.

Offline

#4 2011-07-29 17:52:34

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 794

Re: Multiple network interfaces won't play nicely

OK - I've now got everything configured using netcfg profiles and started using net-profiles in the daemons list instead of network.  The results are the same.

For a bit more clarity - in case I'm not understanding my problem correctly - I'm testing internet connectivity by pinging www.google.com.  If I boot the machine with just eth0 configured then that ping works.  If I start eth1 or boot with both then it doesn't.  However, with eth1 configured I can ping something on the internal network.

Any further ideas?

Offline

#5 2011-07-29 19:27:55

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 794

Re: Multiple network interfaces won't play nicely

Ok - I have managed to fix this using the old syntax in rc.conf

Presumably, multiple NIC support will exist before that syntax is no longer supported.

Offline

#6 2011-08-01 11:33:08

beroal
Member
From: Ukraine
Registered: 2009-06-07
Posts: 384
Website

Re: Multiple network interfaces won't play nicely

phunni wrote:

OK - I've now got everything configured using netcfg profiles and started using net-profiles in the daemons list instead of network.  The results are the same. … Any further ideas?

Post your configuration. Writing a netsfg profile is tricky. I wasted a lot of time fighting it.


we are not condemned to write ugly code

Offline

Board footer

Powered by FluxBB