Run SPBM

VSP-8284XSQ:1(config)#run ?
Run commands
spbm  Run SPBM commands
VSP-8284XSQ:1(config)#run spbm
**********************************************************
*** This script will guide you through configuring the ***
*** Extreme Networks switch for optimal operation of SPB.         ***
*** Extreme Networks switch for optimal operation of SPB.         ***
*** —————————————————***
*** The values in [] are the default values, you can   ***
*** input alternative values at any of the prompts.    ***
*** If you wish to terminate or exit this script       ***
*** enter ^C <control-C> at any prompt.                ***
*** NOTE: THE COMMAND WILL TEMPORARILY FLAP IS-IS,SPBM ***
**********************************************************
SPB Ethertype <0x8100,0x88a8> [0x8100]:
SPBM instance <1-100> [1]:
SPB primary BVLAN <2-4059> [4051]:
SPB secondary BVLAN <2-4059> [4052]:
ISIS system id <xxxx.xxxx.xxxx> [0051.0064.c884]:
SPB nickname <x.xx.xx> [4.c8.84]:
SPB Manual Area <xx.xxxx.xxxx…xxxx> [49.0000]:
ISIS System Name [VSP-8284XSQ]:
Enable SPBM multicast (y/n) [n]:
Enable IP shortcuts (y/n) [n]:
Configure SPBM SMLT? (y/n) [n]:
ISIS port interfaces <a/b,c/d>[]:
ISIS MLT interface <MLT ID LIST> []:
Enable CFM SPBM (y/n) [n]:

****CONFIGURATION IN PROGRESS****

VSP-8284XSQ:1(config)#no router isis enable
VSP-8284XSQ:1(config)#router isis
VSP-8284XSQ:1(config-isis)#no ip-source-address
VSP-8284XSQ:1(config-isis)#no system-id
VSP-8284XSQ:1(config-isis)#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
VSP-8284XSQ:1(config)#spbm
VSP-8284XSQ:1(config)#spbm ethertype 0x8100
VSP-8284XSQ:1(config)#router isis
VSP-8284XSQ:1(config-isis)#spbm 1
VSP-8284XSQ:1(config-isis)#spbm 1 nick-name 4.c8.84
VSP-8284XSQ:1(config-isis)#spbm 1 b-vid 4051,4052 primary 4051
VSP-8284XSQ:1(config-isis)#vlan create 4051 type spbm-bvlan
VSP-8284XSQ:1(config)#vlan create 4052 type spbm-bvlan
VSP-8284XSQ:1(config)#router isis
VSP-8284XSQ:1(config-isis)#system-id 0051.0064.c884

Error: Attribute field already configured to the same value.

VSP-8284XSQ:1(config-isis)#manual-area 49.0000
VSP-8284XSQ:1(config-isis)#sys-name VSP-8284XSQ
VSP-8284XSQ:1(config-isis)#router isis enable
VSP-8284XSQ:1(config)#

****SCRIPT EXECUTION COMPLETE****
VSP-8284XSQ:1(config)#1 2018-05-16T11:03:24.585Z VSP-8284XSQ CP1 – 0x00000003 – 00000000 GlobalRouter SW INFO Dynamic nick-name client has been started
1 2018-05-16T11:03:24.707Z VSP-8284XSQ CP1 – 0x00000004 – 00000000 GlobalRouter SW INFO Dynamic nick-name client has been stopped

VSP-8284XSQ:1(config)#

Troubleshooting

Windows:

ping -v is now deprecated which was useful for sending ICMP with TOS field values. Try ping -Q as alternative from a UNIX machine.

Unix:

ping –Q

-Q tos Set Quality of Service -related bits in ICMP datagrams.  tos can be

either decimal or hex number.  Traditionally (RFC1349), these  have

been  interpreted  as: 0 for reserved (currently being redefined as

congestion control), 1-4 for Type of Service  and  5-7  for  Prece-

dence.   Possible  settings  for Type of Service are: minimal cost:

0x02, reliability: 0x04, throughput: 0x08, low delay: 0x10.  Multi-

ple  TOS  bits should not be set simultaneously.  Possible settings

for special Precedence range from priority (0x20)  to  net  control

(0xe0).   You must be root (CAP_NET_ADMIN capability) to use Criti-

cal or higher precedence value.  You cannot set bit 0x01 (reserved)

unless  ECN  has  been  enabled  in  the kernel.  In RFC2474, these

fields has been redefined as 8-bit  Differentiated  Services  (DS),

consisting  of: bits 0-1 of separate data (ECN will be used, here),

and bits 2-7 of Differentiated Services Codepoint (DSCP).

Man curl or curl –help

Curl can be useful to check TCP connections for http or https.

Result could be Connection Timeout, Connection Refused or Connected (200 OK).

VOSS Features

VOSS 7.0

Max number IP interfaces: 506

(Result upon adding IP interface 507 – Error: Insufficient resources available to create IP.)

Max number DHCP-Relay Fwd-Path: 1024

Max number DHCP-Relay Fwd-Path per VLAN: 10

(Result upon adding 11th Fwd-Path – Error: DHCP maximum number of forwarding records added)

VOSS interfaces are shutdown by default so have to do no shutdown command within interface context.

Assigning IP to many VLANs with IP and DHCP-Relay

Assumption: VLANs created 1024-2048

Python script to generate config script file (pass1vlanip.py)…

vl_fr = 1024
vl_to = 1278
pass1oct3 = 0
dhcpsrv = “10.10.10.10”
mask = “255.255.255.0”

for value in range (vl_fr,vl_to):
pass1oct3 = pass1oct3 + 1
ipadd = “1.1.” + str (pass1oct3) + “.1”
with open(‘pass1vlanip.cfg’, ‘a’) as outfile:
outfile.write(“\ninterface vlan ” + str (value))
outfile.write(“\nip address ” + str (ipadd) + ” ” + str (mask))
outfile.write(“\nip dhcp-relay”)
outfile.write(“\nexit”)
outfile.write(“\nip dhcp-relay fwd-path ” + str (ipadd) + ” ” + str (dhcpsrv))
outfile.write(“\nip dhcp-relay fwd-path ” + str (ipadd) + ” ” + str (dhcpsrv) + ” enable”)
outfile.write(“\nip dhcp-relay fwd-path ” + str (ipadd) + ” ” + str (dhcpsrv) + ” mode bootp_dhcp”)

Note: Create multiple files for each “pass” with different value in second octet to create batches of class C subnets 254 hosts (pass1vlanip.py, pass2vlanip.py, etc…).

Part of the output file (ie pass1vlanip.cfg):

interface vlan 1024
ip address 1.1.1.1 255.255.255.0
ip dhcp-relay
exit
ip dhcp-relay fwd-path 1.1.1.1 10.10.10.10
ip dhcp-relay fwd-path 1.1.1.1 10.10.10.10 enable
ip dhcp-relay fwd-path 1.1.1.1 10.10.10.10 mode bootp_dhcp
interface vlan 1025
ip address 1.1.2.1 255.255.255.0
ip dhcp-relay
exit
ip dhcp-relay fwd-path 1.1.2.1 10.10.10.10
ip dhcp-relay fwd-path 1.1.2.1 10.10.10.10 enable
ip dhcp-relay fwd-path 1.1.2.1 10.10.10.10 mode bootp_dhcp
interface vlan 1026
ip address 1.1.3.1 255.255.255.0
ip dhcp-relay
exit
ip dhcp-relay fwd-path 1.1.3.1 10.10.10.10
ip dhcp-relay fwd-path 1.1.3.1 10.10.10.10 enable
ip dhcp-relay fwd-path 1.1.3.1 10.10.10.10 mode bootp_dhcp

Rename .cfg file as .run file and move to .acli folder so that ACLI terminal can source the files.

From ACLI login to switch and type @run pass1ip.run which will run the commands created by the python script. This speeds up the process of creating multiple configuration entries such as VLANs, IP addresses, DHCP etc…

Another example script to delete a range of VLANs (delvlan.py):

vl_fr = 1024
vl_to = 2048

for value in range (vl_fr,vl_to):

with open(‘delvlan.cfg’, ‘a’) as outfile:
outfile.write(“\nvlan delete ” + str (value))
value = value + 1
with open(‘delvlan.cfg’, ‘a’) as outfile:
outfile.write(“\nvlan delete ” + str (value))

Output file (delvlan.cfg):

vlan delete 1024
vlan delete 1025
vlan delete 1026
vlan delete 1027
vlan delete 1028

etc…

Rename delvlan.run and type @run delvlan.run in ACLI terminal will remove long list of VLANs and all underlying VLAN configuration such as the IP address and VRRP. Otherwise have to delete each VLAN individually as there is no range parameter.

Add User to EMC

From the OS add a new user. In VMWare login as root into the console and use the useradd <name> command to create the new user. Set a password with the passwd <name> command. You also need to add the user in EMC under Administration>Users and specify the group access.

https://gtacknowledge.extremenetworks.com/articles/Solution/Unable-to-login-to-Netsight-Console-using-LDAP-or-OS-credentials?l=en_US&fs=RelatedArticle

Aside… to search for config files archived by EMC in the virtual appliance type…

find / -name *.cfg

Inventory Manager>Data Storage>Directory Path

Specify the base directory where data for Inventory Manager is stored. This data includes capacity reports, configuration templates, configurations, and property files.

/usr/local/Extreme_Networks/NetSight/appdata/InventoryMgr

ls -alg to see file attributes.

https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.bpxa500/lscmd.htm

Changing file attributes…

chmod -R 775 or 777 .

N   Description                      ls   binary    
0   No permissions at all            ---  000
1   Only execute                     --x  001
2   Only write                       -w-  010
3   Write and execute                -wx  011
4   Only read                        r--  100
5   Read and execute                 r-x  101
6   Read and write                   rw-  110
7   Read, write, and execute         rwx  111
  • First Number 7 – Read, write, and execute for user.
  • Second Number 5 – Read and execute for group.
  • Third Number 5 – Read and execute for other.

Which group user belongs…

id -Gn [user] or groups or id user