Projet

Général

Profil

NXOS » Historique » Version 21

Laurent GUERBY, 10/03/2018 12:40

1 20 Laurent GUERBY
{{>toc}}
2 20 Laurent GUERBY
3 1 Matthieu Herrb
h1. NXOS
4 1 Matthieu Herrb
5 11 Laurent GUERBY
Cisco Nexus 3064X
6 11 Laurent GUERBY
version 7.0(3)I4(7)
7 1 Matthieu Herrb
8 10 Laurent GUERBY
Voir aussi https://www.grenode.net/Documentation_technique/Machines/kraken/
9 10 Laurent GUERBY
10 21 Laurent GUERBY
https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus3000/sw/fundamentals/503_U3_1/b_Nexus_3000_Fundamentals_Guide_Release_503_U3_1.pdf
11 18 Laurent GUERBY
12 1 Matthieu Herrb
h2. Interface de management out-of-band
13 1 Matthieu Herrb
14 9 Laurent GUERBY
* n3064a Adresse: 192.168.129.46
15 9 Laurent GUERBY
16 9 Laurent GUERBY
<pre>
17 9 Laurent GUERBY
interface mgmt0
18 9 Laurent GUERBY
  vrf member management
19 9 Laurent GUERBY
  ip address 192.168.129.46/24
20 9 Laurent GUERBY
21 9 Laurent GUERBY
</pre>
22 1 Matthieu Herrb
23 1 Matthieu Herrb
h2. Commandes
24 1 Matthieu Herrb
25 1 Matthieu Herrb
h3. Sauvegarde config 
26 1 Matthieu Herrb
27 1 Matthieu Herrb
<pre>
28 1 Matthieu Herrb
nexus# copy run start
29 1 Matthieu Herrb
</pre>
30 1 Matthieu Herrb
31 1 Matthieu Herrb
Copie via scp
32 1 Matthieu Herrb
33 1 Matthieu Herrb
<pre>
34 1 Matthieu Herrb
nexus# copy run scp://matthieu@192.168.129.1/
35 1 Matthieu Herrb
</pre>
36 1 Matthieu Herrb
37 1 Matthieu Herrb
h3. Config interface
38 1 Matthieu Herrb
39 1 Matthieu Herrb
<pre>
40 1 Matthieu Herrb
nexus# conf t
41 1 Matthieu Herrb
nexus(config)# interface ethernet 1/3
42 1 Matthieu Herrb
nexus(config-if)# switchport mode trunk
43 1 Matthieu Herrb
nexus(config-if)# exit
44 1 Matthieu Herrb
nexus(config)# exit
45 1 Matthieu Herrb
nexus#
46 1 Matthieu Herrb
</pre>
47 1 Matthieu Herrb
48 1 Matthieu Herrb
pour un vlan non taggé
49 1 Matthieu Herrb
<pre>
50 1 Matthieu Herrb
nexus(config-if)# switchport access vlan 3131
51 1 Matthieu Herrb
</pre>
52 1 Matthieu Herrb
53 2 Matthieu Herrb
h3. Etat des interfaces
54 3 Matthieu Herrb
55 1 Matthieu Herrb
<pre>
56 1 Matthieu Herrb
nexus# sh int status
57 1 Matthieu Herrb
nexus# sh int transceiver
58 1 Matthieu Herrb
nexus# sh int ethernet 1/1
59 16 Sebastien Badia
# Afficher le DOM d'une optique
60 16 Sebastien Badia
nexus# sh int Eth 1/1 tran de
61 1 Matthieu Herrb
</pre>
62 1 Matthieu Herrb
</pre>
63 2 Matthieu Herrb
64 1 Matthieu Herrb
h3. Boot
65 1 Matthieu Herrb
66 1 Matthieu Herrb
<pre>
67 1 Matthieu Herrb
nexus# conf t
68 1 Matthieu Herrb
nexus(config)# boot nxos bootflash:/nxos.7.0.3.I4.7.bin 
69 1 Matthieu Herrb
nexus(config)# boot order bootflash
70 1 Matthieu Herrb
nexus(config)# exit
71 1 Matthieu Herrb
nexus#
72 4 Matthieu Herrb
</pre>
73 4 Matthieu Herrb
74 15 Sebastien Badia
h3. Features et Misc
75 8 Laurent GUERBY
76 1 Matthieu Herrb
<pre>
77 15 Sebastien Badia
# Pour dire au switch d'accepter n'importe quel type de SFP
78 1 Matthieu Herrb
service unsupported-transceiver
79 15 Sebastien Badia
# Autoriser le switch à avoir une IP sur une interface VLAN
80 15 Sebastien Badia
feature interface-vlan
81 15 Sebastien Badia
# Activer les features LACP
82 15 Sebastien Badia
feature lacp
83 15 Sebastien Badia
# Activer la possiblité de faire du LLDP
84 15 Sebastien Badia
feature lldp
85 15 Sebastien Badia
# Mettre tous les ports en shutdown par défaut (penser à activer le port lors de la configuration avec un 'no shutdown'
86 15 Sebastien Badia
system default switchport shutdown
87 15 Sebastien Badia
</pre>
88 15 Sebastien Badia
89 15 Sebastien Badia
h3. Misc
90 15 Sebastien Badia
91 15 Sebastien Badia
<pre>
92 8 Laurent GUERBY
no password strength-check
93 8 Laurent GUERBY
94 13 Laurent GUERBY
nexus# sh mac address-table 
95 13 Laurent GUERBY
96 13 Laurent GUERBY
nexus# sh environment
97 13 Laurent GUERBY
(...) 
98 13 Laurent GUERBY
Temperature:
99 13 Laurent GUERBY
-------------------------------------------------------------------------
100 13 Laurent GUERBY
Module  Sensor             MajorThresh   MinorThres   CurTemp     Status 
101 13 Laurent GUERBY
                           (Celsius)     (Celsius)   (Celsius)           
102 13 Laurent GUERBY
-------------------------------------------------------------------------
103 13 Laurent GUERBY
1        Back-Right (D0)   70            44            33         Ok             
104 13 Laurent GUERBY
1        Back-Left  (D1)   70            42            29         Ok             
105 13 Laurent GUERBY
1        Front-Right(D2)   70            47            32         Ok             
106 13 Laurent GUERBY
1        Front-Left (D3)   70            49            30         Ok         
107 13 Laurent GUERBY
108 14 Laurent GUERBY
nexus# sh int e1/1 cap
109 14 Laurent GUERBY
nexus# sh int e1/1 tra det
110 14 Laurent GUERBY
111 1 Matthieu Herrb
112 1 Matthieu Herrb
# TODO verifier
113 1 Matthieu Herrb
conf t
114 1 Matthieu Herrb
int eth1/4
115 1 Matthieu Herrb
switchport trunk allowed vlan xxx
116 1 Matthieu Herrb
switchport trunk native vlan nnn
117 1 Matthieu Herrb
</pre>
118 19 Laurent GUERBY
119 19 Laurent GUERBY
h3. 40G
120 19 Laurent GUERBY
121 19 Laurent GUERBY
40G <=> 4x10G reboot necessaire
122 19 Laurent GUERBY
https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus3000/sw/interfaces/6_x/b_Cisco_n3k_Interfaces_Configuration_Guide_602_U11/b_Cisco_n3k_Interfaces_Configuration_Guide_602_U11_chapter_010.html
123 19 Laurent GUERBY
124 19 Laurent GUERBY
<pre>
125 19 Laurent GUERBY
conf t
126 19 Laurent GUERBY
hardware profile portmode 48x10g+4x40g
127 19 Laurent GUERBY
exit
128 19 Laurent GUERBY
reload
129 19 Laurent GUERBY
</pre>
130 19 Laurent GUERBY
131 19 Laurent GUERBY
4x10G :
132 19 Laurent GUERBY
133 19 Laurent GUERBY
<pre>
134 19 Laurent GUERBY
hardware profile portmode 64x10G
135 19 Laurent GUERBY
</pre>
136 19 Laurent GUERBY
137 8 Laurent GUERBY
138 4 Matthieu Herrb
h2. Infos
139 4 Matthieu Herrb
140 4 Matthieu Herrb
<pre>
141 4 Matthieu Herrb
nexus# sh version
142 4 Matthieu Herrb
Cisco Nexus Operating System (NX-OS) Software
143 4 Matthieu Herrb
TAC support: http://www.cisco.com/tac
144 4 Matthieu Herrb
Copyright (C) 2002-2017, Cisco and/or its affiliates.
145 4 Matthieu Herrb
All rights reserved.
146 4 Matthieu Herrb
The copyrights to certain works contained in this software are
147 4 Matthieu Herrb
owned by other third parties and used and distributed under their own
148 4 Matthieu Herrb
licenses, such as open source.  This software is provided "as is," and unless
149 4 Matthieu Herrb
otherwise stated, there is no warranty, express or implied, including but not
150 4 Matthieu Herrb
limited to warranties of merchantability and fitness for a particular purpose.
151 4 Matthieu Herrb
Certain components of this software are licensed under
152 4 Matthieu Herrb
the GNU General Public License (GPL) version 2.0 or 
153 4 Matthieu Herrb
GNU General Public License (GPL) version 3.0  or the GNU
154 4 Matthieu Herrb
Lesser General Public License (LGPL) Version 2.1 or 
155 4 Matthieu Herrb
Lesser General Public License (LGPL) Version 2.0. 
156 4 Matthieu Herrb
A copy of each such license is available at
157 4 Matthieu Herrb
http://www.opensource.org/licenses/gpl-2.0.php and
158 4 Matthieu Herrb
http://opensource.org/licenses/gpl-3.0.html and
159 4 Matthieu Herrb
http://www.opensource.org/licenses/lgpl-2.1.php and
160 4 Matthieu Herrb
http://www.gnu.org/licenses/old-licenses/library.txt.
161 4 Matthieu Herrb
162 4 Matthieu Herrb
Software
163 4 Matthieu Herrb
  BIOS: version 4.0.0
164 4 Matthieu Herrb
  NXOS: version 7.0(3)I4(7)
165 4 Matthieu Herrb
  BIOS compile time:  12/05/2016
166 4 Matthieu Herrb
  NXOS image file is: bootflash:///nxos.7.0.3.I4.7.bin
167 4 Matthieu Herrb
  NXOS compile time:  6/28/2017 14:00:00 [06/28/2017 21:53:29]
168 4 Matthieu Herrb
169 4 Matthieu Herrb
170 4 Matthieu Herrb
Hardware
171 4 Matthieu Herrb
  cisco Nexus3000 C3064PQ Chassis 
172 4 Matthieu Herrb
  Intel(R) Celeron(R) CPU        P4505  @ 1.87GHz with 3903284 kB of memory.
173 4 Matthieu Herrb
  Processor Board ID FOC17342TSZ
174 4 Matthieu Herrb
175 4 Matthieu Herrb
  Device name: nexus
176 4 Matthieu Herrb
  bootflash:    1638000 kB
177 4 Matthieu Herrb
  usb1:               0 kB (expansion flash)
178 4 Matthieu Herrb
179 4 Matthieu Herrb
Kernel uptime is 0 day(s), 2 hour(s), 10 minute(s), 12 second(s)
180 4 Matthieu Herrb
181 4 Matthieu Herrb
Last reset at 335975 usecs after  Wed Feb 14 15:25:27 2018
182 4 Matthieu Herrb
183 4 Matthieu Herrb
  Reason: Reset Requested by CLI command reload
184 4 Matthieu Herrb
  System version: 7.0(3)I4(7)
185 4 Matthieu Herrb
  Service: 
186 4 Matthieu Herrb
187 4 Matthieu Herrb
plugin
188 4 Matthieu Herrb
  Core Plugin, Ethernet Plugin
189 4 Matthieu Herrb
190 4 Matthieu Herrb
Active Package(s):
191 5 Matthieu Herrb
192 12 Laurent GUERBY
nexus# sh inventory all
193 5 Matthieu Herrb
NAME: "Chassis",  DESCR: "Nexus3000 C3064PQ Chassis"             
194 5 Matthieu Herrb
PID: N3K-C3064PQ-10GX    ,  VID: V01 ,  SN: FOC1734R15F          
195 5 Matthieu Herrb
196 5 Matthieu Herrb
NAME: "Slot 1",  DESCR: "48x10GE + 4x40G Supervisor"            
197 5 Matthieu Herrb
PID: N3K-C3064PQ-10GX    ,  VID: V01 ,  SN: FOC17342TSZ          
198 5 Matthieu Herrb
199 5 Matthieu Herrb
NAME: "Power Supply 1",  DESCR: "Nexus3000 C3064PQ Chassis Power Supply"
200 5 Matthieu Herrb
PID: N2200-PAC-400W      ,  VID: V04 ,  SN: DTN1733P0VH          
201 5 Matthieu Herrb
202 5 Matthieu Herrb
NAME: "Power Supply 2",  DESCR: "Nexus3000 C3064PQ Chassis Power Supply"
203 5 Matthieu Herrb
PID: N2200-PAC-400W      ,  VID: V04 ,  SN: DTN1733P0UK          
204 5 Matthieu Herrb
205 5 Matthieu Herrb
NAME: "Fan 1",  DESCR: "Nexus3000 C3064PQ Chassis Fan Module"  
206 1 Matthieu Herrb
PID: N3K-C3064-FAN-F     ,  VID: V00 ,  SN: N/A                  
207 12 Laurent GUERBY
208 12 Laurent GUERBY
NAME: Ethernet1/1,  DESCR: FiberStore                              
209 12 Laurent GUERBY
PID: SFP-H10GB-ACU10M    ,  VID: SFP-10G-AOC     ,  SN: F176CO35764-1    
210 5 Matthieu Herrb
211 5 Matthieu Herrb
nexus# sh license 
212 5 Matthieu Herrb
license_FOC1734R15F_12_1.lic:
213 5 Matthieu Herrb
SERVER this_host ANY
214 5 Matthieu Herrb
VENDOR cisco
215 5 Matthieu Herrb
FEATURE LAN_BASE_SERVICES_PKG cisco 1.0 permanent uncounted \
216 5 Matthieu Herrb
        VENDOR_STRING=<LIC_SOURCE>NEXUS_PRODUCTION</LIC_SOURCE><SKU>N3K-BAS1K9</SKU> \
217 5 Matthieu Herrb
        HOSTID=VDH=FOC1734R15F \
218 5 Matthieu Herrb
        NOTICE=<LicFileID>20131030222602000</LicFileID><LicLineID>1</LicLineID><PAK>N3K-C3064PQ-10GXFOC1734R15F</PAK> \
219 5 Matthieu Herrb
        SIGN=BBF8EBE2F7B6
220 5 Matthieu Herrb
FEATURE LAN_ENTERPRISE_SERVICES_PKG cisco 1.0 permanent uncounted \
221 5 Matthieu Herrb
        VENDOR_STRING=<LIC_SOURCE>NEXUS_PRODUCTION</LIC_SOURCE><SKU>N3K-LAN1K9</SKU> \
222 5 Matthieu Herrb
        HOSTID=VDH=FOC1734R15F \
223 5 Matthieu Herrb
        NOTICE=<LicFileID>20131030222602000</LicFileID><LicLineID>2</LicLineID><PAK>N3K-C3064PQ-10GXFOC1734R15F</PAK> \
224 5 Matthieu Herrb
        SIGN=FF75EB18A86E
225 5 Matthieu Herrb
226 4 Matthieu Herrb
</pre>
227 6 Laurent GUERBY
228 7 Laurent GUERBY
h2. Consommation
229 6 Laurent GUERBY
230 6 Laurent GUERBY
77 Watt, cos phi 0.92, pas de pic pendant le boot