-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05cc2d3
commit c169f15
Showing
1 changed file
with
27 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,31 @@ | ||
# VLAN Commands | ||
|
||
## Create VLAN | ||
## Create VLAN1 and VLAN2 on the switch | ||
``` | ||
admin@sonic:~$ sudo config vlan add 1 | ||
admin@sonic:~$ sudo config vlan add 2 | ||
``` | ||
|
||
Make sure that the port configuration of the VLAN member is not a router port, if you receive the following error: | ||
``` | ||
admin@sonic:~$ sudo config vlan member add 1 Ethernet48 | ||
Usage: config vlan member add [OPTIONS] | ||
Try "config vlan member add -h" for help. | ||
## | ||
Error: Ethernet48 is a L3 interface! | ||
``` | ||
|
||
## Set Etherenet48 as VLAN1 untag member | ||
``` | ||
admin@sonic:~$ sudo config vlan member add -u 1 Ethernet48 | ||
``` | ||
|
||
## Set Ethernet52 as VLAN2 tag member. | ||
``` | ||
admin@sonic:~$ sudo config vlan member add 2 Ethernet52 | ||
``` | ||
|
||
|
||
|
||
|
||
refer to htttps://support.edge-core.com/hc/en-us/articles/900000210426--Edgecore-SONiC-VLAN-Inter-VLAN-Routing |