rss logo

Main CLI commands for Allied Telesis switches

Allied Telesis logo

Configuration

Switch models

  • Switch model: x530L Series
  • Switch model: x530 Series
  • Switch model: x930 Series

Default password

  • Default login/password: manager/friend

Commands

Privileged and Configuration Modes

  • Enter Privileged Exec mode:
awplus> enable
awplus#
awplus# disable
awplus>
  • Enter Global Configuration mode:
awplus# conf t
awplus(config)#
awplus(config)# end
awplus#

User Management

  • Add a user john with full privileges:
awplus(config)# username john privilege 15 password StupidPassword
  • Delete the user account john:
awplus(config)# no username john

Security and Access

  • Enable password encryption (default setting):
awplus(config)# service password-encryption
  • Disable the Telnet service:
awplus(config)# no service telnet

System Maintenance

  • Restart the switch:
awplus# reboot
  • Save the current configuration:
awplus# copy running-config startup-config
awplus# write

Interface Configuration

  • Configure multiple interfaces (non-contiguous):
awplus(config)# interface port1.0.15,port1.0.17
  • Configure a range of interfaces (contiguous):
awplus(config)# interface port1.0.15-port1.0.18

Console and Access Services

  • Reset the console line:
awplus(config)# clear line console 0
  • Enable SSH service and authorize user john to connect from any host:
awplus(config)# service ssh
awplus(config)# ssh server allow-users john

IP Configuration

  • Assign an IP address to VLAN interface 1:
awplus(config)# interface vlan1
awplus(config-if)# ip address 192.168.1.100/24
  • Set the default gateway:
awplus(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.254
  • Enable RADIUS and AAA debug logs:
awplus# debug radius all
awplus# debug aaa all
  • Disable DNS client to avoid unwanted lookups:
awplus(config)# no ip domain-lookup

Stack Configuration

  • Disable stacking and release stack-dedicated ports:
awplus(config)# no stack 1 enable

Show Commands

System Information

  • Display the firmware version and system environment:
awplus# show system environment
  • Display the physical MAC address of the device:
awplus# show system mac
  • Display the serial number of the switch:
awplus# show system serialnumber

Interfaces

  • Display all interface configurations and status:
awplus# show interface
awplus# show interface brief
awplus# show interface port1.0.28

Security and Access

  • Display password configuration:
awplus# show running-config security-password
  • Display users currently logged in to the device:
awplus# show users
  • Display current SSH server configuration:
awplus# show ssh server

Logs

  • Display the most recent system logs:
awplus# show log tail

Import/Export Configuration

  • Upload the current configuration to a TFTP server:
awplus# copy run tftp://tftp_server/YYYY-MM-DD
  • Import a configuration file from a TFTP server:
awplus# copy tftp://tftp_server/YYYY-MM-DD run

Power over Ethernet (PoE)

  • Disable PoE on interface port1.0.1:
awplus(config)# interface port1.0.1
awplus(config-if)# no power-inline enable
  • Enable PoE on interface port1.0.1:
awplus(config)# interface port1.0.1
awplus(config-if)# power-inline enable
  • Display general PoE status:
awplus# show power-inline interface
  • Display detailed PoE info for interface port1.0.1:
awplus# show power-inline interface port1.0.1 detail

VLAN Configuration

  • Create VLAN 4 and assign it the name VoIP:
awplus(config)# vlan database
awplus(config-vlan)# vlan 4
awplus(config-if)# name VoIP
  • Delete VLAN 40 from the database:
awplus(config)# vlan database
awplus(config-vlan)# no vlan 40
  • Configure interface port1.0.1 in access mode and assign it to VLAN 4:
awplus(config)# interface port1.0.1
awplus(config-if)# switchport mode access
awplus(config-if)# switchport access vlan4
  • Allow specific VLANs on a trunk interface (here: 1, 4, 100, 101, 150):
awplus(config)# interface port1.0.1
awplus(config-if)# switchport mode trunk
awplus(config-if)# switchport trunk allowed vlan none
awplus(config-if)# switchport trunk allowed vlan add 1,4,100,101,150

Spanning Tree Protocol (STP)

  • Show the current spanning tree status:
Switch# show spanning-tree
  • Set the current switch as the root bridge by assigning a low priority:
awplus(config)# spanning-tree priority 4096
  • Enable RSTP (Rapid Spanning Tree Protocol) mode:
awplus(config)# spanning-tree mode rstp