The NX-OS supports multiple L2 and L3 Physical Interfaces types to meet various requirements. All interfaces are in the shutdown state by default.
In NX-OS, all Ethernet interfaces are called “ethernet”, no more FastEtherenet, GigabitEthernet, etc. Also, the keyword “range” is not necessary when configuring a group of interfaces
switch(config)# int ?
cmp-mgmt CMP management ethernet
ethernet Ethernet IEEE 802.3z
loopback Loopback interface
mgmt Management interface
port-channel Port Channel interface
vlan Vlan interface
switch(config)# int e10/18 ?
, Comma
- Hyphen
By default, all ports on the device are Layer 3 ports.
NX-OS provides a configuration to change the default port mode from L3 to L2. Configure the default port mode to L2 then change it back to L3.
The configuration of an interface in default (L3) state :
switch# sh run int e1/18
version 4.0(2)
interface Ethernet1/18
no shutdown
Change the default mode from L3 to L2
switch# config t
switch(config)# system default switchport
The configuration of an interface in L2 state :
switch# sh run int e1/18
version 4.0(2)
interface Ethernet1/18
no switchport
no shutdown
Change the default port mode from L2 to L3.
switch(config)# no system default switchport
Now lets see the basic interface parameter configuration. These are all same as you see in IOS.
switch# configure terminal
switch(config)# interface ethernet 3/24
switch(config-if)# description server1
switch(config-if)# speed 1000 --- Speed of Interface 10/100/1000 Mbps
switch(config-if)# duplex full --- Half/Full Duplex
switch(config-if)# bandwidth 1000000 --- Look at Note.
switch(config-if)# delay 10000 --- Look at Note.
switch(config-if)# no shutdown --- Enables an interface. Default is Shutdown
NOTE:
The bandwidth as an informational-only value between 1 and 10,000,000.
The command doesn't set BandWidth on interface. Its just an info for routing protocols, so that it can calculate its cost.
The bandwidth as an informational-only value between 1 and 10,000,000.
The command doesn't set BandWidth on interface. Its just an info for routing protocols, so that it can calculate its cost.
The delay time in tens of microseconds.
No comments:
Post a Comment