• Alessandro Rubini's avatar
    shell: implement vlan command · ab7cb867
    Alessandro Rubini authored
    This allows a run-time change of the active vlan, if CONFIG_VLAN is
    active at build time.  The pfilter rules are being rewritten every
    time the vlan is changed (and we have one VLAN only for the CPU).
    
       wrc# vlan set 0
       0 ("0") out of range
       Command "vlan": error -22
       wrc# vlan set pippo
       0 ("pippo") out of range
       Command "vlan": error -22
    
       wrc# vlan
       current vlan: 10 (0xa)
    
       wrc# vlan set 20
       current vlan: 20 (0x14)
       wrc# ip set 192.168.20.2
       IP-address: 192.168.20.2 (static assignment)
    
          (and the node now replies to ping on vlan 20)
    
       wrc# vlan set 10
       current vlan: 10 (0xa)
       wrc# ip set 192.168.10.2
       IP-address: 192.168.10.2 (static assignment)
    
          (and the node now replies to ping on vlan 10)
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    ab7cb867
Name
Last commit
Last update
..
cmd_calib.c Loading commit data...
cmd_config.c Loading commit data...
cmd_gui.c Loading commit data...
cmd_help.c Loading commit data...
cmd_init.c Loading commit data...
cmd_ip.c Loading commit data...
cmd_ll.c Loading commit data...
cmd_mac.c Loading commit data...
cmd_mode.c Loading commit data...
cmd_pll.c Loading commit data...
cmd_ps.c Loading commit data...
cmd_ptp.c Loading commit data...
cmd_ptrack.c Loading commit data...
cmd_refresh.c Loading commit data...
cmd_sdb.c Loading commit data...
cmd_sfp.c Loading commit data...
cmd_sleep.c Loading commit data...
cmd_stat.c Loading commit data...
cmd_time.c Loading commit data...
cmd_verbose.c Loading commit data...
cmd_version.c Loading commit data...
cmd_vlan.c Loading commit data...
shell.c Loading commit data...
shell.mk Loading commit data...