Networking Forums

Networking Forums > Computer Networking > Linux Networking > Persisting second IP address on Redhat9

Reply
Thread Tools Display Modes

Persisting second IP address on Redhat9

 
 
reuben@presence-systems.com
Guest
Posts: n/a

 
      01-18-2006, 08:51 AM
Hi all,

I have just added a second IP address to one of our Redhat 9 servers
using the command:

ifconfig eth0:1 10.0.41.60 netmask 255.255.255.0 up

How do I make this change permanent, so that it keeps this second
address after a reboot?

Regards

Reuben
(E-Mail Removed)

 
Reply With Quote
 
 
 
 
Philippe WEILL
Guest
Posts: n/a

 
      01-18-2006, 10:26 AM


(E-Mail Removed) a écrit :
> Hi all,
>
> I have just added a second IP address to one of our Redhat 9 servers
> using the command:
>
> ifconfig eth0:1 10.0.41.60 netmask 255.255.255.0 up
>
> How do I make this change permanent, so that it keeps this second
> address after a reboot?


in /etc/sysconfig/network-scripts
create a file with this name "ifcfg-eth0:1"
yes ":" is in the filename


DEVICE=eth0:1
BOOTPROTO=static
BROADCAST=10.0.41.255
IPADDR=10.0.41.60
NETMASK=255.255.255.0
NETWORK=10.0.41.0
ONBOOT=yes



>
> Regards
>
> Reuben
> (E-Mail Removed)
>

 
Reply With Quote
 
Allen McIntosh
Guest
Posts: n/a

 
      01-19-2006, 01:15 AM
> in /etc/sysconfig/network-scripts
> create a file with this name "ifcfg-eth0:1"


Yes. Just one additional caveat. Sometimes (e.g. with RH9 I believe)
this file needs to be linked other places or things break. Likely
candidates are /etc/sysconfig/networking/devices and
/etc/sysconfig/networking/profiles/default. Run ls -l on all three
directories and see what was done with ifcfg-eth0.
 
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
Persisting a Network share drive to a letter VC Windows Networking 7 04-14-2008 09:33 PM
HELP : BLUEZ on RedHat9.0 dm Linux Networking 2 04-23-2005 06:06 PM
RedHat9 and IP Forwarding stewart menday Linux Networking 1 12-11-2003 01:16 PM
how do i get redhat9 to see novell 4.11 Todd Linux Networking 3 10-30-2003 08:32 PM
xp-redhat9 gamalt Linux Networking 1 10-12-2003 02:20 PM



1 2 3 4 5 6 7 8 9 10 11