View previous topic :: View next topic |
Author |
Message |
paul555 l33t
Joined: 22 Nov 2004 Posts: 612 Location: Greece
|
Posted: Wed Jan 18, 2006 9:45 pm Post subject: 2 networks one pc |
|
|
Hi all sorry for the silly question but here is the situation.For the past 6 months i and 2 friends of mine share an adsl connection(the router and so the line is in the house of one of mine friends) via my eth0.Today i get my new, only mine adsl connection from a different isp and tomorrow i will buy a new ethernet card to plug it in.My question is how can i have the 2 connections up both(and the 2 use dhcp) without any problems.I mean just getting up eth1 is ok? _________________ "LINUX, MS-DOS, Windows : known as the Good, the Bad and the Ugly."
http://www.gnome.gr |
|
Back to top |
|
|
SnEptUne l33t
Joined: 23 Aug 2004 Posts: 656
|
Posted: Thu Jan 19, 2006 12:15 am Post subject: |
|
|
It should work fine as is, unless I have mistaken. I am not using dhcp, so I can't tell if using it makes any difference. But it works on mine using static IP. _________________ "There will be more joy in heaven over the tear-bathed face of a repentant sinner than over the white robes of a hundred just men." (LM, 114) |
|
Back to top |
|
|
sedorox Apprentice
Joined: 13 Feb 2004 Posts: 207
|
Posted: Thu Jan 19, 2006 3:52 am Post subject: |
|
|
I don't think this is going to work. When you run it, you'll have two default gateways, and your computer won't know what to do/where to send the data.
What I would suggest, is if you want to still keep access to the network with everyone else... get the default gateway (dhcp) from your second nic, with your own dsl modem
then assign yourself a static IP on the first nic, the one that goes to everyone else, this way you still have access, but you don't have a default gateway setup for that interface
If I don't make any sense (which sometimes happens) let me know.. I'll try to clear it up... |
|
Back to top |
|
|
sloof3 Tux's lil' helper
Joined: 09 Sep 2004 Posts: 75
|
Posted: Thu Jan 19, 2006 4:00 am Post subject: |
|
|
I'm going to go out on a limb and think that you want to use your connection for yourself and let everyone else just use the original connection. You'll have to enlighten us to your current network topology but I'm going to again assume you have some router currently connected to switch connected to your eth0. Now if that router is doing NAT your in good shape because you can give yourslef eth0 a static IP so you can still access resources on your friends local machines and then use eth1 connected to your new ADSL connection for yourself. Of course all this is is dependent on what your network setup is. |
|
Back to top |
|
|
|