代码: 全选
# nwmgr -a -S vlan [-c lanVPPA] -A vlanid=vlanid, ppa=PPA [,attr=value...] [--sc]
For example, to add the VLAN tag 454 to the failover group lan900, use:
2. Use nwmgr to save the VLAN configuration so it will be persistent across reboots.VLAN interface lan5000 successfully configured.代码: 全选
# nwmgr -a -S vlan -A vlanid=454, ppa=900
lan5000 current values:
VPPA = 5000
Related PPA = 0
VLAN ID = 454
VLAN Name = UNNAMED
Priority = 0
Priority Override Level = CONF_PRI
ToS = 0
ToS Override Level = IP_HEADER
For example, to save all current VLAN settings:
代码: 全选
# nwmgr -s -A all --from cu --sa -S vlan
代码: 全选
# nwmgr -s -c lan5000 -A all --from cu --sa
For example:
NOTE: The index value must be different for each interfaceINTERFACE_NAME[2]=”lan5000”
IP_ADDRESS[2]=”192.6.1.1”
SUBNET_MASK[2]=”255.255.224.0”
BROADCAST_ADDRESS[2]=””
INTERFACE_STATE[2]=””
DHCP_ENABLE[2]=”0”
4. Restart the network.
代码: 全选
# /sbin/init.d/net stop
# /sbin/init.d/vlan stop
# /sbin/init.d/hplm stop
# /sbin/init.d/hpapa stop
# /sbin/init.d/hplm start
# /sbin/init.d/hpapa start
# /sbin/init.d/vlan start
# /sbin/init.d/net start