Home · News · Articles · Forum · Downloads · Search Your IP: 38.103.63.58 · Today: Monday, January 05, 2009
Main Menu
Home
News
Articles
- General
- Common Software
- Tips & Tricks
- Networking
- Multimedia
- Operation Systems
- Hardware
- Programming
- Security
- Configs
- CMS
Forum
Downloads
Gallery
Search
FAQ
Links
Ping us
Top 10 Article Posters
empty 37
nemo 3
linuxGuru 1
scary 1
tashak 1
siluni 1
Poll
What OS are you using?

Linux

*BSD

Solaris

Mac OS

Windows

Other

You must login to vote.
How to configure additional IP address in Linux
How to configure additional IP address in Linux
This tutorial will show you how to configure additional IP address on NIC under Red Hat Linux or Fedora Core.

The following procedure uses eth0 as an example for assigning a second TCP/IP address.

Use the following command to add the IP address:
ifconfig eth0:1 xxx.xxx.xxx.xxx

Where xxx.xxx.xxx.xxx is the actual IP address.
Note that eth0:1 is in case you add only a second IP address. Same way you can add eth0:2, eth0:3 and so on.

To make the changes permanent you will need to add the IP also in the network scripts which are being started on system boot.

1. Verify that your /etc/sysconfig/network-scripts/ifcfg-eth0 file does not have a GATEWAY= parameter in it. If it does, remove it and add that parameter to /etc/sysconfig/network.

2. Copy your /etc/sysconfig/network-scripts/ifcfg-eth0 file to a new file called: /etc/sysconfig/network-scripts/ifcfg-eth0:1

cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:1

3. In /etc/sysconfig/network-scripts/ifcfg-eth0:1 change DEVICE=eth0 to DEVICE=eth0:1

4. In /etc/sysconfig/network-scripts/ifcfg-eth0:1 modify IPADDR= to match the additional TCP/IP address you wish to use.


5. Start the secondary interface:
ifup eth0:1
Comments
No Comments have been Posted.
Post Comment
Please Login to Post a Comment.
Ratings
Rating is available to Members only.

Please login or register to vote.

No Ratings have been Posted.
Search

Enter words:


Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Users Online
Guests Online: 1
No Members Online
Registered: 56
Newest: Grantt721
Random Gallery Image
My Desktop
My Desktop
Screenshots
Friends
DJs Place
Fresh Flash Games
Free Wallpapers
PHP Scripts
Levski
Flash Games
HouseFreaks.Net
Improvements
Bookmark and Share
News Feeds
Article Feeds
Forum Feeds
Spam Poison
Valid CSS!
OSGuides.net 2007 - 2008 Creative Commons License.