I need to have more than one IP address on a network card. How do I do it?
Novell Cool Solutions: Question & Answer
Reader Rating
from 1 ratings
Q:
I need to have more than one IP address on a network card. How do I do it?
A:
In a terminal windows type in this line for the secondary ip address 10.1.1.10:
/sbin/ifconfig eth0:1 inet 10.1.1.10 netmask 255.255.255.0
EXAMPLE: You can also create a shell script to run for easy creation of seconday ip.
#!/bin/sh
/sbin/ifconfig eth0:1 inet 10.1.1.10 netmask 255.255.255.0
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com
Reader Comments
- Do not specify how to do this properly if we need this available after a reboot command or a /etc/init.d/network stop/start.