Last active
January 17, 2023 13:30
-
-
Save mizhka/ed8f9fcad4165fd91afd1b34e668a0f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias sw=etherswitchcfg | |
sw port0 striptag | |
sw port1 striptag | |
sw port1 pvid 2 | |
sw port3 addtag | |
sw port4 addtag | |
sw vlangroup0 members 0,2,3,4 | |
Result: | |
# sw | |
etherswitch0: VLAN mode: DOT1Q | |
etherswitch0: Switch MAC address: 00:00:00:00:00:01 | |
port0: | |
pvid: 1 | |
flags=3<CPUPORT,STRIPTAG> | |
media: Ethernet 1000baseT <full-duplex> | |
status: active | |
port1: | |
pvid: 2 | |
flags=2<STRIPTAG> | |
media: Ethernet autoselect (100baseTX <full-duplex>) | |
status: active | |
port2: | |
pvid: 2 | |
flags=4<ADDTAG> | |
media: Ethernet autoselect (100baseTX <full-duplex>) | |
status: active | |
port3: | |
pvid: 1 | |
flags=4<ADDTAG> | |
media: Ethernet autoselect (100baseTX <full-duplex>) | |
status: active | |
port4: | |
pvid: 1 | |
flags=4<ADDTAG> | |
media: Ethernet autoselect (none) | |
status: no carrier | |
vlangroup0: | |
vlan: 1 | |
members 0,2,3,4 | |
vlangroup1: | |
vlan: 2 | |
members 1,2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment