Virtual Interfaces (vifs)

This is how to setup a virtual interface on Slackware:

  1. as root, edit /etc/rc.d/rc.inet1.conf
  2. configure vifs in the following fashion:
    ## Virtual Interfaces
    # eth0:1 vif
    IFNAME[4]="eth0:1"
    IPADDR[4]="192.168.1.2"
    NETMASK[4]="255.255.255.0"
    USE_DHCP[4]="no"
    DHCP_HOSTNAME[4]=""
    
    # eth0:2 vif
    IFNAME[5]="eth0:2"
    IPADDR[5]="192.168.1.3"
    NETMASK[5]="255.255.255.0"
    USE_DHCP[5]="no"
    DHCP_HOSTNAME[5]=""
  3. reboot, restart rc.inet1, or manually restart each vif



linux/slackware/vifs.txt · Last modified: 2007/08/07 20:22 by john
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki