[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to change NIC alias?



Hello,

I think it's easier done graphically from the network or by running redhat-config-network from the terminal. You can edit the interfaces name from here, knowing which is which. But you have to be clearly with this cos if you don't do it well, the NICs won't start up.

Another option is by editing the /etc/sysconfig/network-scripts for the ifcfg-* for the changes you want to make.

The last option (which I have not tested) is to edit the ifconfig-eth* files themselves. The eth* name is always there and I think the mac address too. The location of the files are /etc/sysconfig/networking/devices/* and /etc/sysconfig/networking/profiles/default/*. The ifconfig-eth* must be the same in both for it work.

Thank you and BR,

Mobolaji
/etc/sysconfig/network-scripts

----- Original Message ----- From: <redhat-install-list-request redhat com>
To: <redhat-install-list redhat com>
Sent: Friday, December 29, 2006 9:00 AM
Subject: Redhat-install-list Digest, Vol 34, Issue 23


Send Redhat-install-list mailing list submissions to
redhat-install-list redhat com

To subscribe or unsubscribe via the World Wide Web, visit
https://www.redhat.com/mailman/listinfo/redhat-install-list
or, via email, send a message with subject or body 'help' to
redhat-install-list-request redhat com

You can reach the person managing the list at
redhat-install-list-owner redhat com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Redhat-install-list digest..."


Today's Topics:

  1. Re: Re:installing kernel.2.6.9-42.ELsmp on RHEL 4 64Bit
     (Rick Stevens)
  2. How to change NIC alias? (Linux Man)
  3. RE: How to change NIC alias? (Patrick Rowe)
  4. Re: How to change NIC alias? (Kenneth Tindle)
  5. Re: How to change NIC alias? (Rick Stevens)
  6. Re: How to change NIC alias? (Maxim Veksler)
  7. Re: How to change NIC alias? (Rick Stevens)
  8. Re: How to change NIC alias? (Maxim Veksler)
  9. Sam Peng/USA/FOXCONN is out of the office. (sam peng foxconn com)


----------------------------------------------------------------------

Message: 1
Date: Thu, 28 Dec 2006 09:13:26 -0800
From: Rick Stevens <rstevens vitalstream com>
Subject: Re: Re:installing kernel.2.6.9-42.ELsmp on RHEL 4 64Bit
To: Getting started with Red Hat Linux
<redhat-install-list redhat com>
Message-ID: <1167326006 26788 1 camel prophead corp publichost com>
Content-Type: text/plain

On Thu, 2006-12-28 at 08:50 -0800, Mobolaji Osinuga alcatel-lucent fr
wrote:
Hello,

Did you update your boot parameters? I mean the grub.conf to reflect the new kernel. If this was not done automatically, it will still be loading the old
kernel.

You can try uname -a to check the kernel loaded.

Actually, "uname -r" displays JUST the kernel version.  "uname -a"
displays everything.

And again, unless you do the "make modules_install;make install", the
new kernel will NOT be installed.


Many thanks and BR,

Mobolaji
----- Original Message ----- From: <redhat-install-list-request redhat com>
To: <redhat-install-list redhat com>
Sent: Wednesday, December 27, 2006 9:00 AM
Subject: Redhat-install-list Digest, Vol 34, Issue 21


> Send Redhat-install-list mailing list submissions to
> redhat-install-list redhat com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://www.redhat.com/mailman/listinfo/redhat-install-list
> or, via email, send a message with subject or body 'help' to
> redhat-install-list-request redhat com
>
> You can reach the person managing the list at
> redhat-install-list-owner redhat com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Redhat-install-list digest..."
>
>
> Today's Topics:
>
>   1. installing kernel.2.6.9-42.ELsmp on RHEL 4 64Bit
>      (Sujitkumar Shirkar)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 27 Dec 2006 14:53:57 +0000
> From: "Sujitkumar Shirkar" <sujitkumar_shirkar hotmail com>
> Subject: installing kernel.2.6.9-42.ELsmp on RHEL 4 64Bit
> To: redhat-install-list redhat com
> Message-ID: <BAY125-F226FE5B2571A92E7BA2D9CF9C00 phx gbl>
> Content-Type: text/plain; format=flowed
>
> Hello All
>
> we are installing Mellox Infiniband (IB) card in our new Linux server
> running with RHEL4 64 bit OS with kernel 2.6.9-33ELsmp
>
> the new IB card requries new kernel 2.6.9-42.ELsmp, any link from > where i
> can download it
>
> Well i managed to download kernel-2.6.9-42.EL.src.rpm from web, i used
> following commands to update my kernel but it not showing me at boot
> prompt
>
>
> can you guys advise me on how to update kernel to install IB card in it
>
> i did following commands
>
> # rpm -ivh kernel-2.6.9-42.EL.src.rpm
>
> # rpmbuild -bp --target $(uname -m) kernel-2.6.spec
>
> # cd /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/
>
> # make menuconfig
>
> # enabled IB support and saved the config
>
> # make
>
> # reboot
>
> after reboot i was not able to see updated kernel in my boot prompt any
> help? where i am making mistake?
>
> Please send me step by step kernel update procedure in this case.
>
> Waiting for your reply
>
> Sujitkumar Shirkar
> Muumbai - India
>
> _________________________________________________________________
> Want to know what your favourite stars are up to? Catch the latest > gossip
> in
> Bollywood on MSN Entertainment!
> http://content.msn.co.in/Entertainment/Default
>
>
>
> ------------------------------
>
> _______________________________________________
> Redhat-install-list mailing list
> Redhat-install-list redhat com
> https://www.redhat.com/mailman/listinfo/redhat-install-list
>
> End of Redhat-install-list Digest, Vol 34, Issue 21
> ***************************************************
>


_______________________________________________
Redhat-install-list mailing list
Redhat-install-list redhat com
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request redhat com
Subject: unsubscribe
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens vitalstream com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-  Any sufficiently advanced technology is indistinguishable from a  -
-                              rigged demo.                          -
----------------------------------------------------------------------



------------------------------

Message: 2
Date: Thu, 28 Dec 2006 19:04:49 -0200
From: "Linux Man" <linuxman uru gmail com>
Subject: How to change NIC alias?
To: redhat-install-list redhat com
Message-ID:
<cd66ad610612281304w602f15d5kac14283600bc2744 mail gmail com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hello all.
I'm installing over a PC with 3 ethernet cards, one onboard
(gigabit) and the another two discrete PCI.
During installation I have no choice to control who will be eth0, eth1
and eth2, but I need that eth0 be the onboard ethernet.
In the end of the installation, it turned out to be one of the
discrete ethernet eth0.
I need to change that alias, so that the actual eth0 become eth1 and vice versa.
Thanks a lot



------------------------------

Message: 3
Date: Thu, 28 Dec 2006 16:14:15 -0500
From: "Patrick Rowe" <ptrowe buyersedge cc>
Subject: RE: How to change NIC alias?
To: "'Getting started with Red Hat Linux'"
<redhat-install-list redhat com>
Message-ID: <002601c72ac5$21b01420$9f01a8c0 sdgserver sgd com>
Content-Type: text/plain; charset="us-ascii"

One Fail safe way is to take the add on cards out and do a config. Onboard
will be eth0. Add second card and do config, it will be eth1.
etc

Patrick Rowe
Buyers Edge
567 Vauxhall St Ext
Suite 207
Waterford, CT 06375


-----Original Message-----
From: redhat-install-list-bounces redhat com
[mailto:redhat-install-list-bounces redhat com] On Behalf Of Linux Man
Sent: Thursday, December 28, 2006 4:05 PM
To: redhat-install-list redhat com
Subject: How to change NIC alias?

Hello all.
I'm installing over a PC with 3 ethernet cards, one onboard
(gigabit) and the another two discrete PCI.
During installation I have no choice to control who will be eth0, eth1
and eth2, but I need that eth0 be the onboard ethernet.
In the end of the installation, it turned out to be one of the
discrete ethernet eth0.
I need to change that alias, so that the actual eth0 become eth1 and vice
versa.
Thanks a lot

_______________________________________________
Redhat-install-list mailing list
Redhat-install-list redhat com
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request redhat com
Subject: unsubscribe



------------------------------

Message: 4
Date: Thu, 28 Dec 2006 16:41:08 -0500
From: Kenneth Tindle <ktindle uky edu>
Subject: Re: How to change NIC alias?
To: Getting started with Red Hat Linux
<redhat-install-list redhat com>
Message-ID: <459439F4 9050303 uky edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

man nameif

"name interface"
/sbin/nameif



------------------------------

Message: 5
Date: Thu, 28 Dec 2006 13:50:20 -0800
From: Rick Stevens <rstevens vitalstream com>
Subject: Re: How to change NIC alias?
To: Getting started with Red Hat Linux
<redhat-install-list redhat com>
Message-ID: <1167342620 26788 18 camel prophead corp publichost com>
Content-Type: text/plain

On Thu, 2006-12-28 at 19:04 -0200, Linux Man wrote:
Hello all.
I'm installing over a PC with 3 ethernet cards, one onboard
(gigabit) and the another two discrete PCI.
During installation I have no choice to control who will be eth0, eth1
and eth2, but I need that eth0 be the onboard ethernet.
In the end of the installation, it turned out to be one of the
discrete ethernet eth0.
I need to change that alias, so that the actual eth0 become eth1 and vice versa.
Thanks a lot

You can add the "HWADDR=" clause to
the /etc/sysconfig/network-scripts/ifcfg-ethX file to force binding to
a specific name.


_______________________________________________
Redhat-install-list mailing list
Redhat-install-list redhat com
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request redhat com
Subject: unsubscribe
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens vitalstream com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-       "I'd explain it to you, but your brain might explode."       -
----------------------------------------------------------------------



------------------------------

Message: 6
Date: Thu, 28 Dec 2006 23:52:34 +0200
From: "Maxim Veksler" <hq4ever gmail com>
Subject: Re: How to change NIC alias?
To: "Getting started with Red Hat Linux"
<redhat-install-list redhat com>
Message-ID:
<b400c69a0612281352w7eb56942s7fffc1d94bb579a5 mail gmail com>
Content-Type: text/plain; charset=UTF-8; format=flowed

On 12/28/06, Kenneth Tindle <ktindle uky edu> wrote:
man nameif

"name interface"
/sbin/nameif


Doesn't redhat use udev already?
If so it's quite simple (man udev)

--
Cheers,
Maxim Veksler

"Free as in Freedom" - Do u GNU ?



------------------------------

Message: 7
Date: Thu, 28 Dec 2006 14:42:31 -0800
From: Rick Stevens <rstevens vitalstream com>
Subject: Re: How to change NIC alias?
To: Getting started with Red Hat Linux
<redhat-install-list redhat com>
Message-ID: <1167345751 26788 31 camel prophead corp publichost com>
Content-Type: text/plain

On Thu, 2006-12-28 at 23:52 +0200, Maxim Veksler wrote:
On 12/28/06, Kenneth Tindle <ktindle uky edu> wrote:
> man nameif
>
> "name interface"
> /sbin/nameif
>

Doesn't redhat use udev already?
If so it's quite simple (man udev)

It's not that the device isn't detected, it's that the system is
renaming it.  Often different kernels will scan the PCI bus differently
and the names will change.  I hit this with two kernels with minor rev
changes on a single Dell 2850.  Even the same kernel run on two slightly
different hardware platforms will cause issues.   A Dell 2850 scans the
motherboard first, then the PCI bus.  A Dell 1850 will scan the PCI bus
first, THEN the motherboard.  Sheesh!  Consistency, please!

The most reliable method to tie an interface name to a specific NIC is
to either create an /etc/mactab file with the entries in it, e.g.:

eth0 aa:bb:cc:dd:ee:ff
eth1 gg:hh:ii:jj:kk:ll

or add the "MACADDR=aa:bb:cc:dd:ee:ff" line to the ifcfg-ethX file
involved.  Of the two, I prefer the second one ("MACADDR=").  One less
thing to look at (if you have a problem with NIC naming, check the
network config files instead of something in /etc).  But then, I'm a
lazy cuss!  :-)
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens vitalstream com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-   I haven't lost my mind.  It's backed up on tape somewhere, but   -
-                       probably not recoverable.                    -
----------------------------------------------------------------------



------------------------------

Message: 8
Date: Fri, 29 Dec 2006 00:53:01 +0200
From: "Maxim Veksler" <hq4ever gmail com>
Subject: Re: How to change NIC alias?
To: "Getting started with Red Hat Linux"
<redhat-install-list redhat com>
Message-ID:
<b400c69a0612281453v6d4e52cbs1e8c34d08d02368 mail gmail com>
Content-Type: text/plain; charset=UTF-8; format=flowed

On 12/29/06, Rick Stevens <rstevens vitalstream com> wrote:
On Thu, 2006-12-28 at 23:52 +0200, Maxim Veksler wrote:
> On 12/28/06, Kenneth Tindle <ktindle uky edu> wrote:
> > man nameif
> >
> > "name interface"
> > /sbin/nameif
> >
>
> Doesn't redhat use udev already?
> If so it's quite simple (man udev)

It's not that the device isn't detected, it's that the system is
renaming it.  Often different kernels will scan the PCI bus differently
and the names will change.  I hit this with two kernels with minor rev
changes on a single Dell 2850.  Even the same kernel run on two slightly
different hardware platforms will cause issues.   A Dell 2850 scans the
motherboard first, then the PCI bus.  A Dell 1850 will scan the PCI bus
first, THEN the motherboard.  Sheesh!  Consistency, please!

The most reliable method to tie an interface name to a specific NIC is
to either create an /etc/mactab file with the entries in it, e.g.:

        eth0    aa:bb:cc:dd:ee:ff
        eth1    gg:hh:ii:jj:kk:ll

or add the "MACADDR=aa:bb:cc:dd:ee:ff" line to the ifcfg-ethX file
involved.  Of the two, I prefer the second one ("MACADDR=").  One less
thing to look at (if you have a problem with NIC naming, check the
network config files instead of something in /etc).  But then, I'm a
lazy cuss!  :-)
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens vitalstream com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-   I haven't lost my mind.  It's backed up on tape somewhere, but   -
-                       probably not recoverable.                    -
----------------------------------------------------------------------

Part of what udev does is deciding on the name for the mentioned device.
Please this thread as reference
http://thread.gmane.org/gmane.linux.region.israel/28055/focus=28069

--
Cheers,
Maxim Veksler

"Free as in Freedom" - Do u GNU ?



------------------------------

Message: 9
Date: Fri, 29 Dec 2006 01:00:44 -0600
From: sam peng foxconn com
Subject: Sam Peng/USA/FOXCONN is out of the office.
To: redhat-install-list redhat com
Message-ID:
<OF8C667784 E1C13609-ON86257253 00268513-86257253 00268513 houston foxconn com>

Content-Type: text/plain; charset=us-ascii

I will be out of the office starting 12/26/2006 and will not return until 01/03/2007.

I will be out of office during 12/26 to 1/3. I may not access my mail. If there is any production support need, please contact Allen Lin or my manager, Charies Lin.







my backup Allen Lin : Allen-yp-lin foxconn com



my manager Charies Lin : Charies zs lin foxconn com





Regards,

Sam Peng



Foxconn CMMSG NA IT - Fullerton, CA

US Office# 17145253688*8124 , VoIP# 520-8124

US Mobile# 17148634015

IM: sjpeng hotmail com












------------------------------

_______________________________________________
Redhat-install-list mailing list
Redhat-install-list redhat com
https://www.redhat.com/mailman/listinfo/redhat-install-list

End of Redhat-install-list Digest, Vol 34, Issue 23
***************************************************




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]