From mboxrd@z Thu Jan 1 00:00:00 1970 From: "D. Stimits" Date: Tue, 11 Feb 2003 20:54:22 +0000 Subject: Re: [LARTC] ethernet sub-interfaces?? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Luis Miguel Cruz Miranda wrote: > No I don't want ip aliases since I can't use it as devices into my > netfilter-firewall script. > Perhaps you mean something like eth0:0, eth0:1, eth0:2, where each eth0 is the same hardware devies, and :0, :1, and :2 are different IP/Mask/Networks? If you are in Redhat, ~ version 7.3+, you can go to /etc/sysconfig/network-scripts/, and find a file named ifcfg-eth0 for the first hardware device, ifcfg-eth1 for the 2nd device, so on. To add a second IP/Mask/Network to eth0, you can create this file: ifcfg-eth0:1. The contents of that file can be similar to: DEVICE=eth0:1 ONBOOT=yes BOOTPROTO=static IPADDR.0.0.0 NETMASK%5.0.0.0 BROADCAST.255.255.255 D. Stimits _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/