Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot see ip address via cli

davidy2001
Cirrus
Cirrus

Hi

IP address is configured for vlan. Why the ip address cannot be seen via below command? thanks

root@(F5-112)(cfg-sync Standalone)(Active)(/Common)(tmos)# list net interface all
net interface 1.1 {
if-index 48
mac-address 00:50:00:00:0f:01
media-fixed 10000T-FD
media-max auto
mtu 9198
}
net interface 1.2 {
if-index 64
mac-address 00:50:00:00:0f:02
media-fixed 10000T-FD
media-max auto
mtu 9198
}
net interface 1.3 {
if-index 80
mac-address 00:50:00:00:0f:03
media-fixed 10000T-FD
media-max auto
mtu 9198
}
net interface mgmt {
if-index 32
mac-address 00:50:00:00:0f:00
media-active 100TX-FD
}

1 ACCEPTED SOLUTION

Hi @davidy2001 , 
  use this commend :

root@(lab-ans)(cfg-sync Standalone)(Active)(/Common)(tmos)# list net self all-properties

you should see each self ip address and all relevant configurations. 

>AS @Enes_Afsin_Al said ,  when you issued this command : (list net interface all)  , you are viewing the properities of interface itself , this interface assigned to multiple Vlans which we call it " sub-vlans " , so that imagine you have 1000 vlans with 1000 self ips  and you need to assign them to interfaces , it does not make sense to get these ips under interface itself when you issue {list net interface all} 
> Vlans are the main controller in your network configuration and choosing ips. 
the best way to see all ips and their assigned Vlans is to list all of your self ips address , you see each self name , ips and its own vlan. 

Regards 

_______________________
Regards
Mohamed Kansoh

View solution in original post

4 REPLIES 4

Hi davidy2001,

For list command:
You can see VLAN names under self IP addresses, and interface numbers under VLANs.

https://clouddocs.f5.com/cli/tmsh-reference/latest/modules/net/net_interface.html
https://clouddocs.f5.com/cli/tmsh-reference/latest/modules/net/net_vlan.html
https://clouddocs.f5.com/cli/tmsh-reference/latest/modules/net/net_self.html

If you display self IP addresses with the show command, you can get the VLAN and Interface information.

tmsh show net self | egrep "Net::Self|Net::Vlan" 

 

Got "Syntax Error: "egrep", grep is currently the only filter that is supported "

Hi,

If you execute the command in tmos, you will get this error. Can you run it in bash?

Hi @davidy2001 , 
  use this commend :

root@(lab-ans)(cfg-sync Standalone)(Active)(/Common)(tmos)# list net self all-properties

you should see each self ip address and all relevant configurations. 

>AS @Enes_Afsin_Al said ,  when you issued this command : (list net interface all)  , you are viewing the properities of interface itself , this interface assigned to multiple Vlans which we call it " sub-vlans " , so that imagine you have 1000 vlans with 1000 self ips  and you need to assign them to interfaces , it does not make sense to get these ips under interface itself when you issue {list net interface all} 
> Vlans are the main controller in your network configuration and choosing ips. 
the best way to see all ips and their assigned Vlans is to list all of your self ips address , you see each self name , ips and its own vlan. 

Regards 

_______________________
Regards
Mohamed Kansoh