You are not logged in.
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
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
Yes I am so, presumably, I must use netcfg instead? I'll give that go.
Offline
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
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
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