virtual interfaces

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



Ryan wrote:
> I would like to add a virtual interface to one of my LAN interfaces. 

> 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?

Should work.  You might need to remove HWADDR line.

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux