CaffeineAddict
Well-Known Member
Bash:
ip link set help
The following options among others are printed by the above help command:
- multicast
- allmulticast
- trailers
- carrier
ip link set <dev> trailers on
or ip link set <dev> allmulticast off
etc.Once
ip link set ...
command is run to toggle specific option, then running ip link
alone will show some flags, for instance:if you run
trailers on
and allmulticast on
output will be (pay attention to bold flags):7: wlan0: <BROADCAST,ALLMULTI,NOTRAILERS,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode D
EFAULT group default qlen 1000
If you toggle them off, then these 2 flags won't be present.
Question 1:
What each of these 4 options mean exactly?
btw. I know
carrier off
(NO-CARRIER) means the NIC is not connected to gateway.And I know multicast means that NIC will be able to send/receive multicast packets.
Correct me if wrong...
But I don't know about
trailers
(NOTRAILERS) and allmulticast
(ALLMULTI)possible hint:
allmulticast
may be used or required in promiscuous or monitor mode e.g. ip link set <dev> promisc on
Question 2:
When I attempt to modify
carrier off
or on
I get this response:
Bash:
sudo ip link set wlan0 carrier on
RTNETLINK answers: Operation not supported
The same output happens regardless if I'm connected to WI-FI or not, and regardless if
carrier
option is initially on
or off
.Why?