Koozali.org: home of the SME Server

Swapping eth0-eth1

Marc

Swapping eth0-eth1
« on: June 27, 2002, 02:35:31 AM »
Using e-smith V5.1.2
eth0 is configured as internal network
eth1 is configured as external network

/sbin/e-smith/config show EthernetAssign
gives: EthernetAssign=normal

I would like to have:
EthernetAssign=swapped

So that the internal LAN is eth1, and external network (internet-cable) is eth0

The PC is a Compaq Deskpro 4000 running an internal NIC (eth0) at 10MBps, and a D-Link NIC (eth1) at 100Mbps.

I searched through the archive, and could not find anything.

Thanks.

Marc

Trampas Stern

Re: Swapping eth0-eth1
« Reply #1 on: June 27, 2002, 02:37:54 AM »
When I did the configuration from the console it gave me the option to swap ethernets.

Trampas

Abe Loveless

Re: Swapping eth0-eth1
« Reply #2 on: June 27, 2002, 02:46:04 AM »
A Mitel rep once told me that you'd be better off just switching the cables rather than swapping the eth settings.  He said that it was just another place for the software to get confused.... although he didn't indicate that there was anything wrong with it.

marc

Re: Swapping eth0-eth1
« Reply #3 on: June 27, 2002, 03:45:33 AM »
Swapping the cables is not an option, as I want the 100Mbps card (eth1) to point to the internal network. The 10Mbps (eth0) card is integrated into the Motherboard. If it were two independant cards, swapping slots would do it, but one is part of the Motherboard...

I did not see any options from the console, during install to do so either.

Cheers.

Marc

Dan Brown

Re: Swapping eth0-eth1
« Reply #4 on: June 27, 2002, 04:22:57 AM »
If you have two of the same kind of card, the console config utility gives you the option of swapping the adapters.  If you have different kinds of cards, you don't need that option--just assign the correct driver to the correct card (that is, select the driver for the 100 Mbps card for the internal NIC, and the driver for the 10 Mbps card for the external NIC).  This info is all in TFM.

Damien Curtain

Re: Swapping eth0-eth1
« Reply #5 on: June 27, 2002, 04:41:52 AM »
Marc wrote:
>
> Using e-smith V5.1.2
> eth0 is configured as internal network
> eth1 is configured as external network
>
> /sbin/e-smith/config show EthernetAssign
> gives: EthernetAssign=normal
>
> I would like to have:
> EthernetAssign=swapped
>
> So that the internal LAN is eth1, and external network
> (internet-cable) is eth0
>
> The PC is a Compaq Deskpro 4000 running an internal NIC
> (eth0) at 10MBps, and a D-Link NIC (eth1) at 100Mbps.

Perhaps you could try:
/sbin/e-smith/db configuration set EthernetAssign swapped
/etc/e-smith/events/actions/conf-ethernet

If that worked youd then either want to telinit 1 then back to 7 or perhaps even reboot...

Unless they use the same driver I thought there was an option to select the relevant card during the console config, when it prompts you to select your driver choose the opposite of what is the current setting in these 2 console windows.
--
 Damien

Marc

Re: Swapping eth0-eth1
« Reply #6 on: June 27, 2002, 07:05:40 PM »
Author: Damien Curtain (damien_AT_pagefault.org)
Date:   06-26-02 19:41

Marc wrote:
>
> Using e-smith V5.1.2
> eth0 is configured as internal network
> eth1 is configured as external network
>
> /sbin/e-smith/config show EthernetAssign
> gives: EthernetAssign=normal
>
> I would like to have:
> EthernetAssign=swapped
>
> So that the internal LAN is eth1, and external network
> (internet-cable) is eth0
>
> The PC is a Compaq Deskpro 4000 running an internal NIC
> (eth0) at 10MBps, and a D-Link NIC (eth1) at 100Mbps.

Perhaps you could try:
/sbin/e-smith/db configuration set EthernetAssign swapped
/etc/e-smith/events/actions/conf-ethernet

If that worked youd then either want to telinit 1 then back to 7 or perhaps even reboot...

Unless they use the same driver I thought there was an option to select the relevant card during the console config, when it prompts you to select your driver choose the opposite of what is the current setting in these 2 console windows.
--
Damien

Thanks for the info, that did it!

Marc