Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jian-hong-wu authored May 10, 2022
1 parent 05cc2d3 commit c169f15
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions accton_commands/VLAN/index.md
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

0 comments on commit c169f15

Please sign in to comment.