Configuring IP IP Forwarding
OmniSwitch AOS Release 8 Network Configuration Guide December 2017 page 15-8
Modifying an IP Router Interface
The ip interface command is also used to modify existing IP interface parameter values. It is not
necessary to remove the IP interface and then create it again with the new values. The changes specified
overwrite existing parameter values. For example, the following command changes the subnet mask to
255.255.255.0, the forwarding status to no forwarding and the encapsulation to snap by overwriting
existing parameter values defined for the interface. The interface name, Accounting, is specified as part of
the command syntax to identify which interface to change.
-> ip interface Accounting mask 255.255.255.0 no forward snap
When changing the IP address for the interface, the subnet mask reverts to the default mask value if it was
previously set to a non-default value and it is not specified when changing the IP address. For example,
the following command changes the IP address for the Accounting interface:
-> ip interface Accounting address 40.0.0.1
The subnet mask for the Accounting interface was previously set to 255.255.255.0. The above example
resets the mask to the default value of 255.0.0.0 because 40.0.0.1 is a Class A address and no other mask
was specified with the command. This only occurs when the IP address is modified; all other parameter
values remain unchanged unless otherwise specified.
To avoid the problem in the above example, enter the non-default mask value whenever the IP address is
changed for the interface. For example:
-> ip interface Accounting address 40.0.0.1 mask 255.255.255.0
-> ip interface Accounting address 40.0.0.1/8
Use the show ip interface command to verify IP router interface changes. For more information about
these commands, see the OmniSwitch AOS Release 8 CLI Reference Guide.
Removing an IP Router Interface
To remove an IP router interface, use the no form of the ip interface command. It is only necessary to
specify the name of the IP interface, as shown in the following example:
-> no ip interface Marketing
To view a list of IP interfaces configured on the switch, use the show ip interface command. For more
information about this command, see the OmniSwitch AOS Release 8 CLI Reference Guide.