Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
12
rated 0 times [  12] [ 0]  / answers: 1 / hits: 196868  / 2 Years ago, wed, may 4, 2022, 12:52:01

I am working on Ubuntu 12.04 LTS server on VMware Workstation. I need to configure my network interface to work in promiscuous mode.


This is my configuration:


auto eth1
iface eth1 inet manual
up ip address add 0/0 dev $IFACE
up ip link set $IFACE up
up ip link set $IFACE promisc on

down ip link set $IFACE promisc off
down ip link set $IFACE down

When I execute


netstat -i

the flag is BMRU.


Is my configuration correct or do I need to execute some extra commands?


More From » 12.04

 Answers
0

Well the problem is not in the network card because VMware always enables promiscuous mode for virtual interface. But the problem is within the configuration. It is not enough to enable promiscuous mode in the interface file. I had to add this line:



ifconfig eth1 up
ifconfig eth1 promisc


in the /etc/rc.local file because when i restart the network service, eth1 is set down. So adding this lines would tell the os to not shutdown eth1.


[#26655] Wednesday, May 4, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
zebrla

Total Points: 356
Total Questions: 110
Total Answers: 120

Location: Sudan
Member since Tue, Aug 3, 2021
3 Years ago
;