[LARTC] ethernet sub-interfaces??

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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=10.0.0.0
NETMASK=255.0.0.0
BROADCAST=10.255.255.255

D. Stimits



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux