1 .TH IP\-MACSEC 8 "07 Mar 2016" "iproute" "Linux"
3 ip-macsec \- MACsec device configuration
5 .BI "ip link add link " DEVICE " name " NAME " type macsec "
7 .BI address " <lladdr>"
13 .BR cipher " { " default " | " gcm-aes-128 " | "gcm-aes-256" } ] ["
16 .BR encrypt " { " on " | " off " } ] ["
17 .BR send_sci " { " on " | " off " } ] ["
18 .BR end_station " { " on " | " off " } ] ["
19 .BR scb " { " on " | " off " } ] ["
20 .BR protect " { " on " | " off " } ] ["
21 .BR replay " { " on " | " off " } ] ["
24 .BR validate " { " strict " | " check " | " disabled " } ] ["
28 .BI "ip macsec add " DEV " tx sa"
29 .RI "{ " 0..3 " } [ " OPTS " ]"
32 .BI "ip macsec set " DEV " tx sa"
33 .RI "{ " 0..3 " } [ " OPTS " ]"
35 .BI "ip macsec del " DEV " tx sa"
38 .BI "ip macsec add " DEV " rx " SCI
39 .RB [ " on " | " off " ]
41 .BI "ip macsec set " DEV " rx " SCI
42 .RB [ " on " | " off " ]
44 .BI "ip macsec del " DEV " rx " SCI
46 .BI "ip macsec add " DEV " rx " SCI " sa"
47 .RI "{ " 0..3 " } [ " OPTS " ]"
50 .BI "ip macsec set " DEV " rx " SCI " sa"
51 .RI "{ " 0..3 " } [ " OPTS " ]"
53 .BI "ip macsec del " DEV " rx " SCI " sa"
56 .BI "ip macsec offload " DEV
57 .RB "{ " off " | " phy " }"
64 .IR 1..2^32-1 " } ] ["
72 .BI address " <lladdr> "
75 .IR PORT " := { " 1..2^16-1 " } "
81 commands are used to configure transmit secure associations and receive secure channels and their secure associations on a MACsec device created with the
89 .SS Create a MACsec device on link eth0
91 # ip link add link eth0 macsec0 type macsec port 11 encrypt on
93 .SS Configure a secure association on that device
95 # ip macsec add macsec0 tx sa 0 pn 1024 on key 01 81818181818181818181818181818181
97 .SS Configure a receive channel
99 # ip macsec add macsec0 rx port 1234 address c6:19:52:8f:e6:a0
101 .SS Configure a receive association
103 # ip macsec add macsec0 rx port 1234 address c6:19:52:8f:e6:a0 sa 0 pn 1 on key 00 82828282828282828282828282828282
105 .SS Display MACsec configuration
109 .SS Configure offloading on an interface
111 # ip macsec offload macsec0 phy
114 This tool can be used to configure the 802.1AE keys of the interface. Note that 802.1AE uses GCM-AES
115 with a initialization vector (IV) derived from the packet number. The same key must not be used
116 with the same IV more than once. Instead, keys must be frequently regenerated and distibuted.
117 This tool is thus mostly for debugging and testing, or in combination with a user-space application
118 that reconfigures the keys. It is wrong to just configure the keys statically and assume them to work
119 indefinitely. The suggested and standardized way for key management is 802.1X-2010, which is implemented
125 .BR wpa_supplicant (8)
127 Sabrina Dubroca <sd@queasysnail.net>