Follow Us

Debian - How to configure an interface as promisc
Written by
Monday, 20 October 2008 14:14

In order to configure your interface you will need to edit the following file, /etc/network/interfaces
Below is an example of this file, this would set eth0 an IP (172.16.11.1) and eth1 and eth2 to promisc mode.

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 172.16.11.1
        netmask 255.255.255.0
        network 172.16.11.0
        broadcast 172.16.11.255
        gateway 172.16.11.100
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 194.168.8.100

auto eth1
iface eth1 inet manual
        up ifconfig eth1 promisc up
        down ifconfig eth1 promisc down

auto eth2
iface eth2 inet manual
        up ifconfig eth2 promisc up
        down ifconfig eth2 promisc down






 

Secured by Incapsula