Networking NVIDIA NVOS User Manual for InfiniBand Switches

IPoIB Commands

nv show interface ib0


nv show interface <interface-id>

Shows the details of an IPoIB interface.

Syntax Description

interface-id

The IPoIB interface name (for example, ib0).

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv show interface ib0
                         operational                                                  applied
-----------------------  -----------------------------------------------------------  --------
ip
  arp-timeout            1800                                                         1800
  autoconf               disabled                                                     disabled
  dhcp-client
    state                disabled                                                     disabled
    set-hostname         enabled                                                      enabled
    is-running           no
    has-lease            no
  dhcp-client6
    state                disabled                                                     disabled
    set-hostname         enabled                                                      enabled
    is-running           no
    has-lease            no
  [gateway]
link
  auto-negotiate                                                                      on
  duplex                                                                              full
  speed                                                                               auto
  mac                    80:00:00:02:fe:80:00:00:00:00:00:00:00:00:5e:00:53:00:00:01
  counters
    in-bytes             72 Bytes
    in-pkts              1
    in-drops             0
    in-errors            0
    out-bytes            480 Bytes
    out-pkts             4
    out-drops            0
    out-errors           0
    carrier-transitions  2
  mtu                    2044                                                         2044
  state                  up                                                           up
ifindex                  8
type                     ipoib                                                        ipoib

REST API

GET https://<ip>/nvue_v1/interface/<interface-id>

Related Commands

nv show interface
nv set interface
nv unset interface

Notes



nv show interface <interface-id> link [state]

Shows the link information of an IPoIB interface.

Syntax Description

interface-id

The IPoIB interface name (for example, ib0).

state

Shows only the link state.

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv show interface ib0 link state
operational  applied  pending
-----------  -------  -------
down         up       up
admin@nvos:~$ nv show interface ib0 counters link
                     operational
-------------------  -----------
in-bytes             0 Bytes
in-pkts              0
in-drops             0
in-errors            0
out-bytes            0 Bytes
out-pkts             0
out-drops            0
out-errors           0
carrier-transitions  1

REST API

GET https://<ip>/nvue_v1/interface/<interface-id>/link
GET https://<ip>/nvue_v1/interface/<interface-id>/link/state
GET https://<ip>/nvue_v1/interface/<interface-id>/counters/link

Related Commands

nv show interface <interface-id>
nv set interface <interface-id> link state <value>
nv unset interface <interface-id> link

Notes


nv show interface ipv4


nv show interface <interface-id> ipv4 [address]

Shows the IPv4 settings of an IPoIB interface, or only its IPv4 addresses.

Syntax Description

interface-id

The IPoIB interface name (for example, ib0).

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv show interface ib0 ip
                operational  applied      pending
--------------  -----------  -----------  -----------
arp-timeout     1800         1800         1800
autoconf        disabled     disabled     disabled
dhcp-client
  state         disabled     disabled     disabled
  set-hostname  enabled      enabled      enabled
  is-running    no
  has-lease     no
dhcp-client6
  state         disabled     disabled     disabled
  set-hostname  enabled      enabled      enabled
  is-running    no
  has-lease     no
[address]       2.2.2.11/24  2.2.2.11/24  2.2.2.11/24
[gateway]

admin@nvos:~$ nv show interface ib0 ip address

-----------
2.2.2.11/24

REST API

GET https://<ip>/nvue_v1/interface/<interface-id>/ipv4
GET https://<ip>/nvue_v1/interface/<interface-id>/ipv4/address

Related Commands

nv show interface <interface-id>
nv set interface <interface-id> ipv4 address <ip-prefix-id>
nv unset interface <interface-id> ipv4 address

Notes



nv set interface <interface-id> link state <value>

Sets the administrative link state of the IPoIB interface.

Syntax Description

interface-id

The IPoIB interface name (for example, ib0).

value

The link state: up or down.

Default

up

History

25.02.2002 

Example

admin@nvos:~$ nv set interface ib0 link state up

REST API

PATCH https://<ip>/nvue_v1/interface/<interface-id>/link/state

Related Commands

nv show interface <interface-id> link
nv unset interface <interface-id> link state

Notes


nv set/unset interface description


nv set interface <interface-id> description <value>
nv unset interface <interface-id> description

Sets the description of the IPoIB interface.
The unset form of the command removes the description.

Syntax Description

interface-id

The IPoIB interface name (for example, ib0).

value

The interface description. Use quotation marks if the description includes spaces.

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv set interface ib0 description "IPoIB interface"
admin@nvos:~$ nv unset interface ib0 description

REST API

PATCH https://<ip>/nvue_v1/interface/<interface-id>

Related Commands

nv show interface <interface-id>

Notes


nv set/unset interface ipv4 address


nv set interface <interface-id> ipv4 address <ip-prefix-id>
nv unset interface <interface-id> ipv4 [address [<ip-prefix-id>]]

Sets an IPv4 address on the IPoIB interface.
The unset form of the command removes the specified IPv4 address, all the IPv4 addresses (address), or all the IPv4 settings (ipv4) of the interface.

Syntax Description

interface-id

The IPoIB interface name (for example, ib0).

ip-prefix-id

The IPv4 address and prefix length (for example, 10.10.1.1/8).

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv set interface ib0 ipv4 address 10.10.1.1/8
admin@nvos:~$ nv unset interface ib0 ipv4 address 10.10.1.1/8
admin@nvos:~$ nv unset interface ib0 ipv4 address
admin@nvos:~$ nv unset interface ib0 ipv4

REST API

PATCH https://<ip>/nvue_v1/interface/<interface-id>/ipv4/address
DELETE https://<ip>/nvue_v1/interface/<interface-id>/ipv4/address

Related Commands

nv show interface <interface-id> ipv4

Notes


nv unset interface


nv unset interface <interface-id>

Restores the default values of all the settings of the IPoIB interface.

Syntax Description

interface-id

The IPoIB interface name (for example, ib0).

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv unset interface ib0

REST API

DELETE https://<ip>/nvue_v1/interface/<interface-id>

Related Commands

nv show interface <interface-id>

Notes



nv unset interface <interface-id> link [state]

Restores the default administrative link state (up) of the IPoIB interface.

Syntax Description

interface-id

The IPoIB interface name (for example, ib0).

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv unset interface ib0 link
admin@nvos:~$ nv unset interface ib0 link state

REST API

DELETE https://<ip>/nvue_v1/interface/<interface-id>/link

Related Commands

nv show interface <interface-id> link
nv set interface <interface-id> link state <value>

Notes

Since state is the only settable attribute of link, the two forms of the command are equivalent.

Last updated: