Example VLAN conversion
This example demonstrates how to convert subnet-VLANs to use VLAN
interfaces. A sample command and the
vlan-conv
commands generated by
the script are shown below.
Enter a command as shown in the example below:
manager@hnas(bash):/opt/mercury-utils/bin$ ./vlan-convert-config.rb
localhost > /tmp/vlan-conv-commands
manager@hnas(bash):/opt/mercury-utils/bin$ cat /tmp/vlan-conv-commands
#!/bin/sh
# These are the commands suggested to upgrade the VLAN configuration.
# Running this script will disrupt communications with the HNAS.
# Created for HNAS localhost at 2014-10-14T07:51:46-07:00 [Version
12.2.3750.00].
# Please review this generated script before using it.
# ====================================================
ssc localhost <<SSC-EOS
# Disable any EVS that only contain addresses on a tagged VLAN before
updating the configuration.
echo Disabling any EVS with tagged VLAN prior to re-configuration ...
# Disable EVS 1:HNAS-G3
evs disable -e 1 --confirm
# Remove all addresses in VLANs from still enabled EVS before updating
the configuration.
# This applies to EVS with non-VLAN address assignments in order to
minimise disruption to non-VLAN services.
echo Removing VLAN IP addresses from EVS prior to re-configuration ...
# Remove the address 172.31.61.61/24 on ag1 from EVS 2:evs2
evsipaddr -e 2 --remove --confirm --ip 172.31.61.61
# Remove existing (legacy) VLAN configuration.
vlan remove-all
# Create new VLAN interfaces.
# Processing address 172.31.62.62/24 for ag1-vlan0200.
vlan-interface-create --interface ag1 200
# Processing address 172.31.61.61/24 for ag1-vlan0100.
vlan-interface-create --interface ag1 100
echo Preparing to reconfigure IP addresses on VLANs ...
sleep 5
# Reconfigure IP addresses on VLANs.
# Move address to VLAN interface.
evsipaddr -e 1 --update --confirm --ip 172.31.62.62/24 --port ag1-
vlan0200
# Restore previously removed address to VLAN interface.
evsipaddr -e 2 --add --ip 172.31.61.61/24 --port ag1-vlan0100
# Enable any EVS that were previously disabled.
echo Enabling the EVS that were previously disabled ...
evs enable -e 1
SSC-EOS
82
VLAN conversion
Hitachi NAS Platform Network Administration Guide
Summary of Contents for 3100
Page 1: ...Hitachi NAS Platform Network Administration Guide Release 12 5 MK 92HNAS008 08 December 2015 ...
Page 5: ...5 Hitachi NAS Platform Network Administration Guide ...
Page 9: ...9 Hitachi NAS Platform Network Administration Guide ...
Page 13: ...Preface 13 Hitachi NAS Platform Network Administration Guide ...
Page 57: ...Configuring routes 57 Hitachi NAS Platform Network Administration Guide ...
Page 73: ...Managing networks and devices 73 Hitachi NAS Platform Network Administration Guide ...
Page 87: ...Network ports 87 Hitachi NAS Platform Network Administration Guide ...
Page 88: ...Hitachi NAS Platform Network Administration Guide ...