View previous topic :: View next topic |
Author |
Message |
olal n00b
Joined: 08 Sep 2002 Posts: 64 Location: Gothenburg, Sweden
|
Posted: Sun Feb 20, 2005 3:42 pm Post subject: Home Router Guide - swap eth1 and eth0 |
|
|
Hi
I am trying to set up a router at home and have followed the Home Router Guide guide at: http://www.gentoo.org/doc/en/home-router-howto.xml
If works really good! Really good guide!
I used to have eth0 to Internet and eth1 to my local lan, but since that guide was written based on the opposite i swapped.. & then I'm starting to loose my IPadress from my ISP.. (I have called them & they sad the problem was at my side) I'm figuring that there is a problem with that network card / DHCP or something like that..
So my question.. is there any simple way of switching between eth0 and eth1 in that "Home Router Guide"? I tried to replace all eth1 with eth0 and vice versa.. but it didn't work..
Any ideas?
Thanks a lot!
.o |
|
Back to top |
|
|
nielchiano Veteran
Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Sun Feb 20, 2005 3:58 pm Post subject: |
|
|
IMHO it should work my just swapping eth0 and eth1
I haven't read the complete howto, so I can't be 100% sure.
If you want to be sure, folow the guide exactly, and swap the connection cables.
How are you connected? ADSL? maybe it is your provider that kills the connection after ... hours (to force you to have a "dynamic" IP).
mine does after 36h |
|
Back to top |
|
|
olal n00b
Joined: 08 Sep 2002 Posts: 64 Location: Gothenburg, Sweden
|
Posted: Sun Feb 20, 2005 4:04 pm Post subject: |
|
|
I thought so to.. but it doesn't work (neither for me or my friend).. I might have done something wrong, but I don't know.
I'm connected through some IP-phone-box-thinige to a 10mbit LAN.. I thinks it's some problems with the connection with some cards.. because the same thing happens when I hook up my laptop direct to the cable.. (but it has been working for 1 year on the other network card) |
|
Back to top |
|
|
angoraspruce Apprentice
Joined: 08 Jan 2005 Posts: 193 Location: Minnesota, USA
|
Posted: Sun Feb 20, 2005 4:09 pm Post subject: Re: Home Router Guide - swap eth1 and eth0 |
|
|
Hello olal,
I'm not certain what you mean by "starting to lose" your IP address, for instance what kind of error messages are you getting, however if you switched from one NIC to another, your ISP's DHCP setup probably noticed the change in MAC address of the new ethernet card, and no longer sees you as who you're supposed to be. Is there an activation process that you do online? For instance with my cable-internet ISP, I merely have to go to a specific web address and register a new NIC.
If it's a problem with specific NIC's, then more information would be helpful.
Best regards |
|
Back to top |
|
|
olal n00b
Joined: 08 Sep 2002 Posts: 64 Location: Gothenburg, Sweden
|
Posted: Sun Feb 20, 2005 4:13 pm Post subject: |
|
|
Hi angoraspruce
There is no messages, I just can't ping any sites anymore.
If I do this
Code: | /etc/init.d/net.eth1 restart |
some times i come online again.. for ~30mins.
The same happends on my laptop.. but not on my other computers..
any ideas? |
|
Back to top |
|
|
kaksi Tux's lil' helper
Joined: 21 May 2004 Posts: 125
|
Posted: Sun Feb 20, 2005 4:16 pm Post subject: |
|
|
Olal is connected to the swedish ISP BredbandsBolaget and it seems like some NICs just doesn't work very well with this isp. The easiest solution of Olal is to add the modules for the networkcar to /etc/modules.autoload.d/kernel-2.x and change the order the modules for the nic are loaded. This way the nic that was eth1 will become eth0 and vice versa. Remember to switch the network cables. |
|
Back to top |
|
|
nielchiano Veteran
Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Sun Feb 20, 2005 4:24 pm Post subject: |
|
|
kaksi wrote: | some NICs just doesn't work very well with this isp |
Then shouldn't you complain to your ISP that your band-new NIC doesn't work with their crappy box? |
|
Back to top |
|
|
olal n00b
Joined: 08 Sep 2002 Posts: 64 Location: Gothenburg, Sweden
|
Posted: Sun Feb 20, 2005 10:54 pm Post subject: |
|
|
nielchiano wrote:
Quote: | Then shouldn't you complain to your ISP that your band-new NIC doesn't work with their crappy box? |
hell ya!
I can't understand what the problem is.. for me a NIC is a NIC is a NIC ^_^
.o |
|
Back to top |
|
|
nexus780 Apprentice
Joined: 17 Sep 2004 Posts: 206 Location: Manchester
|
Posted: Mon Feb 21, 2005 11:54 am Post subject: |
|
|
Well if they build stuff that doesn't work with alot of NICs (ie. so many that you can't go into a shop and just pick any random one) that's quite poor, but then again they might be really cheap so it's worth buying a new NIC for a fiver on eBay Same goes if a fiver is less to you then potentielly spending an afternoon fiddling with incompatible h/w
The swapping around module loading is a good idea, alternatively you could swap the physical positions of the network cards if that's possible. Not necessary tho, if you want to use the home router guide with swapped interfaces just swap eth0 and eth1 around, works fine for mewith (2 PCMCIA network cards on a Pentium 3 laptop. Btw. old laptops are great as linux routers
If you wanna make really sure that you replaced everything properly save the whole html file, find eth1 & replace with eth2, then find eth0 & replace with eth1, then find eth2 and replace with eth0. |
|
Back to top |
|
|
|