How to make a virtual network interface attached to eth0?



  • I need Omega2sp to have two different networks over one Ethernet wire.
    On Linux it could be done something like this:

    iface eth0 inet static
       address 192.168.2.150
       netmask 255.255.255.0
       network 192.168.2.0
       broadcast 192.168.2.255
       gateway 192.168.2.253
       # dns-* options are implemented by the resolvconf package, if installed
       dns-nameservers 8.8.4.4
    
    iface eth0:1 inet static
        address 192.168.2.2
        netmask 255.255.255.0
        network 192.168.2.0
        broadcast 192.168.2.255
        gateway 192.168.2.253
    

    or

    ip addr add 192.168.2.2/24 brd + dev eth0 label eth0:0
    


  • @Alexandr-Didenko You need kmod-macvlan loaded then you can configure multiple virtual devices with separate IPs.


Log in to reply
 

Looks like your connection to Community was lost, please wait while we try to reconnect.