What output does interface vlan ? give?
MX6012A [standalone: master] (config) # vlan ?
<vlan number 1-4094> OR <vlan range vlan_id-vlan_id>
10
MX6012A [standalone: master] (config) # interface vlan ?
<cr> Enter interface mode
alias Configure an alias on this interface
comment Add a comment for this interface
dhcp Enable DHCP for this interface
duplex Configure the duplex of this interface
ip Configure IP options on this interface
ipv6 Configure IPv6 options on this interface
mtu Configure the MTU of this interface
shutdown Disable this interface
speed Configure the speed of this interface
zeroconf Enable zeroconf for this interface
MX6012A [standalone: master] (config) # interface vlan
sx60361 [standalone: master] # configure terminal
sx60361 [standalone: master] (config) # vlan 10
sx60361 [standalone: master] (config vlan 10) # exit
sx60361 [standalone: master] (config) # interface vlan 10
% Unrecognized command "10".
Type "interface vlan ?" for help.
sx60361 [standalone: master] (config) # interface
ethernet ib0 mgmt0 port-channel
ib lo mgmt1 proxy-arp
ORG21-SW-XLG01 [standalone: master] # conf t
ORG21-SW-XLG01 [standalone: master] (config) # interface vlan ?
<vlan number>
5
ORG21-SW-XLG01 [standalone: master] (config) # interface vlan 5
ORG21-SW-XLG01 [standalone: master] (config interface vlan 5) #
Thanks, this is the output I get:This happens if I try on my flashed SX6012
Code:ORG21-SW-XLG01 [standalone: master] # conf t ORG21-SW-XLG01 [standalone: master] (config) # interface vlan ? <vlan number> 5 ORG21-SW-XLG01 [standalone: master] (config) # interface vlan 5 ORG21-SW-XLG01 [standalone: master] (config interface vlan 5) #
MX6012A [standalone: master] (config) # vlan ?
<vlan number 1-4094> OR <vlan range vlan_id-vlan_id>
5
MX6012A [standalone: master] (config) # interface vlan ?
<cr> Enter interface mode
alias Configure an alias on this interface
comment Add a comment for this interface
dhcp Enable DHCP for this interface
duplex Configure the duplex of this interface
ip Configure IP options on this interface
ipv6 Configure IPv6 options on this interface
mtu Configure the MTU of this interface
shutdown Disable this interface
speed Configure the speed of this interface
zeroconf Enable zeroconf for this interface
MX6012A [standalone: master] (config) # interface vlan 5
% Unrecognized command "5".
Type "interface vlan ?" for help.
MX6012A [standalone: master] (config) #
MX6012A [standalone: master] # show version
Product name: MLNX-OS
Product release: 3.6.1002
Build ID: #1-dev
Build date: 2016-06-09 20:24:26
Target arch: ppc
Target hw: m460ex
Built by: jenkins@fit-build-95
Version summary: PPC_M460EX 3.6.1002 2016-06-09 20:24:26 ppc
Product model: ppc
Product hw: m460ex
Host ID: MT1519X
Uptime: 12m 2.320s
CPU load averages: 1.33 / 1.51 / 1.05
Number of CPUs: 1
System memory: 792 MB used / 1235 MB free / 2027 MB total
Swap: 0 MB used / 0 MB free / 0 MB total
MX6012A [standalone: master] # show system type
SX6012
MX6012A [standalone: master] # show system profile
Profile: vpi-single-switch
MX6012A [standalone: master] # show system capabilities
IB: Supported, L2, Adaptive Routing
Ethernet: Supported, L2, L3
GW: Supported
Max SM nodes: 2048
IB Max licensed speed: FDR
Ethernet Max licensed speed: 56Gb
MX6012A [standalone: master] # show inventory
---------------------------------------------------------------------------
Module Part Number Serial Number Asic Rev. HW Rev.
---------------------------------------------------------------------------
CHASSIS MSX6012F-2BFS MT1519X N/A 04
MGMT 100-886-236-04 MT1519X 2 04
MX6012A [standalone: master] # show configuration
##
## Active saved database "initial"
## Generated at 2019/12/21 11:43:24 +0000
## Hostname: MX6012A
##
##
## Running-config temporary prefix mode setting
##
no cli default prefix-modes enable
##
## Port configuration
##
port 1/1 type ethernet force
port 1/2 type ethernet force
port 1/3 type ethernet force
port 1/4 type ethernet force
port 1/5 type ethernet force
port 1/6 type ethernet force
port 1/7 type ethernet force
port 1/8 type ethernet force
port 1/9 type ethernet force
port 1/10 type ethernet force
port 1/11 type ethernet force
port 1/12 type ethernet force
##
## Interface Ethernet configuration
##
interface ethernet 1/11 speed 1000 force
##
## Network interface configuration
##
no interface mgmt0 dhcp
interface mgmt0 ip address 192.168.0.235 /24
##
## Network interface IPv6 configuration
##
no interface mgmt0 ipv6 address autoconfig default
no interface mgmt0 ipv6 enable
##
## Other IP configuration
##
ip route 0.0.0.0 0.0.0.0 192.168.0.1
ip domain-list lan
ip name-server 192.168.0.1
##
## Local user account configuration
##
username admin password
##
## AAA remote server configuration
##
# ldap bind-password ********
# radius-server key ********
# tacacs-server key ********
##
## Network management configuration
##
# web proxy auth basic password ********
##
## X.509 certificates configuration
##
#
# Certificate name system-self-signed, ID
# (public-cert config omitted since private-key config is hidden)
##
## Persistent prefix mode setting
##
cli default prefix-modes enable
MX6012A [standalone: master] #
SX60121 [standalone: master] (config) # vlan 99
SX60121 [standalone: master] (config vlan 99) # exit
SX60121 [standalone: master] (config) # no vlan 99
SX60121 [standalone: master] (config) #
show version
Product name: MLNX-OS
Product release: 3.6.1002
Build ID: #1-dev
Build date: 2016-06-09 20:24:26
Target arch: ppc
Target hw: m460ex
Built by: jenkins@fit-build-95
Version summary: PPC_M460EX 3.6.1002 2016-06-09 20:24:26 ppc
It does create the vlan, as shown in a previous post:So it looks like its not creating the vlan... for me it looks like this:
As Necrotyr said, the issue isn't creating the vlan but a vlan interface.Code:MX6012A [standalone: master] (config) # vlan 10 MX6012A [standalone: master] (config vlan 10) # exit MX6012A [standalone: master] (config) # interface vlan 10 % Unrecognized command "10". Type "interface vlan ?" for help.
ORG21-SW-XLG01 [standalone: master] # sh version
Product name: MLNX-OS
Product release: 3.6.1002
Build ID: #1-dev
Build date: 2016-06-09 20:24:26
Target arch: ppc
Target hw: m460ex
Built by: jenkins@fit-build-95
Version summary: PPC_M460EX 3.6.1002 2016-06-09 20:24:26 ppc
Product model: ppc
Product hw: m460ex
Host ID: MT...
Uptime: 81d 2h 2m 4.672s
CPU load averages: 1.22 / 1.11 / 1.13
Number of CPUs: 1
System memory: 820 MB used / 1207 MB free / 2027 MB total
Swap: 0 MB used / 0 MB free / 0 MB total
ORG21-SW-XLG01 [standalone: master] # sh system type
SX6012
ORG21-SW-XLG01 [standalone: master] # sh system profile
Profile: eth-single-switch
ORG21-SW-XLG01 [standalone: master] # sh system capabilities
IB: Supported, L2, Adaptive Routing
Ethernet: Supported, L2, L3
GW: Supported
Max SM nodes: 2048
IB Max licensed speed: FDR
Ethernet Max licensed speed: 56Gb
ORG21-SW-XLG01 [standalone: master] # sh inventory
---------------------------------------------------------------------------
Module Part Number Serial Number Asic Rev. HW Rev.
---------------------------------------------------------------------------
CHASSIS MSX6012F-2BFS MT... N/A 06
MGMT 100-886-236-04 MT... 2 06
I'm an idiot, L3 wasn't active Now it works just like it should. Many thanks to all who helped!Have you made sure that L3 mode is active?