[NTLUG:Discuss] Newbie Question NIC / IP address

Jack Snodgrass idiotboy at cybermail.net
Mon Dec 17 15:59:25 CST 2001


----- Original Message ----- 
From: "Douglas King" <daking at dak1.net>
To: <discuss at ntlug.org>
Sent: Monday, December 17, 2001 3:36 PM
Subject: [NTLUG:Discuss] Newbie Question NIC / IP address


> In Red Hat 7.2, can you assign more than one IP (routable or not) to a 
> single NIC?  If so...please advise how.
> 
> Thanks

People don't like linuxconf, but I never had any problems with it. 
The easy way to do what you want is to 
1). install linuxconf from the 2nd 7.2 RedHat cd
2). use linuxconf to go into the Server Part of the Networking section
3). once there, select alias for ethX ( your nic ) 
4). add the additional IPs. 
exit out of linuxconf and do a /etc/rc.d/init.d/network restart
and you should have your new ips active. 

You can manually enter stuff via the /etc/rc.d/rc.local file. At the 
bottom of the file add:
/sbin/ifconfig ethX:0 xxx.xxx.xxx.xxx
/sbin/ifconfig ethX:1 xxx.xxx.xxx.xxx
etc. 

ifconfig will show you all of your devices. 
The ones with ':X' where X is a number is a IP Alias. 

jack








More information about the Discuss mailing list