Networking Forums

Networking Forums > Computer Networking > Linux Networking > Switching Interfaces

Reply
Thread Tools Display Modes

Switching Interfaces

 
 
Stephen
Guest
Posts: n/a

 
      07-03-2003, 02:27 AM
Currently I have two network cards installed on my system. One coming up as
eth0 and the other, eth1. My question is simple, I would like so that the
cards were switched with respect to eth0 and eth1.


Thanks for the help.
Stephen


 
Reply With Quote
 
 
 
 
Bit Twister
Guest
Posts: n/a

 
      07-03-2003, 02:40 AM
On Thu, 03 Jul 2003 02:27:37 GMT, Stephen wrote:
> Currently I have two network cards installed on my system. One coming up as
> eth0 and the other, eth1. My question is simple, I would like so that the
> cards were switched with respect to eth0 and eth1.
>


I switch cables myself, swap the cards and change /etc/modules.conf
if required (mandrake, redhat)

Please read
http://www.catb.org/~esr/faqs/smart-questions.html

It always helps if you provide some basic system information and what
you are having problems with when you post questions to the
news groups.

That info helps us to provide better examples/responses.

Which window manager/desktop environment,
they have different icons and file access locations.

There are several "linuxes": Red Hat, Slackware, SuSE, Debian, Mandrake,
Caldera, Corel, Yellow Lab, Black Lab, WinLinux, PhatLinux, Linux On A
Floppy, slinux, Trinux, Peanut and
(Rock, Armed, Stampede, Tiny. Power, Coyote) Linux, to name a few.

Always provide what distro and release level you are using
when you post questions (Redhat 6.1, Suse 5.0, Mandrake 8.2,...).

Different distros have different commands, files, and links to files,
pacakges and package/software managers.
Even happens between release levels of the same distribution.

Internet connection problem (ISP, cable, adsl, PPPoE, LAN, dialup, eth0. USB..)

If dhcp, which client (pump, dhcpcd, dhclient,...)

Firewall (Bastille, Tiny, Smoothwall ..) , which type ipchains, iptables,...

Window manger, application problem/question give the name
(gnome, kde, sawmill, kscd, kmix, eroaster, ...) Different
window managers can have different programs.

Give us error messages if you have them.
Look in your logs, /var/log/messages on Redhat and Mandrake.

If it is a shell/script question, give the shell name (bash, tch, zch,...)

Example: Using RH 7.3, kde, dhcpcd though a cable modem on RR in Fortworth Tx.
ipchains Tinyfirewall is disabled. Still cannot get a lease.

 
Reply With Quote
 
Stephen
Guest
Posts: n/a

 
      07-03-2003, 03:05 AM
The cards cant be switched, they are both apart of the motherboard and the
reason i cant just switch the cables is because one of those cards is
patched into a on board switch. Its a redhat system.

"Bit Twister" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Thu, 03 Jul 2003 02:27:37 GMT, Stephen wrote:
> > Currently I have two network cards installed on my system. One coming

up as
> > eth0 and the other, eth1. My question is simple, I would like so that

the
> > cards were switched with respect to eth0 and eth1.
> >

>
> I switch cables myself, swap the cards and change /etc/modules.conf
> if required (mandrake, redhat)
>
> Please read
> http://www.catb.org/~esr/faqs/smart-questions.html
>
> It always helps if you provide some basic system information and what
> you are having problems with when you post questions to the
> news groups.
>
> That info helps us to provide better examples/responses.
>
> Which window manager/desktop environment,
> they have different icons and file access locations.
>
> There are several "linuxes": Red Hat, Slackware, SuSE, Debian, Mandrake,
> Caldera, Corel, Yellow Lab, Black Lab, WinLinux, PhatLinux, Linux On A
> Floppy, slinux, Trinux, Peanut and
> (Rock, Armed, Stampede, Tiny. Power, Coyote) Linux, to name a few.
>
> Always provide what distro and release level you are using
> when you post questions (Redhat 6.1, Suse 5.0, Mandrake 8.2,...).
>
> Different distros have different commands, files, and links to files,
> pacakges and package/software managers.
> Even happens between release levels of the same distribution.
>
> Internet connection problem (ISP, cable, adsl, PPPoE, LAN, dialup, eth0.

USB..)
>
> If dhcp, which client (pump, dhcpcd, dhclient,...)
>
> Firewall (Bastille, Tiny, Smoothwall ..) , which type ipchains,

iptables,...
>
> Window manger, application problem/question give the name
> (gnome, kde, sawmill, kscd, kmix, eroaster, ...) Different
> window managers can have different programs.
>
> Give us error messages if you have them.
> Look in your logs, /var/log/messages on Redhat and Mandrake.
>
> If it is a shell/script question, give the shell name (bash, tch, zch,...)
>
> Example: Using RH 7.3, kde, dhcpcd though a cable modem on RR in Fortworth

Tx.
> ipchains Tinyfirewall is disabled. Still cannot get a lease.
>
>



 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      07-03-2003, 03:22 AM
On Thu, 03 Jul 2003 03:05:18 GMT, Stephen wrote:
> My question is simple, I would like so that the
> cards were switched with respect to eth0 and eth1.
> The cards cant be switched, they are both apart of the motherboard and the
> reason i cant just switch the cables is because one of those cards is
> patched into a on board switch. Its a redhat system.


I guess you missed
Please read
http://www.catb.org/~esr/faqs/smart-questions.html

Always provide distro and release level.

Only other suggestion I have is to change ip addresses and routing

Read the last 4 lines of this post, I'll wait . . . . . . . . . .

I assume you are logged in from the console.

cd /etc/sysconfig/network-scripts
cp ifcfg-eth0 ifcfg-eth0_hold
cp ifcfg-eth1 ifcfg-eth1_hold
cp ifcfg-eth0 ifcfg-eth1
cp ifcfg-eth1_hold ifcfg-eth0

cd /etc/sysconfig/
cp network network_hold
Now change network's GATEWAYDEV="eth0" to GATEWAYDEV="eth1"

route -n
service network restart to load your changes
route -n to see your changes
ping -c 1 somewhere to test your changes

--
The warranty and liability expired as you read this message.
If the above breaks your system, it's yours and you keep both pieces.
Practice safe computing. Backup the file before you change it.
Do a, man command_here or cat command_here, before using it.
 
Reply With Quote
 
Ken Kauffman
Guest
Posts: n/a

 
      07-03-2003, 04:21 PM

"Bit Twister" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Thu, 03 Jul 2003 03:05:18 GMT, Stephen wrote:
> > My question is simple, I would like so that the
> > cards were switched with respect to eth0 and eth1.
> > The cards cant be switched, they are both apart of the motherboard and

the
> > reason i cant just switch the cables is because one of those cards is
> > patched into a on board switch. Its a redhat system.

>
> I guess you missed
> Please read
> http://www.catb.org/~esr/faqs/smart-questions.html
>
> Always provide distro and release level.
>
> Only other suggestion I have is to change ip addresses and routing
>
> Read the last 4 lines of this post, I'll wait . . . . . . . . . .
>
> I assume you are logged in from the console.
>
> cd /etc/sysconfig/network-scripts
> cp ifcfg-eth0 ifcfg-eth0_hold
> cp ifcfg-eth1 ifcfg-eth1_hold
> cp ifcfg-eth0 ifcfg-eth1
> cp ifcfg-eth1_hold ifcfg-eth0
>
> cd /etc/sysconfig/
> cp network network_hold
> Now change network's GATEWAYDEV="eth0" to GATEWAYDEV="eth1"
>
> route -n
> service network restart to load your changes
> route -n to see your changes
> ping -c 1 somewhere to test your changes
>
> --
> The warranty and liability expired as you read this message.
> If the above breaks your system, it's yours and you keep both pieces.
> Practice safe computing. Backup the file before you change it.
> Do a, man command_here or cat command_here, before using it.


get the current MAC addresses for each of the NIC ports and then bind them
in reverse order.

ken k


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Two interfaces Jozza Linux Networking 4 10-27-2008 02:19 PM
Switching from WEP to WPA Computers Wireless Networks 2 06-12-2008 12:03 PM
I'm switching to NTL Steve Broadband 17 01-16-2006 10:20 AM
Switching to LLU Richard Tobin Broadband 1 06-11-2005 11:35 AM
two interfaces kleeper Linux Networking 2 01-26-2005 01:39 PM



1 2 3 4 5 6 7 8 9 10 11