Basic Commands On Alcatel Omniswitch
Basic Commands On Alcatel Omniswitch
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.
memory
save working -> certified: copy working certified [flashsynchro], flash-synchro will synchronize the conf accross all slots
save running even in certified mode: configuration
<file> Then move this file to working/boot.cfg
reboot in working mode without rollback: reload
snapshot all
working no rollback-
timeout
Configure VLANs
Port association:
To associate a port to a specific vlan: vlan
<slot>/<port>
vlan port
802.1Q:
To tag a port: vlan
Interfaces
Global status: Show interfaces status
Info about an interface (admin status, MAC, speed, duplex, errors, ...):
show
interfaces [port|status|<slot>/<port>|...]
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.
To monitor the health of the system: show
System
Uptime, date, name, contact, location: show
To change:
system
cmm
The default prompt is "->". session prompt default "sw1->" changes it to "sw1>". You can get the other session parameters with show session config
When a command outputs to many lines on the screen, it is possible to use " more"
to see page by page. Use more to activate the mode and more size <size> to set
the number of lines shown. Cancel this mode with no more.
To change the timeout of the telnet/ssh sessions: session
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:
swich is synchronized
Logs
Show logging conf: show
Get switch logs:
swlog
clear
STP
only logs
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)
spantree
DNS
Name servers: ip
Domain name: ip
domain-name <domain-name>
domain-lookup
DHCP relay
ip service udp-relay
<vlan_number>
Services
Activate/deactivate services: [no] ip service (ftp|ssh|telnet|http|securehttp|udp-relay|snmp|all). List of activated services: show ip service.
For https: ip http ssl
AAA
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-addresstable aging-time <seconds> [vlan <vlan_number>]
SNMP
First, you have to create a user and give it the right to do SNMP:
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
Then configure the snmp server:
Associate the community string with the user you created: snmp
community
Port mirroring
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 stop the POE, use the symmetric commande lanpower
stop (<slot>/<port>|
<slot>)
lanpower <slot>
<slot>/<port> power
<milliwatts>
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.
As an example:
policy network group VoIP 192.168.1.0 mask 255.255.255.0 192.168.11.0
mask 255.255.254.0
policy network group Data 172.16.0.0 mask 255.255.255.0
policy condition "VoIP-VoIP" source network group VoIP destination
network group VoIP
policy condition "VoIP-Data" source network group VoIP destination
network group Data
policy condition "Data-Data" source network group Data destination
network group Data
policy condition "Other" source ip any destination ip any
policy action Deny disposition deny
policy action Permit
policy rule "Allow VoIP-VoIP" precedence 200 condition "VoIP-VoIP"
action Permit
policy rule "Allow VoIP-Data" disable precedence 200 condition "VoIPData" action Permit
policy rule "Allow Data-Data" precedence 200 condition "Data-Data"
action Permit
policy rule "Deny Other" precedence 200 condition "Other" action Deny
qos port 1/2 trusted
qos port 1/3 trusted
qos apply
802.1X
# poll the end device 2 times before stating it is not 802.1X compliant
802.1x 1/3 supp-polling retry 2
# if authentication is successful but returns no VLAN ID ("pass"), use
default vlan for the supplicant else ("fail"), block the port
802.1x 1/3 supplicant policy authentication pass group-mobility
default-vlan fail block
#idem for non supplicant (not 802.1X) devices - authentication by MAC
address with a Radius
802.1x 1/3 non-supplicant policy authentication pass group-mobility
block fail block
# used by supplicant and non supplicant when "captive-portal" is used
in the "802.1x supplicant policy" or "802.1x non-supplicant policy"
802.1x 1/3 captive-portal policy authentication pass default-vlan fail
block