ip

interface-vlan-config commands

Configures IP related settings for this VLAN interface

Supported in the following platforms:

  • Switches — EX3524, EX3548
  • Wireless Controllers – RFS4000
  • Service Platforms – NX7500, NX7510, NX7520, NX7530, NX9500, NX9510, NX9600

Syntax

ip address [<IP/M>|bootp|dhcp]
ip address <IP/M> {default-gateway <IP>|secondary <IP>}
ip address [bootp|dhcp]

Parameters

ip address <IP/M> {default-gateway <IP>|secondary <IP>}
ip address <IP/M> {default-gateway <IP>|secondary <IP>} Manually configures the selected VLAN interface‘s primary and secondary IPv4 addresses. It also allows to optionally configure the default gateway.
  • <IP/M> – Manually configures this VLAN interface‘s IP address in the A.B.C.D/M format. Network mask for the associated IP subnet. This mask identifies the host address bits used for routing to specific subnets. The network mask can be either in the traditional format xxx.xxx.xxx.xxx or use classless format with the range /5 to /32. For example the subnet 255.255.224.0 would be /19.
    • default-gateway <IP> – Optional. Configures the default gateway‘s IP address. This is the gateway through which this switch can reach other subnets not found in the local routing table. Before specifying the default gateway, ensure that the network interface directly connecting to the gateway is configured on the route. By default no gateway is specified.
      • <IP> – Specify the IP address in the A.B.C.D address.
    • secondary <IP> – Optional. Configures this VLAN interface‘s secondary IP address
      • <IP> – Specify the secondary IP address in the A.B.C.D address
ip address [bootp|dhcp]
ip address [bootp|dhcp] Enables a DHCP or Bootp server to provide the primary IPv4 address for the selected VLAN interface
  • bootp – Enables the VLAN interface to get its IP address from a Bootp server
  • dhcp – Enables the VLAN interface to get its IP address from a DHCP server

If selecting DHCP/Bootp, ensure that a server on the network has been configured to provide the necessary configuration to the switch. Using DHCP or Bootp results in frequent connectivity loss between the browser interface and the switch. Further, DHCP and Bootp cannot configure secondary IP addresses needed for multinetting.

Example

nx9500-6C8809(config-profile-testEX3524-if-vlan20)#ip address 192.168.13.28/24 default-gateway 192.168.13.13

nx9500-6C8809(config-profile-testEX3524-if-vlan20)#show context
 interface vlan 20
  ip address 192.168.13.28/24 default-gateway 192.168.13.13
nx9500-6C8809(config-profile-testEX3524-if-vlan20)#

Related Commands

no Removes the IP address configured for this VLAN interface