Alcatel Omniswitch CLI

Shares

Alcatel Omniswitch CLI Pocket Guide

On this page I will be constantly adding Alcatel Omniswitch commands as an easy reference Pocket Guide

Version 1.0 (Updated 19-08-2013)

Alcatel Omniswitch MISC

system name (Switch Hostname)

system timezone

system daylight savings time (Enables or disables daylight savings)

VLAN

vlan 10 enable name “Data” (Creates vlan 10 with a name of Data)

vlan 10 port default 1/10 (Assigns port 1/10 to vlan 10)

vlan port mobile 1/10 (Makes port 1/10 a mobile port. A mobile port can use the port rules below)

vlan 20 mac 00:80:9f:01:01:01 (Must have port mobile config on port. Put the device with mac address 00:80:9f:01:01:01 into vlan 20)

vlan 20 mac range 00:80:9f:00:00:00 00:80:9f:ff:ff:ff (Puts all devices that have a starting mac address of 00:80:9f into vlan 20)

vlan 20 ip 192.168.20.0 255.255.255.0 (Puts any device with ip address in the subnet 192.168.20.0/24 into vlan 20)

VLAN TAGGING 802.1Q

vlan 20 802.1q 1/5 “TAG PORT VOICE” (Tags port 1/5 for vlan 20 and give it a description of TAG PORT VOICE)

vlan 20 802.1q 1 “TAG LACP AGGREGATE 1” (Tags LACP Aggregate 1 for vlan 20 and give it a description of TAG LACP AGGREGATE)

IP

ip interface dhcp-client vlan 1 (Tells the switch to assign a dhcp address to its vlan 1 interface)

ip interface vlan-20 address 192.168.20.1 mask 255.255.255.0 vlan 20 (Statically assigns ip address 192.168.20.1/24 to interface vlan 20)

AAA

aaa authentication default “local” (The default authentication method is to authenticate using the local switch user database)

aaa authentication console “local” (The console authentication method is to authenticate using the local switch user database)

aaa authentication snmp “local” (The snmp authentication method is to authenticate using the local switch user database)

aaa authentication ftp “local” (The ftp authentication method is to authenticate using the local switch user database)

QOS

policy condition vlan20 source vlan 20 (creates a policy condition called vlan 20 from a source vlan of 20)

policy action dscp46 dscp 46 (Creates a policy action called dscp46 and assigns dscp value 46)

policy action p5 priority p5 (Creates a policy action called p5 and assigns it a priority of p5)

policy rule vlan20-dscp46 condition vlan20 action dscp46 (Creates a policy rule called vlan20-dscp46 referencing condition name vlan20 and apply the action named dscp46)

policy rule vlan20-p5 condition vlan20 action p5 (Creates a policy rule called vlan20-p5 referencing condition name vlan 20 and apply the action named p5)

qos apply (Apply the QOS rules)

SESSION MANAGER

session timeout cli 30 (Time out any cli session after 30mins)

SNMP

snmp security no security (Turns off Security on SNMP, i.e. no SNMP v3)

snmp authentication trap enable (Turns on Authentication Traps)

snmp community map “snmppublic” user “snmpuser” on (Maps sommunity name snmppublic to user snmpuser)

STATIC ROUTES

ip static-route 0.0.0.0/0 gateway 192.168.10.1 metric 1 (Assigns a default route pointing to 192.168.10.1 with a metric of 1)

LINK AGGREGATE (LACP)

lacp linkagg 1 size 2 admin state enable (Creates an LACP port-channel with a size of 2 ports)

lacp linkagg 1 actor admin key 5 (Assigns key 5 to lacp linkagg 1)

lacp agg 1/1 actor admin key 5 (Places port 1/1 into the lacp linkagg 1 with key 5)

lacp agg 1/2 actor admin key 5 (Places port 1/2 into the lacp linkagg 1 with key 5)

SPANNING TREE

bridge mode 1×1 (Per-Vlan spanning tree)

bridge protocol STP (Turns on Standard Spanning-Tree)

bridge protocol RSTP (Turns on Rapid Spanning-Tree)

bridge pritority 1 (Assigns bridge priority 1 to this switch, making it the root bridge)

bridge port 1/1 loop-guard enable (Turns on loop-guard on port 1/1)

DHCP AND UDP RELAY

ip helper per-vlan only (Turns on IP Helper per-vlan)

ip helper address 192.168.10.100 vlan 10 (DHCP Server 192.168.10.100 for vlan 10)

ip helper forward delay 0 (Immediately forward DHCP packets)

LOGGING

swlog appid INTERFACE level debug 1 (Activates debug level 1 logging for Interfaces)

swlog console level info (Sets console log level to info)

debug fscollect enable (Enables debug fscollect)

NTP

ntp server pool.ntp.org (Sets NTP server as pool.ntp.org)

Disclaimer:
All the tutorials included on this site are performed in a lab environment to simulate a real world production scenario. As everything is done to provide the most accurate steps to date, we take no responsibility if you implement any of these steps in a production environment.