| Cisco IOS CLI | Cisco NX-OS CLI |
|---|---|
| Configuring a Routed Interface |
| interface gigabitethernet 1/1
ip address 192.168.1.1 255.255.255.0
no shutdown
| interface ethernet 1/1
ip address 192.168.1.1/24
no shutdown
|
|---|
| Configuring a Switched Interface (VLAN 10) |
| vlan 10 interface gigabitethernet 1/1
switchport
switchport mode access
switchport access vlan 10
no shutdown
| vlan 10 interface ethernet 1/1
switchport
switchport mode access
switchport access vlan 10
no shutdown
|
|---|
| Configuring a Switched Virtual Interface (SVI) |
| Cisco IOS Software does not have the ability to enable or disable SVI interfaces using the feature command. interface vlan 10
ip address 192.168.1.1 255.255.255.0
no shutdown
| feature interface-vlan interface vlan 10
ip address 192.168.1.1./24
no shutdown
|
|---|
| Configuring a Switched Trunk Interface |
| interface GigabitEthernet 1/1
switchport
switchport trunk encapsulation dot1q
switchport trunk native vlan 2
switchport trunk allowed vlan 10,20
switchport mode trunk
no shutdown
| interface ethernet 1/1
switchport mode trunk
switchport trunk allowed vlan 10,20
switchport trunk native vlan 2
no shutdown
|
|---|
| Configuring a Routed Trunk Sub-Interface |
| interface gigabitethernet 1/1
no switchport
no shutdown
interface gigabitethernet1/1.10
encapsulation dot1Q 10
ip address 192.168.1.1 255.255.255.0
no shutdown
| interface ethernet 1/1
no switchport
no shutdown
interface ethernet 1/1.10
encapsulation dot1q 10
ip address 192.168.1.1/24
no shutdown
|
|---|---|

