Two commands:
$ /sbin/ifconfig eth0:0 192.168.0.4
$ /sbin/route add -host 192.168.0.4 dev eth0:0
(replace that IP with the one you'd like to add)
This change will no longer be in effect after rebooting. Therefor
you must add the two commands to the bottom of your /etc/rc.local
file. Your NIC should now be listening and responding on both this
and the original IP address found in
/etc/sysconfig/network-scripts/ifcfg-eth0
If you want to add add more than one additional IP address, continue
like this:
$ /sbin/ifconfig eth0:0 192.168.0.4
$ /sbin/ifconfig eth0:1 192.168.0.5
$ /sbin/ifconfig eth0:2 192.168.0.6
$ /sbin/route add -host 192.168.0.4 dev eth0:0
$ /sbin/route add -host 192.168.0.5 dev eth0:1
$ /sbin/route add -host 192.168.0.6 dev eth0:2
credit to source: http://unclean.org/howto/secondip.html
- 0 Users Found This Useful
Related Articles
How do I change my remember password options in Google Chrome
Manage your website passwords This article applies to the Google Chrome browser on Windows,...
Change time is Gmail
Correct Your Gmail Time Zone To set your Gmail time zone: Click the gear in your Gmail's...
How to speed up Windows XP use at your own risk
Warning: occasionally people break their PC badly by using this list of suggestions. Usually...
How to run cmd in escalated mode with admin rights to modify firewall
a solution: runas /user:administrator@domainname.local cmd then in the resulting command...
How do I enable auto login in Windows
This article describes how to configure Windows to automate the logon...