Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

secondary permanent address

Posted on 2003-03-21
1
Medium Priority
?
552 Views
Last Modified: 2008-02-20
how can i specify a permanent secondary address on linux 8.0 as i am having problems specifying it. I am able to specify a temporary one i.e when restarted it goes off.....
0
Comment
Question by:ajavid
1 Comment
 
LVL 3

Accepted Solution

by:
hnminh earned 300 total points
ID: 8185383
you can do it manually by these steps:

- make a copy of /etc/sysconfig/network-scripts/ifcfg-eth0 in the same place and name it ifcfg-eth0:0. I.E. you will have 2 file ifcfg-eth0 and ifcfg-eth0:0 in /etc/sysconfig/network-srcipts
- Open the new created file change these field
----------------------
DEV=eth0:0
IPADDR=x.x.x.x
NETMASK=y.y.y.y
BOOTPROTO=static
ONBOOT=yes
----------------------
any other fileds if exist could be safely deleted.

Here I assume that eth0 is the interface where you want to add the secondary IP, eth0:0 is device for new IP. After making changes, restart network service for new configuration applied.

Hope it help!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month11 days, 12 hours left to enroll

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question