Skip to content

Instantly share code, notes, and snippets.

@puppywang
Last active July 2, 2019 10:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save puppywang/cf309bb2fbfe81311e4d9965de2a60cd to your computer and use it in GitHub Desktop.
Save puppywang/cf309bb2fbfe81311e4d9965de2a60cd to your computer and use it in GitHub Desktop.
K2P单臂路由脚本
# Setup egcon and pvid for K2P & K2
switch vlan set 2 0000110 0 0 ----tt-
switch vlan set 1 1111101 0 0 uuuuu-u
switch pvid 4 1
# Setup portmap for K2P
switch reg w 0x2004 0x005f0003
switch reg w 0x2104 0x005f0003
switch reg w 0x2204 0x005f0003
switch reg w 0x2304 0x005f0003
switch reg w 0x2404 0x007f0003
switch reg w 0x2604 0x005f0003
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment