You are not logged in.

#1 2012-04-03 04:59:00

Simple_Joe
Member
Registered: 2011-07-03
Posts: 8

Promisc Mode

Hello,

there are many topics on setting up a bridge between the NIC and the Virtual Machine interface. This setup works great for Virtual Boxes.

I Just need to put my second NIC into promisc Mode.  I used to do this with the following context in /etc/rc.conf

eth1="eth1 up"

interfaces=(eth0 eth1)

with the new version of rc.conf what command syntax would create the same results. I am using eth1 to forward traffic from a mirror port on a switch.

thanks

Offline

#2 2012-04-03 06:08:01

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Promisc Mode

I know this is not 100% what you're asking, but though I'd mention it since it'll fix the situation as well.

You can also simply add the following to your /etc/rc.local, so your eth1 nic gets put in promisc mode during boot.

ip link set dev eth1 promisc on

Burninate!

Offline

#3 2012-04-03 12:56:25

Simple_Joe
Member
Registered: 2011-07-03
Posts: 8

Re: Promisc Mode

I think this will work, but when I have tried >>ip link set dev eth1 promisc on<< it does not set the port state to up.

any suggestions?

Thank you

Offline

#4 2012-04-03 13:36:21

Simple_Joe
Member
Registered: 2011-07-03
Posts: 8

Re: Promisc Mode

I ended up using the below command

ip link set eth1 up promisc on

with the following results


eth1: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:19:b9:0f:6e:52 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::219:b9ff:fe0f:6e52/64 scope link
       valid_lft forever preferred_lft forever

which seems to be working for me, only problem is it seems to run after the daemons (NTOP), causing NTOP not to start.

any suggestions?

Offline

#5 2012-04-03 16:13:38

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Promisc Mode

This shouldn't be having any impact on the starting of your network related daemons, unless ntop is also trying to have the webinterface listen on eth1. Try checking /etc/conf.d/ntop and make sure it's only listening on eth0.


Burninate!

Offline

Board footer

Powered by FluxBB