Note:
You can enter text following ” ! “ as a comment. However, the ” !“ is not a
comment marker. It returns the CLI to the global configuration level.
Note:
The CLI changes to the global CONFIG level if you load the configuration
as a startup-config file instead of the running-config (using the
copy tftp
startup-config
<ip-addr> <filename>
command or
ncopy tftp
<ip-addr> <from-name>
startup-config
command).
Note:
If you copy-and-paste a configuration into a management session, the CLI
ignores the ” ! “ instead of changing the CLI to the global CONFIG level.
As a result, you might get different results if you copy-and-paste a
configuration instead of loading the configuration using TFTP.
v
Make sure you enter each command at the correct CLI level. Since some
commands have identical forms at both the global CONFIG level and individual
configuration levels, if the CLI’s response to the configuration file results in the
CLI entering a configuration level you did not intend, then you can get
unexpected results.
For example, if a trunk group is active on the device, and the configuration file
contains a command to disable STP on one of the secondary ports in the trunk
group, the CLI rejects the commands to enter the interface configuration level for
the port and moves on to the next command in the file you are loading. If the
next command is a spanning-tree command whose syntax is valid at the global
CONFIG level as well as the interface configuration level, then the software
applies the command globally. Here is an example:
The configuration file contains these commands:
interface ethernet1/2
no spanning-tree
The CLI responds like this:
NetIron(config)# interface ethernet 1/2
Error - cannot configure secondary ports of a trunk
NetIron(config)# no spanning-tree
NetIron(config)#
v
If the file contains commands that must be entered in a specific order, the
commands must appear in the file in the required order. For example, if you want
to use the file to replace an IP address on an interface, you must first remove the
old address using ”no“ in front of the
ip address
command, then add the new
address. Otherwise, the CLI displays an error message and does not implement
the command. Here is an example:
The configuration file contains these commands:
interface ethernet 1/1
ip address 10.10.10.1/24
The running-config already has a command to add an address to 1/1, so the CLI
responds like this:
NetIron(config)# interface ethernet 1/1
NetIron(config-if-e1000-1/1)# ip add 10.10.10.69/24
Error: can only assign one primary ip address per subnet
NetIron(config-if-e1000-1/1)#
To successfully replace the address, enter commands into the file as follows:
interface ethernet 1/1
no ip address 10.10.10.1/24
ip address 10.10.10.69/24
This time, the CLI accepts the command, and no error message is displayed:
Chapter 7. Upgrading software images and configuration files
53
Содержание 4002-C4A
Страница 2: ......
Страница 8: ...vi IBM Ethernet Switch c series Installation and User Guide ...
Страница 10: ...viii IBM Ethernet Switch c series Installation and User Guide ...
Страница 12: ...x IBM Ethernet Switch c series Installation and User Guide ...
Страница 26: ...2 IBM Ethernet Switch c series Installation and User Guide ...
Страница 37: ...net48bc013 Figure 8 AC power supply net48bc014 Figure 9 Power supply installation Chapter 3 Installation 13 ...
Страница 39: ...net48bc017 Figure 10 Front rack mount position Chapter 3 Installation 15 ...
Страница 41: ...net48bc019 Figure 12 Mid rack mount position Chapter 3 Installation 17 ...
Страница 60: ...36 IBM Ethernet Switch c series Installation and User Guide ...
Страница 68: ...44 IBM Ethernet Switch c series Installation and User Guide ...
Страница 82: ...58 IBM Ethernet Switch c series Installation and User Guide ...
Страница 93: ......
Страница 94: ... Part Number 45W3139 Printed in USA GC27 2238 00 1P P N 45W3139 80218 001 ...