LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-22-2013, 08:52 PM   #1
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 742

Rep: Reputation: 78
Does this make sense?


so, below is a how-to for swapping the service iface on a RSA A130/A250 appliance. does this make sense? am i missing something, isnt this the same as just swapping IP in the the files?


Code:
The real fix for this problem is to RMA the non-working appliance, however, it is fairly easy to swap over to the currently unused eth1 from eth0,

as a temporary measure, to keep the appliance in production while awaiting RMA.

Short summary :

a) flip the roles of the /etc/sysconfig/network-scripts ifcfg-eth0 file and ifcfg-eth1 file,

b) and adjust the routing table [if needed], to eth1 with the /sbin/route command. 

Detailed steps:

1) establish access to the appliance with a direct keyboard and monitor

2) login as emcsrv

3) become root user with 'sudo su' and emcsrv password

4) become user rsaadmin with 'sudo su rsaadmin'

5) shut down rsa services cleanly with ./rsaam stop all (appliance 3.0), or ./rsaserv stop all (AMX)

6) 'exit' to become root user

7) go to /etc/sysconfig/network-scripts directory

8) make backup copies of ifcfg-eth0 file and ifcfg-eth1

     a) cp ifcfg-eth0 bak-ifcfg-eth0

     b) cp ifcfg-eth1 bak-ifcfg-eth1

NOTE: the backup files cannot begin with 'ifcfg'

If the system boots and sees any files named 'ifcfg...' it will try to load them.

So here we name the backups 'bak-ifcfg' instead of 'ifcfg-bak...' to prevent problems later

9) get the MAC addresses of each interface

     a) cat ifcfg-eth0

     make note of the mac address

     b) cat ifcfg-eth1

     make note of the mac address

10) flip the files and make eth1 the active interface

     a) rm ifcfg-eth0

     b) rm ifcfg-eth1

     c) cp bak-ifcfg-eth0 ifcfg-eth1

     d) cp bak-ifcfg-eth1 ifcfg-eth0

     e) now edit file ifcfg-eth0 and change the first line to say eth0 (it will say eth1)

     f) and also change the mac address in here to be eth0 mac address (should only be the last octet needing change)

     g) now edit file ifcfg-eth1 and change the first line to say eth1 (it will say eth0)

     h) and also change the mac address in here to be eth1 mac address (should only be the last octet needing change)

11) reboot
 
Old 05-23-2013, 02:38 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,955
Blog Entries: 13

Rep: Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986
It's swapping the physical interfaces to be defined differently in the system. What used to be eth0 will now be eth1, and vice versa. It is not the same as swapping the IP addresses. My guess is that the card for eth0 fulfills a primary activity on their system and the card for eth1 fulfills the backup role. Guessing, but if the eth0 interface is not working properly, they recommend that you swap which interface is named eth0 and use that as your primary. Ultimately they're saying that you should return the appliance via RMA.
 
1 members found this post helpful.
Old 05-30-2013, 07:39 PM   #3
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 742

Original Poster
Rep: Reputation: 78
if you edit the two files, swap the eth[x] and MAC, then rename the files one for the other, doesnt that leave only the IP as being different (eth0 IP is now on eth1, and vice-versa)?

sounds like the RSA services are bound to the iface that has specific IP and/or MAC, so to me it seems easier to just swap IP and MAC from one file to the other.
 
1 members found this post helpful.
Old 05-31-2013, 08:03 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,955
Blog Entries: 13

Rep: Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986
Yeah, the IP has been swapped to a different physical card, because the process identifies the cards differently now. My assumption is because there was something wrong with the original primary card which used to be eth0. Seems pretty clear from their statement that the complete solution is to return the appliance; however they have a work-around until you get a replacement.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What sense does this make (Javascript)? resetreset Programming 3 12-04-2010 12:16 AM
This just doesn't make any sense! FreezEy Debian 8 04-18-2006 08:35 PM
How does this make sense? Trinity22 Linux - General 2 03-30-2005 12:45 AM
Does this make sense? (RPM Q:) admstng Mandriva 4 12-30-2004 07:49 AM
Ya sure this make sense Edward78 General 2 09-23-2003 03:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration