DXS-3600-32S CLI Reference Guide


Add to my manuals
596 Pages

advertisement

DXS-3600-32S CLI Reference Guide | Manualzz

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

IP Address Commands

26-1 ip address

This command is used to set the primary or secondary IP address for an interface. Use no command to remove the IP address.

ip address ip-address net-mask [secondary]

no ip address ip-address net-mask [secondary]

Parameters

ip-address net-mask

secondary

Specifies the 32-bit IP address, with 8 bits in one group in decimal format.

Specifies the 32-bit network mask, with same format to ip-address.

(Optional) Specifies the secondary IP address to be configured.

Default

No IP address is configured for the interface.

Command Mode

Interface Configuration Mode.

Command Default Level

Level: 8

Usage Guideline

This command set a primary or secondary IP address for an interface. An interface can have one primary IP address and multiple secondary IP addresses. The primary

IP address must set first, if there is no primary IP address, the secondary IP address can’t set successful for an interface. Also, to remove the primary IP address needs remove all the secondary IP address first.

Currently, this command is valid for the VLAN interface and the out-band interface.

But, only the VLAN interface supports secondary IP address.

The no form of this command remove an IP address or disable IP processing for an interface.

Users can verify the settings by entering the show ip interface command.

Example

This example shows how to set the primary IP address 10.1.1.1/8 for interface VLAN

100.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#interface vlan 100

DXS-3600-32S(config-if)#ip address 10.1.1.1 255.0.0.0

DXS-3600-32S(config-if)#

26-2 ip address dhcp

This command is used to make the interface obtain the IP address information by the DHCP in the interface configuration mode. The no form of this command can be used to cancel this configuration.

ip address dhcp no ip address dhcp

Parameters

Default

None.

The interface doesn’t obtain the IP address by the DHCP by default.

Command Mode

Interface Configuration Mode.

Command Default Level

Level: 8

Usage Guideline

Configure the interface to obtain IP address from DHCP instead of manual setting.

258

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

Example

This example shows how to make the interface of VLAN 1 obtain an IP address automatically.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#interface vlan 1

DXS-3600-32S(config-if)#ip address dhcp

DXS-3600-32S(config-if)#

26-3 ip directed-broadcast

This command is used to enable forwarding of IP directed broadcasts on an interface where the broadcast becomes a physical broadcast. Use no command to disable forwarding of IP directed broadcasts on an interface.

ip directed-broadcast no ip directed-broadcast

Parameters

Default

None.

By default, this option is disabled.

Command Mode

Interface Configuration Mode.

Command Default Level

Level: 8. (EI Mode Only Command)

Usage Guideline

This command enables the forwarding of IP directed broadcast on an interface where the broadcast becomes a physical broadcast.

The no form of this command disables the forwarding of IP directed broadcast on an interface.

Users can verify the settings by entering the show ip interface command.

Example

This example shows how to enable the IP directed broadcast on interface VLAN

100.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#interface vlan 100

DXS-3600-32S(config-if)#ip directed-broadcast

DXS-3600-32S(config-if)#

26-4 ip default-gateway

This command is used to set a default gateway address for the out-band interface. Use no command to remove the default gateway address.

ip default-gateway ip-address

no ip default-gateway ip-address

Parameters

ip-address

Specifies the IP address of the default gateway.

Default

Command Mode

There is no default gateway defined for out-band interface.

Interface Configuration Mode.

Command Default Level

Level: 8

259

Usage Guideline

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

This command set or remove the default gateway address for the out-band interface.

This command is only valid for out-band IP interface.

Users can verify the settings by entering the show interface out-band and show ip

interface command.

Example

This example shows how to set the default gateway to 10.1.1.1

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#interface out-band 1

DXS-3600-32S(config-if)#ip default-gateway 10.1.1.1

DXS-3600-32S(config-if)#

26-5 show ip interface

This command is used to display all the IP interfaces.

show ip interface [interface-name]

Parameters

interface-name

(Optional) Specifies the IP interface’s name. Use the interface type combined with the interface number as the interface’s name.

Default

None.

Command Mode

Privileged Mode.

Command Default Level

Level: 3

Usage Guideline

Use this command to display all the IP interfaces.

Example

This example shows how to display the IP interface called ‘vlan2’.

DXS-3600-32S#show ip interface vlan2

IP Interface : vlan2

VLAN Name : VLAN0002

Interface Admin State : Enabled

IP Directed Broadcast : Disabled

IP MTU : 1500

DXS-3600-32S#

260

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

advertisement

Table of contents