bonding module parameters are not shown in /sys/module/bonding/parameters/

Posted by c4f4t0r on Server Fault See other posts from Server Fault or by c4f4t0r
Published on 2013-10-23T08:11:56Z Indexed on 2013/10/23 10:00 UTC
Read the original article Hit count: 773

Filed under:
|
|

I have a server with Suse 11 sp1 kernel 2.6.32.54-0.3-default, with modinfo bonding i see all parameters, but under /sys/module/bonding/parameters/ not

modinfo bonding | grep ^parm
parm:           max_bonds:Max number of bonded devices (int)
parm:           num_grat_arp:Number of gratuitous ARP packets to send on failover event (int)
parm:           num_unsol_na:Number of unsolicited IPv6 Neighbor Advertisements packets to send on    failover event (int)
parm:           miimon:Link check interval in milliseconds (int)
parm:           updelay:Delay before considering link up, in milliseconds (int)
parm:           downdelay:Delay before considering link down, in milliseconds (int)
parm:           use_carrier:Use netif_carrier_ok (vs MII ioctls) in miimon; 0 for off, 1 for on (default) (int)
parm:           mode:Mode of operation : 0 for balance-rr, 1 for active-backup, 2 for balance-xor, 3  for broadcast, 4 for 802.3ad, 5 for balance-tlb, 6 for balance-alb (charp)
parm:           primary:Primary network device to use (charp)
parm:           lacp_rate:LACPDU tx rate to request from 802.3ad partner (slow/fast) (charp)
parm:           ad_select:803.ad aggregation selection logic: stable (0, default), bandwidth (1), count (2) (charp)
parm:           xmit_hash_policy:XOR hashing method: 0 for layer 2 (default), 1 for layer 3+4 (charp)
parm:           arp_interval:arp interval in milliseconds (int)
parm:           arp_ip_target:arp targets in n.n.n.n form (array of charp)
parm:           arp_validate:validate src/dst of ARP probes: none (default), active, backup or all (charp)
parm:           fail_over_mac:For active-backup, do not set all slaves to the same MAC.  none (default), active or follow (charp)

in /sys/module/bonding/parameters

ls -l /sys/module/bonding/parameters/
total 0
-rw-r--r-- 1 root root 4096 2013-10-17 11:22 num_grat_arp
-rw-r--r-- 1 root root 4096 2013-10-17 11:22 num_unsol_na

I found some of this parameters under /sys/class/net/bond0/bonding/, but when i try to change one i got the following error

echo layer2+3 > /sys/class/net/bond0/bonding/xmit_hash_policy
-bash: echo: write error: Operation not permitted

© Server Fault or respective owner

Related posts about linux

Related posts about linux-networking