beautypg.com

Ip address – Brocade Network OS Command Reference v4.1.0 User Manual

Page 380

background image

342

Network OS Command Reference

53-1003115-01

ip address

2

ip address

Configures an IP address.

Synopsis

ip address ip-address/mask [secondary] [{ospf-ignore | ospf-active}]

no ip address

Operands

ip-address

IP address.

mask

Mask for the associated IP subnet. Valid values range from integers from 1
through 31. Dotted-decimal is not supported.

secondary

Specifies that the configured address is a secondary IP address. If this
keyword is omitted, the configured address is the primary IP address.

ospf-ignore

Disables adjacency formation with OSPF neighbors and advertisement of the
interface to OSPF.

ospf-passive

Disables adjacency formation with OSPF neighbors but does not disable
advertisement of the interface to OSPF.

Defaults

None

Command Modes

Interface subtype configuration mode

Description

Use this command to configure a primary or secondary IP address for a specific interface. You can
also use this command to prevent OSPF from running on specified subnets.

Usage Guidelines

Multiple primary IP addresses are supported on an interface.

A primary IP address cannot overlap with a previously configured IP subnet.

A primary IP address must configured before you configure a secondary IP address in the same
subnet.

Enter no ip address to remove the configured static or DHCP address, resetting the address to
0.0.0.0/0.

Examples

To configure a primary IP address on a specific 10-gigabit Ethernet interface:

switch(config)# interface tengigabitethernet 178/0/9

switch(conf-if-te-178/0/9)# ip address 1.1.1.1/24

To configure a secondary IP address on a specific 40-gigabit Ethernet interface:

switch(config)# interface fortygigabitethernet 1/3/1

switch(conf-if-fo-1/3/1)# ip address 1.1.1.1/28 secondary

See Also

interface (range specification), interface ve