Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.