Cumulus Linux vs Cisco NX-OS: Configuring Front Panel Switch Ports

Follow

Defining a Switch Port

Cumulus Linux Cisco Nexus 3000 Series
Define the swp1 (switch port 1) interface:
cumulus@switch:~$ sudo vi /etc/network/interfaces
auto swp1
iface swp1

auto bridge
iface bridge
  bridge-ports swp1
Define the ethernet interface (that is, switch slot 1/port 1):
switch# configure terminal 
switch(config)# interface ethernet 1/1 
switch(config-if)# switchport

Adding an IP Address

Cumulus Linux Cisco Nexus 3000 Series
Add an IP address to a switch port:
cumulus@switch:~$ sudo vi /etc/network/interfaces
auto swp1
iface swp1
  address [ipv4-address/subnet-mask]
  address [ipv6-address/subnet-mask]
Apply the above persistent settings to swp1:
cumulus@switch:~$ sudo ifup swp1
Add an IP address to a switch port:
switch# configure terminal
switch(config)# interface ethernet 1/1 
switch(config-if)# no switchport
switch(config-if)# ip address [ipv4-address/subnet-mask]
switch(config-if)# ipv6 address [ipv6-address/subnet-mask]
Save the above settings for persistence at next startup:
switch# copy running-config startup-config

Setting Speed, Duplex, MTU, and Auto-negotiation of an Interface

Cumulus Linux Cisco Nexus 3000 Series
Set speed/duplex/mtu/auto-negotiation:
cumulus@switch:~$ sudo vi /etc/network/interfaces 
Add the following in the interface definition:
auto swp1
iface swp1
  link-speed [speed]
  link-duplex [full|half]
  mtu [1500 - 9216]
  link-autoneg [on|off]
Apply the above persistent settings to swp1:
cumulus@switch:~$ sudo ifup swp1
Set speed/duplex/mtu/auto-negotiation on ethernet 1/1:
switch# configure terminal
switch(config)# interface ethernet 1/1
switch(config-if)# speed [speed]
switch(config-if)# duplex [full|half]
switch(config-if)# mtu [1500 - 9216]
switch(config-if)# [no] negotiate auto
Save the above settings for persistence at next startup:
switch(config)# copy running-config startup-config
Have more questions? Submit a request

Comments

Powered by Zendesk