config vlan

    • Add/del vlan
    • Add/del vlan member
    • Example:
    root@sonic:/# config vlan 
    Usage: config vlan [OPTIONS] COMMAND [ARGS]...
    
      VLAN-related configuration tasks
    
    Options:
      -s, --redis-unix-socket-path TEXT
                                      unix socket path for redis connection
      --help                          Show this message and exit.
    
    Commands:
      add
      del
      member
    
    root@sonic:/# config vlan add 1200
    root@sonic:/# config vlan member add 1200 Ethernet1
    root@sonic:/# config vlan member add 1200 Ethernet9 -u
    root@sonic:/# config vlan member add 1200 Ethernet8
    
  • show vlan config

    • Show vlan and vlan member configuration
    • Example:
    admin@sonic:/$ show vlan config
    Name        VID  Member     Mode
    --------  -----  ---------  --------
    Vlan1200   1200  Ethernet1  tagged
    Vlan1200   1200  Ethernet9  untagged
    Vlan1200   1200  Ethernet8  tagged
    

results matching ""

    No results matching ""