Forum Discussion

davidy2001's avatar
Nov 17, 2022

Mgmt ip address config

Hello, F5 interface initial config like below. Question is command "sudo ifconfig mgmt 10.0.100.112/24" is added to F5, why command "show /sys ip-address" shows another different mgmt ip address 192.168.1.245? Looks like the two mgmt ip address can be used. What is relation between the two mgmt? and between "interface 1.1, 1.2 and 1.3(in GUI)" and "eth0"( see below in Cli)? thanks

 

 

[root@F5-112:Active:Standalone] config # sudo ifconfig mgmt 10.0.100.112/24
[root@F5-112:Active:Standalone] config # ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::250:ff:fe00:f00  prefixlen 64  scopeid 0x20<link>
        ether 00:50:00:00:0f:00  txqueuelen 1000  (Ethernet)
        RX packets 156  bytes 43036 (42.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 324  bytes 94592 (92.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

mgmt: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.100.112  netmask 255.255.255.0  broadcast 10.0.100.255
        inet6 fe80::250:ff:fe00:f00  prefixlen 64  scopeid 0x20<link>
        ether 00:50:00:00:0f:00  txqueuelen 1000  (Ethernet)
        RX packets 156  bytes 40852 (39.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 320  bytes 94124 (91.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[root@F5-112:Active:Standalone] config # tmsh
root@(F5-112)(cfg-sync Standalone)(Active)(/Common)(tmos)# show /sys ip-address

---------------------------------------------------
Sys::IP Address
Entry           Component         Object-ID
---------------------------------------------------
8.8.8.8:domain  net dns-resolver  f5-aws-dns
8.8.8.8:domain  net dns-resolver  f5-aws-dns
192.168.1.245   cm device         F5-112.abcd.local

 

 

 

 

  • Hello,

    The management IP address can be added using config command as you mentioned above, and also using the below command:

    #tmsh show sys managamenet-ip

    both config command and the above command will show the same management IP address. Regarding the "show /sys ip-address", it shows the configured IP address on your BIG-IP, for example here is the output from my lab after running this command:

    # show /sys ip-address

    ------------------------------------------------------
    Sys::IP Address
    Entry Component Object-ID
    ------------------------------------------------------
    *:* ltm monitor http check
    *:* ltm monitor https check2
    default net route default_route
    1.1.1.1 ltm virtual-address 1.1.1.1
    2.2.2.2 ltm virtual-address 2.2.2.2
    11.1.1.1 sys dns n/a
    192.168.7.100 ltm node auction
    192.168.7.100 ltm pool test
    192.168.7.100 ltm pool ooo
    192.168.8.5 ltm virtual-address 192.168.8.5
    192.168.8.6 ltm virtual-address 192.168.8.6
    192.168.8.88 ltm virtual-address 192.168.8.88
    192.168.8.156 ltm virtual-address 192.168.8.156
    192.168.9.99 cm device 301A.LAB
    192.168.75.227 sys dns n/a
    192.168.75.227 sys management-route default
    195.242.197.155 ltm node 195.242.197.155
    195.242.197.155 ltm pool motam

     

    and the description of "ip-address" in the command is: "ip-address View configured IP addresses"

    so there is only one management IP and not two. Regarding the interfaces shown on the GUI ("interface 1.1, 1.2 and 1.3") they are related to traffic processing and called TMM interfaces. The eth0 is the management interface.

    BR,

    Mohamed Salah

    • Mohamed_Salah_'s avatar
      Mohamed_Salah_
      Icon for MVP rankMVP

      Sorry, the correct command is, enter tmsh mode and then write:

      # list sys management-ip

  • Thanks for your reply. My question is I already used two commands for adding mgmt ip. so which one is correct? One is 10.0.100.112, and other is 192.168.1.245

    • Hello,

      I tried your command, and found the below results.

      when modified my mgmt IP using linux command, the mgmt IP was updated when showing #ifconfig, but on the tmsh and F5 GUI (platform tab for example), it was still showing the old IP. But i was able to access the F5 GUI and SSH using the new mgmt IP. (and the old mgmt IP was not accessible, which mena sthat there is no two mgmt IPs)

       

      The mgmt IP never gets updated to the TMSH and GUI. If you restarted the F5 or the tmm service, the old IP is reverted back and overwrite the newly created one that was created by the linux command.

      I think the "The TMM is separate from the Linux kernel", and the new mgmt IP was not updated automatically to the tmm.

      I recommened not to update any IPs using the linux command line, and modify them using tmsh or configuraiton utility.

      BR,

      Mohamed Salah