Skip to content

Instantly share code, notes, and snippets.

@lynt-smitka
Created November 21, 2017 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lynt-smitka/b07eddbbd2279be17473fb9cdc99eb41 to your computer and use it in GitHub Desktop.
Save lynt-smitka/b07eddbbd2279be17473fb9cdc99eb41 to your computer and use it in GitHub Desktop.
HOST A:
ip link add link eth1 macsec0 type macsec
ip macsec add macsec0 tx sa 0 pn 1 on key 01 11111111111111111111111111111111
ip macsec add macsec0 rx address bb:bb:bb:bb:bb:bb port 1
ip macsec add macsec0 rx address bb:bb:bb:bb:bb:bb port 1 sa 0 pn 100 on key 02 22222222222222222222222222222222
ip link set dev macsec0 up
ip address add 172.16.16.1/24 dev macsec0
HOST B:
ip link add link eth1 macsec0 type macsec
ip macsec add macsec0 tx sa 0 pn 1 on key 02 22222222222222222222222222222222
ip macsec add macsec0 rx address aa:aa:aa:aa:aa:aa port 1
ip macsec add macsec0 rx address aa:aa:aa:aa:aa:aa port 1 sa 0 pn 100 on key 01 11111111111111111111111111111111
ip link set dev macsec0 up
ip address add 172.16.16.2/24 dev macsec0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment