Forum Discussion

Gadget_323147's avatar
Gadget_323147
Icon for Nimbostratus rankNimbostratus
Feb 01, 2018

How to change netmask on self ip in version 12

Network guys changed the mask for two of my GTMs I need to change my mask to match. IOS version 12.1.2 I only need to change the self ip mask.

 

6 Replies

  • Edit the self ip in webui and change the netmask.

    If you have both self and floating ip, you have to do it with tmsh.

    First get the current self configuration

    list net self one-line    
    

    Then modify it with your favorite text editor and import the new config

    load sys config merge from-terminal    
    
    PASTE CONFIG    
    Apply with CTRL-D
    
  • I should have been more specific. The address that shows up as my GTM and LTM listeners I have an H/A pair with X.X.156.228/28 shared and system 1 had X.X.156.233/28 System B X.X.156.236/28. I wish to change the netmasks of these all to /27

     

  • Hi Michael,

    There is another and easy way to change the subnet mask of a self IP address.

    So,

    /config/bigip_base.conf
    is the configuration file which includes the networking components of the device.

    When you open this file with an editor like "vi" , you should see the Ip address configuration of a specific IP like this.

    net self /Common/192.168.10.2 {
        address 192.168.10.2/24
        traffic-group /Common/traffic-group-local-only
        vlan /Common/Vlan328
    }
    

    Then, what you need to do is only to change the related subnet mask fields with the new one and save the file.

    Finally, run the command

    tmsh load sys config

    • Stanislas_Piro2's avatar
      Stanislas_Piro2
      Icon for Cumulonimbus rankCumulonimbus

      Modifying files is a wrong idea. I once made a change of this file with a mistake... the appliance detected it, rebooted because of system fallback... then rebooted after 20 seconds... then rebooted...

      the same configuration can be made with

      load sys config merge from-terminal
      where you paste the expected configuration. if there is a wrong format, it will not apply change and warn you.

    • Emre_Ovali_1466's avatar
      Emre_Ovali_1466
      Icon for Cirrus rankCirrus

      Do you remember what you changed in the configuration file? I offered this as a solution, because it should be pretty easier to change only 2 numbers in a file for an F5 administrator. I would not be commented about your problem without knowing what you changed in this file. I agree with you if a more detailed change was needed.

       

    • Stanislas_Piro2's avatar
      Stanislas_Piro2
      Icon for Cumulonimbus rankCumulonimbus

      i's an old issue (6-7 years ago).

       

      I never recommend to edit the configuration file except if tmsh can't do the same. In this case, it is possible with tmsh, so don't edit file.