Forum Discussion
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.
- Stanislas_Piro2
Cumulonimbus
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
- Gadget_323147
Nimbostratus
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,
is the configuration file which includes the networking components of the device./config/bigip_base.conf
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
Cumulonimbus
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
where you paste the expected configuration. if there is a wrong format, it will not apply change and warn you.load sys config merge from-terminal
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
Cumulonimbus
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.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com