Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: Two Ethernet cards  (gelezen 1281 keer)

Two Ethernet cards
« Gepost op: 2007/12/15, 23:28:37 »
Sorry if this can be found in this magnificent forum (I've searched, but could'nt find it) and I'm VERY new to Ubuntu (love it already).
Since edual-booting (Vista-Ubuntu 7.10) I have to transfer data between vista and UBUNTU!
I have a Sitecom router (WL-018/2) with 4 ports and WiFi, which are all occupied. Is it possible to connect a switch to one of these ports to connect f.i a NAS?

Another question is: can I put 2 Ethernet-cards in a conmputer to connect to my home-network AND directly to the NAS?

T.i.a.

Offline siegi

  • Lid
Two Ethernet cards
« Reactie #1 Gepost op: 2007/12/16, 01:18:52 »
This is a dutch forum.  For support in English go to http://ubuntuforums.org/

Two Ethernet cards
« Reactie #2 Gepost op: 2007/12/16, 03:40:37 »
It can be done, but I think it go'to deep for a dutch forum. ???

I can't answer you question for sure ???

see the manpage interfaces(5), specifically the up command.
put the route command in /etc/network/interfaces. There is a command that
 executes arbitrary
 commands when ifup (or ifdown) is called. See following example from one of
 my machines.

 iface eth0 inet static
         address         67.66.8.41
         netmask         255.255.255.248
         network         67.66.8.120
         broadcast       67.66.8.127
         up              /sbin/route add -host 67.66.8.41 eth0
         gateway         67.66.8.46

You need to setup both nic's seperated...

Note:
Make the settings for eth0 match the network settings of the gateway machine. Set the gateway for the gateway machines ip.
Then give eth1 its own subnet, like 192.168.5.1, or whatever the existing network (with the clients) is using.
If the gateway resides on the internal network (and you won't be connecting them directly) then simply set eth0 with settings matching the internal network, and of course set the gateway.

You only need two nics if you are running two networks (LAN and one to connect to cable modem or ppp0 for dial-up modem).
I don't suffer from insanity, I enjoy every minute of it.
Microsoft geeft je een raam, Linux geeft je een heel huis :D

Two Ethernet cards
« Reactie #3 Gepost op: 2007/12/16, 12:39:50 »
Thank you Gandyman. I think I can figure it out now!

Two Ethernet cards
« Reactie #4 Gepost op: 2007/12/16, 17:13:57 »
Sorry Siegie. ik was nog helemaal in de Engelse handleidingen e.d.

Two Ethernet cards
« Reactie #5 Gepost op: 2007/12/16, 21:29:34 »
Nah gaan we toch gewoon verder in het NL ??

:D
I don't suffer from insanity, I enjoy every minute of it.
Microsoft geeft je een raam, Linux geeft je een heel huis :D

Two Ethernet cards
« Reactie #6 Gepost op: 2007/12/16, 22:40:04 »
Right on!!! :-)