Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Home Router Guide - swap eth1 and eth0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
olal
n00b
n00b


Joined: 08 Sep 2002
Posts: 64
Location: Gothenburg, Sweden

PostPosted: Sun Feb 20, 2005 3:42 pm    Post subject: Home Router Guide - swap eth1 and eth0 Reply with quote

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
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Sun Feb 20, 2005 3:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
olal
n00b
n00b


Joined: 08 Sep 2002
Posts: 64
Location: Gothenburg, Sweden

PostPosted: Sun Feb 20, 2005 4:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
angoraspruce
Apprentice
Apprentice


Joined: 08 Jan 2005
Posts: 193
Location: Minnesota, USA

PostPosted: Sun Feb 20, 2005 4:09 pm    Post subject: Re: Home Router Guide - swap eth1 and eth0 Reply with quote

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
View user's profile Send private message
olal
n00b
n00b


Joined: 08 Sep 2002
Posts: 64
Location: Gothenburg, Sweden

PostPosted: Sun Feb 20, 2005 4:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
kaksi
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2004
Posts: 125

PostPosted: Sun Feb 20, 2005 4:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Sun Feb 20, 2005 4:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
olal
n00b
n00b


Joined: 08 Sep 2002
Posts: 64
Location: Gothenburg, Sweden

PostPosted: Sun Feb 20, 2005 10:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
nexus780
Apprentice
Apprentice


Joined: 17 Sep 2004
Posts: 206
Location: Manchester

PostPosted: Mon Feb 21, 2005 11:54 am    Post subject: Reply with quote

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 :D
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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum