TalkTopics.com - Talk about everything on earth!

Go Back   TalkTopics.com > TalkTopics Community > Computers & Technology > Linux / Open Source

Linux / Open Source Talk about Linux and Open Source stuffs here. On the desktop or as a server, talk all you want and get response from others around the world.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 12-28-2006, 12:00 PM
carlosferns carlosferns is offline
Junior Member
Friendizen
 
Join Date: Dec 2006
Posts: 7
carlosferns is on a distinguished road
Adding secondary ip address in linux

These are the steps to add the second IP address to your existing network adapter.

Become root on your system, either by logging into that account or using the su command.

Change your current directory to the /etc/sysconfig/network-scripts directory with the command:
cd /etc/sysconfig/network-scripts

Check for existing network adapters with the command:
ls ifcfg-*

In most instances, you will see the files ifcfg-eth0 and ifcfg-lo. If you see other files with any other names and are unfamiliar with configuring TCP/IP, you may want to consult with your system administrator before proceeding or contact support@usefulutilities.com.

Edit /etc/hosts and add a line for your new address and name such as:
198.168.1.1 xyx.mydomain.com

To create the new interface, you will copy ifcfg-eth0 to ifcfg-eth0:0 with the command:
cp ifcfg-eth0 ifcfg-eth0:0
Next, edit icfg-eth0:0 and change the DEVICE line to be similar to:
DEVICE=eth0:0
and change the IPADDR line to be similiar to:
IPADDR=198.168.1.1

To activate the new IP address, issue a command similar to:
./ifup eth0:0
Reply With Quote
Reply



Thread Tools

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Keep your e-mail address more private hassen1 Internet 1 04-24-2007 06:14 PM
Adding text to your digital photos hassen1 Digital Cameras 0 11-16-2006 12:18 PM
Wrong e-mail address hassen1 Funny Jokes 7 11-11-2006 05:04 AM
Adding avatar and emoticons in forums psystar General Discussion 2 06-13-2006 11:26 PM
What's NAT (Network Address Translation) richardmarx General Topics 0 04-19-2006 01:25 PM


All times are GMT +1. The time now is 03:27 AM.





Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6