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:~$ net add bridge bridge ports swp1
cumulus@switch:~$ cat /etc/network/interfaces
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:~$ net add interface swp1 ip address [ipv4-address/mask]
cumulus@switch:~$ cat /etc/network/interfaces auto swp1 iface swp1 address [ipv4-address/mask]
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]

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

Cumulus Linux Cisco Nexus 3000 Series
Set speed/duplex/mtu/auto-negotiation:
cumulus@switch:~$ net add interface swp1 link duplex half
cumulus@switch:~$ net add interface swp1 link speed [speed]
cumulus@switch:~$ net add interface swp1 mtu [1500 - 9216]
cumulus@switch:~$ net add interface swp1 link autoneg [on|off]
cumulus@switch:~$ cat /etc/network/interfaces
auto swp1
iface swp1
    link-speed [speed] 
    link-duplex half (default is full) 
    mtu [1500 - 9216] 
    link-autoneg [on|off]
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
Have more questions? Submit a request

Comments

Powered by Zendesk