[NTLUG:Discuss] Newbie Question NIC / IP address
greg hewett
greg at hewetts.com
Mon Dec 17 17:40:56 CST 2001
You might want to do this for several reasons.
1. You are migrating to a new IP subnet, and you need to answer to both IP's
during the transition.
2. You have two subnets on the same physical network. i.e. you might have a
10.x.x.x network on your public network space for convenience
3. High Availablity implementations.
If you want to do this with ifconfig, you would use eth0:1 as your virtual
device and ifconfig the device up like you would eth0.
For example:
ifconfig eth0:1 10.0.0.1 netmask 255.255.255.0 up
Greg
On Mon, Dec 17, 2001 at 04:33:16PM -0600, Matt Caldwell wrote:
> Quick "newb" question.
> What is the purpose of doing this??
> --matt
>
> -----Original Message-----
> From: discuss-admin at ntlug.org [mailto:discuss-admin at ntlug.org] On Behalf
> Of Jack Snodgrass
> Sent: Monday, December 17, 2001 3:59 PM
> To: discuss at ntlug.org
> Subject: Re: [NTLUG:Discuss] Newbie Question NIC / IP address
>
>
>
> ----- 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
>
>
>
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
More information about the Discuss
mailing list