Basic Commands On Alcatel Omniswitch2
Basic Commands On Alcatel Omniswitch2
Basic Commands On Alcatel Omniswitch2
Introduction
This page is based on the notes I took when managing Alcatel Omniswitchs
6600, 6800 in 2007 and later 6850. The full documentation can be found on
Alcatel-Lucent website.
Configure VLANs
A layer 2 VLAN is created with vlan <vlan_number> enable name "vlan
name" and removed with no vlan <vlan_number>. show vlan lists all
VLANs, show vlan <vlan_number> shows vlan <vlan_number> details.
Depending on the microcode version (show microcode), a layer 3 VLAN is
created using:
ip interface "interface name" vlan <vlan_number> address
<address> mask <netmask>
vlan router "interface name" vlan <vlan_number> address
<address> mask <netmask>
Port association:
802.1Q:
Interfaces
Global status: Show interfaces status
Info about an interface (admin status, MAC, speed, duplex, errors, ...): show
interfaces [port|status|<slot>/<port>|...]
Summary of interfaces errors: show interfaces counters errors
To clear counters: interfaces <slot>[/port1-port2] no l2 statistics
To change an interface: interface <slot>/<port> [speed <10_100_1000>|
duplex <half_full>|autoneg <state>|flood rate <rate>]
To switch from autonegociation to 100FD, set
autoneg off
speed 100 and duplex full
If forced in 100FD while autoneg is on, the port will stay down
To disable an interface: interface <slot>/<port> admin down
Link Aggregation
Dynamic LAG (LACP)
lacp linkagg <id> size <size> admin state enable
lacp linkagg <id> actor admin key <key>
lacp agg <slot/port> actor admin key <key>
Static LAG
static linkagg <id> size <size> admin state enable
static linkagg <id> name <name>
static agg <slot/port> agg num <id>
Hardware
When stacking is operational, one switch is primary, one other secondary, the
others idle. If the primary disappears, the secondary becomes primary and the
first idle becomes secondary.
Get info about the chassis: show chassis and about the stack: show stack
topology.
System
Uptime, date, name, contact, location: show system
To change:
system name <"name">
system contact <"contact">
system location <"location">
NTP
Set a server: ntp server <server_ip>. Even if the DNS is configured, you
cannot specify a name for the NTP server. Then activate NTP: ntp client
enable.
Get NTP info:
show ntp client: tells if NTP is on or off, when was the last updated, ...
show ntp server-list: get the list of servers and with which server the
swich is synchronized
Logs
Show logging conf: show swlog
Get switch logs:
STP
STP can operates in two modes: flat and 1x1. In flat mode, there is only one
instance for the whole switch whereas in 1x1 mode, there is one instance per
VLAN (like pvst on Cisco switches or vstp on Juniper ones). I recommend the
1x1 mode if you do not want to go the MSTP way. Change STP mode: bridge
mode (flat|1x1)
DNS
Name servers: ip name-server <IP1> <IP2>
Domain name: ip domain-name <domain-name>
Activate DNS client: ip domain-lookup
DHCP relay
ip service udp-relay
DHCP relay only for specified vlans: ip helper per-vlan only
DHCP server address: ip helper address <dhcp_server> vlan
<vlan_number>
Enable DHCP relay: ip udp relay BOOTP
Services
Activate/deactivate services: [no] ip service (ftp|ssh|telnet|http|secure-
http|udp-relay|snmp|all). List of activated services: show ip service.
For https: ip http ssl
AAA
Authentification can be local or made with a radius
To activate a service, the authentification have to be set: aaa
authentification default "local", aaa authentification (console|ssh|
ftp|802.1X|vlan|...) "local"
ARP
ARP table: show arp
Mac Address table: show mac-address-table
Add a static MAC/IP entry: arp <IP> <MAC>, no arp <IP> to remove it.
Clear dynamic arp entries: clear arp-table
To specify when an dynamic entry timeouts (default: 300seconds): mac-
address-table aging-time <seconds> [vlan <vlan_number>]
SNMP
First, you have to create a user and give it the right to do SNMP:
user <"username"> read-only (all|ip|interface|...) password
<password>
The only way I found to give the user SNMP capabilities is to use the
web interface ..., but you can desactivate it with user <"username"> no
snmp
Port mirroring
Port mirroring works 12 ports by 12 ports. It is possible to configure multiple
sources for one session and thus see the traffic of multiple ports in one output.
show port mirroring status
port mirroring <session> source <slot>/<port> destination
<slot>/<port> enable
no port mirroring <session>
POE
By default, the POE is disabled on all ports.
To enable the POE on a given port: lanpower start <slot>/<port>
To enable it on the whole slot: lanpower start <slot>
To limit the power available for a given port: lanpower <slot>/<port> power
<milliwatts>
To limit the power available for a slot: lanpower <slot> maxpower <watts>
A power of 230W is enough for a full slot equipped with IP Phones (note:
TBC).
It has been noticed that a switch may prove instable with POE if too many
equipments are connected and its PSU is not enough powerfull.
By default, QOS is not trusted in access ports and all tags are set to 0. It is
trusted on trunked ports. To trust everywhere: qos trust ports
To trust on one given port: qos port <slot>/<port> trusted
As an example:
802.1X
aaa radius-server "radius_srv1" host <IP Addr> key <auth_key>
retransmit 3 timeout 2 auth-port 1812 acct-port 1813
aaa radius-server "radius_srv2" host <IP Addr> key <auth_key>
retransmit 3 timeout 2 auth-port 1812 acct-port 1813
AVLAN:
# Authentication portal in the switch. By default, last IP of the
subnet.
avlan auth-ip <vlan-ID> <IP address, in same VLAN, different of
switch IP address>
VLAN definition
# 802.1X
# - direction both => control on inbound + outbound traffic
# - port-control auto => port initially in unauthorized state, and
put in "authorized mode" automatically by the switch upon the
exchanged between the switch and the end station
# - quiet-period 60 => reject the 802.1X authentications during 60s
after an authentication failure
# - server-timeout 30 => superseded by the aaa radius-server ...
timeout
# - re-authperiod 3600 => 3600s=1h before re-authent is required
# - no reauthentication => disables the reauthent
802.1x 1/3 direction both port-control auto quiet-period 60 tx-
period 30 supp-timeout 30 server-timeout 30 max-req 2 re-authperiod
3600 no reauthentication
erterstrsetreterwtewrtrewt