Configuring Ports for VirtualWire™ Mode



By default, all 10Gbs switch ports are configured for 10Gbs Ethernet speed.


In 10Gbs Ethernet mode, SFP+ or QSFP+ transceivers are required to connect to hosts or other switches. If you change the port speed to 1 Gigabit Ethernet, you need SFP transceivers to plug into the ports. You must also enable jumbo frames for the port.


To modify the ports to 1Gbs speed and enable auto-negotiation, use the following syntax:


CLI (network-admin@pn-spine1) > port-config-modify port 1-8 speed 1g autoneg


REST API Command : PUT http://<switch-ip>/vRestport/port/port-configs/1-8/


{

 "speed": "1g",

 "autoneg": "autoneg",

}


Note: Jumbo frames are enabled by default and VirtualWire links support any frame size.


To display port configuration information, use the port-config-show command.


To see all output, add the parameters format all layout vertical.


Using the vertical layout displays the information in a more readable format:


CLI (network-admin@Leaf1) > port-config-show port 1 format all layout vertical


switch:                pn-spine1

intf:                  1

port:                  1

speed:                 1g

egress-rate-limit:     unlimited

autoneg:               on

jumbo:                 on

enable:                on

lacp-priority:         32768

lacp-individual:       none

stp-port-cost:         2000

stp-port-priority:     128

reflect:               off

edge-switch:           no

pause:                 no

description:           

loopback:              default

mirror-only:           off

lport:                 1

rem-rswitch-port-mac:  00:00:00:00:00:00

rswitch-default-vlan:  0

port-mac-address:      06:a0:00:02:40:1e

send-port:             0

routing:               yes

host-enable:           yes



REST API Command: GET http://<switch-ip>/vRest/port-configs/1


To display the port status, use the port-show command. For example, a sample output looks similar to the following:


CLI (network-admin@pn-spine1) > port-show format all layout vertical


switch:           pn-spine1

port:             47

ip:               192.168.42.30

mac:              64:0e:94:28:03:56

hostname:         pubdev03

status:           up,PN-fabric,LLDP

lport:            47

rport:            47

config:           fd,10g

trunk:            trunk2

switch:           pn-spine1

port:             48

ip:               192.168.42.30

mac:              64:0e:94:28:03:56

hostname:         pubdev03

status:           up,PN-fabric,LLDP

lport:            48

rport:            48

config:           fd,10g

trunk:            trunk2


REST API Command:  GET http://<switch-ip>/vRest/ports


To display all details about ports, use the port-phy-show command:


CLI (network-admin@pn-spine1) > port-phy-show format all layout vertical


switch:       pn-spine1

port:         25

state:        up

autoneg:      none

speed:        10000

eth-mode:     10Gbase-cr

max-frame:    1540

link-quality: great (59/41)

learning:     off

def-vlan:     1

dfe-mode:     continuous

dfe-coarse:   complete

dfe-fine:     complete

switch:       pn-spine1

port:         26

state:        up

autoneg:      none

speed:        10000

eth-mode:     10Gbase-cr

max-frame:    1540

link-quality: good (57/38)

learning:     off

def-vlan:     1

dfe-mode:     continuous

dfe-coarse:   complete

dfe-fine:     complete


REST API Command: GET http://<switch-ip>/vRest//port-phys


Note: The columns def-vlan, max-frame, and learning display default fixed values because regular switching is disabled on the ports.


Note: Link-quality information is only available when a 10Gbps transceiver is installed in a port.


To display the transceivers connected to the ports, use the port-xcvr-show command:


CLI (network-admin@pn-spine1) > port-xcvr-show port 1-4


switch    port  vendor-name      part-number  serial-number supported

-------- ---- ---------------- ------------ ------------- ---------

pn-spine1  1    PluribusNetworks SFP10-CU0P5M Y05B200393    Yes

pn-spine1  2    PluribusNetworks SFP10-CU0P5M Y05B200747    Yes

pn-spine1  3    PluribusNetworks SFP10-CU0P5M Y05B200413    Yes

pn-spine1  4    PluribusNetworks SFP10-CU0P5M Y05B200804    Yes

 

REST API Command:  GET http://<switch-ip>/vRest/port-xcvrs


Note: Each port has a LED indicator light that displays status information about the port. If the LED is solid green, the port is enabled. If the LED is green and blinking rapidly then the port is at 80% of the throughput capacity.