Koozali.org: home of the SME Server

Configuring eth0 and eth1 as gateway/server

Mike Stoddart

Configuring eth0 and eth1 as gateway/server
« on: January 25, 2000, 04:48:27 PM »
I'm currently using Redhat 6.1 as my server, which is connected through an ADSL connection. Currently eth0 is connected to my ADSL "modem" and configured with my internet static ip address. eth1 is connected to my internal network (one PC), and is configured as 192.168.150.1.

When I installed E-Smith, the only way I could get the e-smith-manager to work was when eth0 was configured for my internal network, and eth1 was configured for the internet; the opposite of how it has always been.

I suppose my question is, does E-Smith assume that eth0 will always be connected to the internet, and eth1 to the internal network? Can I select this?

And now to the stupid admission! I downloaded E-Smith 3.1, and burnt it onto a CD, but when I installed it, it shows up as version 3.0. Did I really download the wrong version, or is this a cosmetic bug? I'm putting my money on this idiot downloading the wrong file!

Thanks

Joseph Morrison

RE: Configuring eth0 and eth1 as gateway/server
« Reply #1 on: January 25, 2000, 06:14:21 PM »
Hello Mike,

Thanks for your interest in the e-smith server and gateway!

> And now to the stupid admission! I downloaded E-Smith 3.1, and
> burnt it onto a CD, but when I installed it, it shows up as
> version 3.0. Did I really download the wrong version, or is
> this a cosmetic bug? I'm putting my money on this idiot
> downloading the wrong file!

Cosmetic error! You probably downloaded the right file. Try logging into the console (ctrl-alt-F3, log in as "root", use your current system password) and then type the command:

rpm -qa | grep e-smith

If the result shows version 3.0.4 then you have e-smith 3.1.

As for your ethernet configuration, you are correct that eth0 always refers to the local network - whether you're in server-only mode, dialup server/gateway mode, or dedicated server/gateway mode.

This assumption simplifies the configuration templates quite a bit. If we made it switchable, then sometimes eth0 would be local (for server-only and for dialup) and sometimes eth1 would be local.

Does this create any problems in your situation?

Best regards,
- Joseph Morrison

Mike Stoddart

RE: Configuring eth0 and eth1 as gateway/server
« Reply #2 on: January 25, 2000, 06:34:11 PM »
I dont honestly know if it creates problems. Using Redhat I have eth0 connected to my ISP which always works. Using E-Smith, it configures eth1 as my ISP connection, and eth0 as my local network. But even though eth0 is physically connected to my ADSL modem, I can still use a browser to run the admin software! I'm actually very confused! The old addage "if it ain't broke, don't fix it" springs to mind, but I dont know if it is broken.

I can't swap the cables, as the eth0 card doesn't have coax, which I use to connect to my local network.

I haven't managed to connect to the server from the internet. I haven't tried, so I don't know if it will work in this strange reversed configuration.

Am I making sense? I'm trying to explain this phenomenon I'm seeing, but I'm not sure if I'm explaining it properly.

(P.S. nice to see you're based in Ottawa)

Joseph Morrison

RE: Configuring eth0 and eth1 as gateway/server
« Reply #3 on: January 25, 2000, 06:51:53 PM »
Hi Mike!

> I dont honestly know if it creates problems. Using Redhat I
> have eth0 connected to my ISP which always works. Using
> E-Smith, it configures eth1 as my ISP connection, and eth0 as
> my local network. But even though eth0 is physically connected
> to my ADSL modem, I can still use a browser to run the admin
> software! I'm actually very confused! The old addage "if
> it ain't broke, don't fix it" springs to mind, but I dont
> know if it is broken.

Hmm - this sounds sort of broken :-) Are your client machines able to access the Internet via the e-smith server? If so, I'm at a loss to explain why it's working. Are you completely certain that it's eth0 which is connected to your ADSL modem?

> I can't swap the cables, as the eth0 card doesn't have coax,
> which I use to connect to my local network.

Ah, I see now. Is it an option to swap the two cards within your PC? Usually eth0, eth1, etc. are numbered according to which slots they are in within your machine.

> (P.S. nice to see you're based in Ottawa)

Yes, great place to start Linux-oriented companies :-)
Best regards,
- Joe

Mike Stoddart

RE: Configuring eth0 and eth1 as gateway/server
« Reply #4 on: January 25, 2000, 06:58:23 PM »
> Hmm - this sounds sort of broken :-) Are your client machines
> able to access the Internet via the e-smith server? If so, I'm
> at a loss to explain why it's working. Are you completely
> certain that it's eth0 which is connected to your ADSL modem?

Don't know!

>
> > I can't swap the cables, as the eth0 card doesn't have
> coax, > which I use to connect to my local network.
>
> Ah, I see now. Is it an option to swap the two cards within
> your PC? Usually eth0, eth1, etc. are numbered according to
> which slots they are in within your machin....

Don't know! Maybe I've been wrong all this time.

I won't get chance to re-install again until later this week, so thanks for your help!

Charlie Brady

RE: Configuring eth0 and eth1 as gateway/server
« Reply #5 on: January 26, 2000, 03:23:44 AM »
Mike Stoddart wrote:

> I'm currently using Redhat 6.1 as my server, which is connected
> through an ADSL connection. Currently eth0 is connected to my
> ADSL "modem" and configured with my internet static
> ip address. eth1 is connected to my internal network (one PC),
> and is configured as 192.168.150.1.
>
> When I installed E-Smith, the only way I could get the
> e-smith-manager to work was when eth0 was configured for my
> internal network, and eth1 was configured for the internet; the
> opposite of how it has always been.
>
> I suppose my question is, does E-Smith assume that eth0 will
> always be connected to the internet, and eth1 to the internal
> network? Can I select this?

No, the opposite, it assumes that eth0 is the LAN, and eth1 is the internet connection.

However, which of your LAN cards ends up as eth0 may be different between the e-smith server/gateway and your RedHat installation, and that could be what is confusing you.

If your two LAN cards are different, and use different Linux drivers, then you can easily choose which of them becomes eth0. If they use the same Linux driver it is more difficult - the first one found by the kernel probe becomes eth0, the second eth1, and I'm not sure how you can manipulate the order. If you are in that boat, it might be easiest just to buy a  different LAN card for eth1.

Charlie

Mike Stoddart

RE: Configuring eth0 and eth1 as gateway/server
« Reply #6 on: January 26, 2000, 07:54:09 PM »
>If your two LAN cards are different, and use different Linux drivers, then you can easily choose which of them > becomes eth0.


The two cards do use different drivers, so do you know how I can choose which becomes eth0?

thanks

Mike Stoddart

RE: Configuring eth0 and eth1 as gateway/server
« Reply #7 on: January 27, 2000, 01:35:13 AM »
Obviously the E-Smith server software is smarter than I am! I tried to ignore the fact that the two cards seemed mixed up to me, and it worked!! Full isntall in 10 mins or less!!

Nev Wain

ADSL & SME
« Reply #8 on: May 13, 2002, 04:15:16 PM »
Hello

I have done a search on the forum regarding installing and using ADSL on an existing SME v5 server, but can't find anything - so apologies for a repeat if I have missed it!

I am contemplating upgrading my V90 dial up to ADSL (self install) and I am looking for pointers to ease this transition.

My hardware will not support USB so I am lookin at installing a second NIC (as eth1) and using an ADSL modem with ethernet connection.  Are there any pitfalls that I need to look out for?

Any help appreciated!

Many thanks in advance.

Regards

___

Nev