[CentOS] virtual interfaces

Tony Wicks tonyw at tonyw.com
Wed Sep 28 05:59:31 UTC 2005


Here is a really useful hint if you don't know the syntax of a config 
file... http://webmin.com

Ryan wrote:

>I have CentOS 4 running on an old (early model) p3 with 64 MB RAM. It
>is acting as a router and firewall for my LAN.
>
>CentOS is doing a really good job with Shorewall + DHCPd - on a 10 Mbps
>cable modem, I see ~ 9.7 Mbps of throughput even when numerous tcp
>streams to different LAN hosts are running. 
>
>I would like to add a virtual interface to one of my LAN interfaces. 
>
>My LAN interface (/etc/sysconfig/network-scripts/ifcfg-eth2) looks like:
>
>DEVICE=eth2
>BOOTPROTO=static
>BROADCAST=192.168.10.255
>HWADDR=00:60:08:C3:F9:71
>IPADDR=192.168.10.1
>NETMASK=255.255.255.0
>NETWORK=192.168.10.0
>ONBOOT=yes
>TYPE=Ethernet
>
>
>would adding the below:
>
>/etc/sysconfig/network-scripts/ifcfg-eth2:0
>
>DEVICE=eth2:0
>BOOTPROTO=static
>BROADCAST=192.168.20.255
>HWADDR=00:60:08:C3:F9:71
>IPADDR=192.168.20.1
>NETMASK=255.255.255.0
>NETWORK=192.168.20.0
>ONBOOT=yes
>TYPE=Ethernet
>
>
>Would this create a virtual interface eth0:0 with the IP address
>192.168.20.1?
>
>Thanks in advance. 
>_______________________________________________
>CentOS mailing list
>CentOS at centos.org
>http://lists.centos.org/mailman/listinfo/centos
>  
>





More information about the CentOS mailing list