Solved

VDX NOS - get all VEs IP addresses - how?


hi everyone

maybe one-liner? Or any other commands lines?

many thanks, P.
icon

Best answer by Steve Worrall 22 March 2019, 20:30

Hello Pawel,
I'm a bit late to this and I see that the discussion went off on a different track. But in answer to your original question, you could use the following

sw0# sh ip int br rb all | inc Ve|Status

Interface Rbridge IP-Address Vrf Status Protocol
Ve 100 63 192.168.253.163 mgmt-vrf up up
Ve 100 64 192.168.253.164 mgmt-vrf up up
sw0#

As you see this will give you the Ve interfaces for each RBridge and also status.

Steve
View original

21 replies

Userlevel 2
code:
sw0# show ip interface brief rbridge-id all
hi,
I cannot see IP addresses nowhere in the command output.
Userlevel 2
if IP address is configured you should see it in show ip interface brief,
Check if the IP address is configured under Ve that you are looking for:
code:
sw0# show running-config rbridge-id 31 interface ve 236
rbridge-id 31
interface Ve 236
ip proxy-arp
ip address 1.1.1.2/24
shutdown
!

sw0# sh ip int br


Flags: U - Unnumbered interface
Interface IP-Address Vrf Status Protocol
========================== ========== ================== ==================== ========

TenGigabitEthernet 31/0/1 unassigned default-vrf up down
.
.
.
TenGigabitEthernet 31/0/48 unassigned default-vrf up down
Ve 236 1.1.1.2 default-vrf administratively down down
sw0#


That makes me presume - no one-liner for all IP address...
And yes...
code:
sw0# show ip interface ve

was my first guess. Other vendors with something as above give me what's expected... and also IP address.
Userlevel 2
It will work as well on NOS:
code:
sw0# show ip interface ve 236
Ve 236 is administratively down protocol is down
Primary Internet Address is 1.1.1.2/24 broadcast is 1.1.1.255
IP MTU is 1500
Proxy Arp is Enabled
Vrf : default-vrf


I do appreciate your help I do and work with what I have.
It's just like a I say, one-liner for all IP addr.

I do:
code:
sw0# show ip interface ve

without specifying the interface and other vendors get me all ifaces & IP addresses(and related IP info something, since the command is "ip")
Userlevel 2
yes, unfortunately you can't run it only for VEs
Only for all interfaces, including all VEs (first command I sent)
no Yulia, I commented that first command - that does not give out any IP address info. NOS 7.3.0aa.
Userlevel 2
Are you sure that IP is configured? Can you please paste output that you get from this command?
Yes. Actually even this does not get me IP:

code:
brc_bot(config-Ve-4)# do sh ip int ve 4 rb all
Rbridge 1
Ve 4 is up protocol is up
IP unassigned
IP MTU is 9100
Proxy Arp is not Enabled
IP fast switching is enabled
Vrf : default-vrf
Rbridge 2
Ve 4 is up protocol is up
IP unassigned
IP MTU is 9100
Proxy Arp is not Enabled
IP fast switching is enabled
Vrf : default-vrf
Userlevel 2
It says IP unassigned
code:
brc_bot# show ip interface brief rbridge-id all
....
TenGigabitEthernet 2/0/43 2 unassigned default-vrf up up
TenGigabitEthernet 2/0/44 2 unassigned default-vrf up down (SFP Absent)
TenGigabitEthernet 2/0/45 2 unassigned default-vrf up up
TenGigabitEthernet 2/0/46 2 unassigned default-vrf up up
TenGigabitEthernet 2/0/47 2 unassigned default-vrf up up
TenGigabitEthernet 2/0/48 2 unassigned default-vrf up up
Ve 4 2 unassigned default-vrf up up


Which must be incorrect.
I'm using the very IP of VE4 to ssh to switch.
Userlevel 2
that is why I asked to check running-config to check if IP is configured
Userlevel 2
Can you try running "show run rb int ve"?

The above output will give you the configured VE for all RBs.
I might fail to understand "configured". If an VE has an IP and I can use that IP to communicate with the switch from the "outside" that means "configured" no?
I understand "not configured" as no IP addr at all on a given VE.
And then:
code:
brc_bot(config-Ve-4)# do sh ip int ve 4 rb all


should give up any IP address.
In other words why: " IP unassigned" ?
If "configured" is not what I think then what is it?
code:
brc_top# show run rb int ve

no IPs
code:
brc_top# show run int ve    

show IPs.
Ough.. it's not helping, only confusing and that "IP unassigned" from 'show ip int ve 4' even more so.
Userlevel 2
Yes, that should provide the IP for the VEs.

Can you provide where you configured VE IP in the running config?
Could it be that those commands behave this "weird" way because I have it as 'fabric-virtual-gateway' and I have my VE configured as:

code:
brc_bot(config)# router fabric-virtual-gateway
brc_bot(conf-router-fabric-virtual-gateway)# address-family ipv4

brc_bot(config)# int ve 4
brc_bot(config-Ve-4)# attach rbridge-id add 1,2
brc_bot(config-Ve-4)# no sh
brc_bot(config-Ve-4)# ip fabric-virtual-gateway
brc_bot(config-ip-fabric-virtual-gw)# gateway-address 10.5.8.254/24


?
Userlevel 2
VE is configured in two different ways.

"show run rb int ve" is for use with VRRP under the RBs

"show run int ve" is for global and use with fabric-virtual-gateway

What you've configure is a fabric-virtual-gateway address which is not a VE IP address.
Userlevel 1
Hello Pawel,
I'm a bit late to this and I see that the discussion went off on a different track. But in answer to your original question, you could use the following

sw0# sh ip int br rb all | inc Ve|Status

Interface Rbridge IP-Address Vrf Status Protocol
Ve 100 63 192.168.253.163 mgmt-vrf up up
Ve 100 64 192.168.253.164 mgmt-vrf up up
sw0#

As you see this will give you the Ve interfaces for each RBridge and also status.

Steve

Reply