VRRP
nv show interface <interface-id> ip vrrp
Shows VRRP configuration for the specified interface.
Command Syntax
Syntax | Description |
---|---|
<interface-id> | The interface name. |
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv show interface swp1 ip vrrp
operational applied
---------------- ----------- -------
enable on
[virtual-router] 44 44
nv show interface <interface-id> ip vrrp virtual-router
Shows the virtual gateways implemented with VRRP for the specified interface.
Add -o json
at the end of the command to see the output in a more readable format.
Command Syntax
Syntax | Description |
---|---|
<interface-id> | The interface name. |
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv show interface swp1 ip vrrp virtual-router -o json
{
"44": {
"accept-mode": "off",
"address-family": {
"ipv4": {
"counters": {
"adv-rx": 0,
"adv-tx": 0,
"garp-tx": 0,
"state-transitions": 0
},
"down-interval": 0,
"master-adv-interval": 0,
"priority": 254,
"skew-time": 0,
"status": "Initialize",
"virtual-addresses": {
"10.0.0.1": {}
},
"vmac": "00:00:5e:00:01:2c"
},
"ipv6": {
"counters": {
"adv-rx": 0,
"adv-tx": 0,
"neigh-adv-tx": 0,
"state-transitions": 0
},
"down-interval": 0,
"master-adv-interval": 0,
"primary-addr": "::",
"priority": 254,
"skew-time": 0,
"status": "Initialize",
"virtual-addresses": {
"2001:db8::1": {}
},
"vmac": "00:00:5e:00:02:2c"
}
},
"advertisement-interval": 5000,
"interface": "swp1",
"preempt": "off",
"version": 3
}
}
nv show interface <interface-id> ip vrrp virtual-router <virtual-router-id>
Shows information about a specific virtual gateway implemented with VRRP for the specified interface.
Command Syntax
Syntax | Description |
---|---|
<interface-id> | The interface name. |
<virtual-router-id> | The VRID that identifies the group of VRRP routers. |
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv show interface swp1 ip vrrp virtual-router 44
operational applied
---------------------- ----------- ------------
advertisement-interval 5000 5000
preempt off auto
priority 254
version 3 3
[address] 10.0.0.1
[address] 2001:0db8::1
accept-mode off
interface swp1
[address-family] ipv4
[address-family] ipv6
nv show interface <interface-id> ip vrrp virtual-router <virtual-router-id> address
Shows the IP addresses of the virtual gateway implemented with VRRP for the specified interface.
Command Syntax
Syntax | Description |
---|---|
<interface-id> | The interface name. |
<virtual-router-id> | The VRID that identifies the group of VRRP routers. |
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv show interface swp1 ip vrrp virtual-router 44 address
nv show interface <interface-id> ip vrrp virtual-router <virtual-router-id> address<ip-address-id>
Shows information about the IP address of the virtual gateway implemented with VRRP for the specified interface.
Command Syntax
Syntax | Description |
---|---|
<interface-id> | The interface name. |
<virtual-router-id> | The VRID that identifies the group of VRRP routers. |
<ip-address-id> | The IPv4 or IPv6 address. |
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv show interface swp1 ip vrrp virtual-router 44 address 10.0.0.1
nv show interface <interface-id> ip vrrp virtual-router <virtual-router-id> address-family
Shows the IP addresses for all address families for the virtual gateway implemented with VRRP for the specified interface.
Add -o json
at the end of the command to see the output in a more readable format.
Command Syntax
Syntax | Description |
---|---|
<interface-id> | The interface name. |
<virtual-router-id> | The VRID that identifies the group of VRRP routers. |
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv show interface swp1 ip vrrp virtual-router 44 address-family -o json
{
"ipv4": {
"counters": {
"adv-rx": 0,
"adv-tx": 0,
"garp-tx": 0,
"state-transitions": 0
},
"down-interval": 0,
"master-adv-interval": 0,
"priority": 254,
"skew-time": 0,
"status": "Initialize",
"virtual-addresses": {
"10.0.0.1": {}
},
"vmac": "00:00:5e:00:01:2c"
},
"ipv6": {
"counters": {
"adv-rx": 0,
"adv-tx": 0,
"neigh-adv-tx": 0,
"state-transitions": 0
},
"down-interval": 0,
"master-adv-interval": 0,
"primary-addr": "::",
"priority": 254,
"skew-time": 0,
"status": "Initialize",
"virtual-addresses": {
"2001:db8::1": {}
},
"vmac": "00:00:5e:00:02:2c"
}
}
nv show interface <interface-id> ip vrrp virtual-router <virtual-router-id> address-family <afi>
Shows the IP addresses for a specific address family (IPv4 or IPv6) for the virtual gateway implemented with VRRP for the specified interface.
Command Syntax
Syntax | Description |
---|---|
<interface-id> | The interface name. |
<virtual-router-id> | The VRID that identifies the group of VRRP routers. |
<afi> | The address family; ipv4 or ipv6 . |
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv show interface swp1 ip vrrp virtual-router 44 address-family ipv4
operational applied
------------------- ----------------- -------
down-interval 0
master-adv-interval 0
priority 254
skew-time 0
status Initialize
vmac 00:00:5e:00:01:2c
counters
adv-rx 0
adv-tx 0
garp-tx 0
state-transitions 0
[virtual-addresses] 10.0.0.1
nv show router vrrp
Shows global VRRP configuration on the switch.
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv show router vrrp
applied
---------------------- -------
enable on
advertisement-interval 1000
preempt on
priority 100