Upgrading Software Images and Configuration Files
December 2008
© 2008 Foundry Networks, Inc.
7-35
The configuration file contains these commands:
interface ethernet 3/1
ip address 10.10.10.1/24
The running-config already has a command to add an address to 3/1, so the CLI responds like this:
NetIron
(config)# interface ethernet 3/1
NetIron
(config-if-e1000-3/1)# ip add 10.10.10.69/24
Error: can only assign one primary ip address per subnet
NetIron
(config-if-e1000-3/1)#
To successfully replace the address, enter commands into the file as follows:
interface ethernet
3/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:
NetIron
(config)# interface ethernet 3/1
NetIron
(config-if-e1000-3/1)# no ip add 10.10.10.1/24
NetIron
(config-if-e1000-3/1)# ip add 10.10.10.69/24
NetIron
-if-e1000-3/1)
•
Always use the
end
command at the end of the file. The
end
command must appear on the last line of the file,
by itself.
Loading the Configuration Information Into the Running-Config
You can load the configuration information from a TFTP server. To load the file from a TFTP server, use either of
the following commands:
•
copy tftp running-config
<ip-addr> <filename> [
overwrite
]
•
ncopy tftp
<ip-addr> <filename>
running-config
Using SNMP to Save and Load Configuration Information
You can use a third-party SNMP management application such as HP OpenView to save and load a NetIron MLX
Series router’s configuration. To save and load configuration information using HP OpenView, use the following
procedure.
1.
Enable the SNMP agent on the router using the following command from the global CONFIG level of the CLI:
snmp-server
2.
On the router, enter the following command from the global CONFIG level of the CLI:
no snmp-server pw-check
This command disables password checking for SNMP set requests. If a third-party SNMP management
application does not add a password to the password field when it sends SNMP set requests to a Foundry
device, by default the Foundry device rejects the request.
3.
From a management station, send the following SNMP PDU to the agent:
SnmpSet (1.3.6.1.4.1.1191.1.1.2.1.5.0
= <tftp-ip-address>
1.3.6.1.4.1.1991.1.1.2.1.8.0
= <config-file-name>
1.3.6.1.4.1.1991.1.1.2.1.9.0
= <command-integer>
where:
<tftp-ip-addr> is the TFTP server’s IP address.
<config-file-name> is the configuration file name.