Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

/etc/network/interfaces: What's <eth>:<num> mean? [closed]

In /etc/network/interfaces, I have a physical eth0 and a vlan eth0.10, however there is an additional eth0:0

iface eth0 inet manual

iface eth0.10 inet manual
    vlan-raw-device eth0

iface eth0:0 inet manual

What does a colon mean in interfaces file? Is it the same as a dot?

like image 336
Phuc Avatar asked Aug 12 '26 19:08

Phuc


1 Answers

Column in network interfaces mean virtual interface. Here is in Debian/Ubuntu:

[root@ubuntu ~]# cat /etc/network/interfaces
iface eth0:0 inet static
address 123.123.22.22
netmask 255.0.0.0
broadcast 123.255.255.255

For more info you can check here.

As far as I remember you can have up to 255 (or 256, not sure) virtual interfaces per physical one.

like image 169
Romeo Ninov Avatar answered Aug 14 '26 12:08

Romeo Ninov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!