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 " } ] ["
27 .BR offload " { " off " | " phy " | " mac " }"
30 .BI "ip macsec add " DEV " tx sa"
31 .RI "{ " 0..3 " } [ " OPTS " ]"
34 .BI "ip macsec set " DEV " tx sa"
35 .RI "{ " 0..3 " } [ " OPTS " ]"
37 .BI "ip macsec del " DEV " tx sa"
40 .BI "ip macsec add " DEV " rx " SCI
41 .RB [ " on " | " off " ]
43 .BI "ip macsec set " DEV " rx " SCI
44 .RB [ " on " | " off " ]
46 .BI "ip macsec del " DEV " rx " SCI
48 .BI "ip macsec add " DEV " rx " SCI " sa"
49 .RI "{ " 0..3 " } [ " OPTS " ]"
52 .BI "ip macsec set " DEV " rx " SCI " sa"
53 .RI "{ " 0..3 " } [ " OPTS " ]"
55 .BI "ip macsec del " DEV " rx " SCI " sa"
58 .BI "ip macsec offload " DEV
59 .RB "{ " off " | " phy " | " mac " }"
66 .IR 1..2^32-1 " } ] ["
74 .BI address " <lladdr> "
77 .IR PORT " := { " 1..2^16-1 " } "
83 commands are used to configure transmit secure associations and receive secure channels and their secure associations on a MACsec device created with the
91 .SS Create a MACsec device on link eth0 (offload is disabled by default)
93 # ip link add link eth0 macsec0 type macsec port 11 encrypt on
95 .SS Configure a secure association on that device
97 # ip macsec add macsec0 tx sa 0 pn 1024 on key 01 81818181818181818181818181818181
99 .SS Configure a receive channel
101 # ip macsec add macsec0 rx port 1234 address c6:19:52:8f:e6:a0
103 .SS Configure a receive association
105 # ip macsec add macsec0 rx port 1234 address c6:19:52:8f:e6:a0 sa 0 pn 1 on key 00 82828282828282828282828282828282
107 .SS Display MACsec configuration
111 .SS Configure offloading on an interface
113 # ip macsec offload macsec0 phy
115 .SS Configure offloading upon MACsec device creation
117 # ip link add link eth0 macsec0 type macsec port 11 encrypt on offload mac
120 This tool can be used to configure the 802.1AE keys of the interface. Note that 802.1AE uses GCM-AES
121 with a initialization vector (IV) derived from the packet number. The same key must not be used
122 with the same IV more than once. Instead, keys must be frequently regenerated and distibuted.
123 This tool is thus mostly for debugging and testing, or in combination with a user-space application
124 that reconfigures the keys. It is wrong to just configure the keys statically and assume them to work
125 indefinitely. The suggested and standardized way for key management is 802.1X-2010, which is implemented
131 .BR wpa_supplicant (8)
133 Sabrina Dubroca <sd@queasysnail.net>