Cisco Systems N5KC5596TFA Configuring a VLAN Interface, switchconfig# feature interface-vlan

Models: N5KC5596TFA

1 122
Download 122 pages 34.07 Kb
Page 51
Image 51
Configuring a VLAN Interface

Configuring Layer 3 Interfaces

Configuring a VLAN Interface

 

Command or Action

Purpose

Step 4

switch(config-if)# copy

(Optional)

running-configstartup-configSaves the change persistently through reboots and restarts by copying the running configuration to the startup configuration.

This example shows how to configure Ethernet interface 2/1 with a bandwidth value of 80000:

switch# configure terminal switch(config)# interface ethernet 2/1 switch(config-if)# bandwidth 80000 switch(config-if)# copy running-configstartup-config

Configuring a VLAN Interface

Procedure

 

Command or Action

Purpose

Step 1

switch# configure terminal

Enters global configuration mode.

Step 2

switch(config)# feature interface-vlan

Enables VLAN interface mode.

Step 3

switch(config)# interface vlan number

Creates a VLAN interface. The number range is

 

 

from 1 to 4094.

Step 4

switch(config-if)# [ip ipv6 ] address

Configures an IP address for this interface.

 

ip-address/length

 

Step 5

switch(config-if)# show interface vlan

(Optional)

 

number

Displays the VLAN interface statistics. The

 

 

number range is from 1 to 4094.

Step 6

switch(config-if)# copy running-config

(Optional)

 

startup-config

Saves the change persistently through reboots and

 

 

restarts by copying the running configuration to

 

 

the startup configuration.

This example shows how to create a VLAN interface:

switch# configure terminal switch(config)# feature interface-vlanswitch(config)# interface vlan 10 switch(config-if)# ip address 192.0.2.1/8 switch(config-if)# copy running-configstartup-config

Cisco Nexus 5000 Series NX-OS Interfaces Configuration Guide, Release 5.2(1)N1(1)

78-26881-OL

39

Page 51
Image 51
Cisco Systems N5KC5596TFA Configuring a VLAN Interface, switchconfig# feature interface-vlan, Procedure, startup-config