HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Changing IP of Linux IPtable Firewall.
Operating System - Linux
1828834
Members
2466
Online
109985
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2005 08:31 PM
01-12-2005 08:31 PM
Changing IP of Linux IPtable Firewall.
Hi All,
I have the Redhat Linux IPtable firewall. Now want to change the IP of my whole internal network from 192.168.x.x series to 172.26.x.x series that will also change the IP of my firewall ethernet card & all the rule sets.
Can I simply change the IP of the exsiting firewall & reconfigured the rule set or I need to reinstall the OS.
Thanks in advance.
Regards
Walter
I have the Redhat Linux IPtable firewall. Now want to change the IP of my whole internal network from 192.168.x.x series to 172.26.x.x series that will also change the IP of my firewall ethernet card & all the rule sets.
Can I simply change the IP of the exsiting firewall & reconfigured the rule set or I need to reinstall the OS.
Thanks in advance.
Regards
Walter
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2005 10:03 PM
01-12-2005 10:03 PM
Re: Changing IP of Linux IPtable Firewall.
Hi Walter,
you don't have to reinstall the OS.
If you are changing IPs of your lan you just have to change the ip of the nic that is the interface with you lan and change all references of the old ip range to the new ip range into the firewall script. Pay attention also to all routes, static or not, that you may have configured on the server.
To change network configuration you may use redhat-config-network tool.
Hope it helps.
Xyko
you don't have to reinstall the OS.
If you are changing IPs of your lan you just have to change the ip of the nic that is the interface with you lan and change all references of the old ip range to the new ip range into the firewall script. Pay attention also to all routes, static or not, that you may have configured on the server.
To change network configuration you may use redhat-config-network tool.
Hope it helps.
Xyko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2005 01:43 AM
01-13-2005 01:43 AM
Re: Changing IP of Linux IPtable Firewall.
You merely have to carefully go through the file /etc/sysconfig/iptables
Change the 192.168.x.x addresses to the appropriate 172.26.x.x
Keep a backup of the file as a reference.
service iptables restart
done with iptables.
SEP
Change the 192.168.x.x addresses to the appropriate 172.26.x.x
Keep a backup of the file as a reference.
service iptables restart
done with iptables.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2005 04:35 PM
01-13-2005 04:35 PM
Re: Changing IP of Linux IPtable Firewall.
Hi,walter crasto
You have not to reinstall OS. Logon system via console, edit file ifcfg-ethx in /etc/sysconfig/network-script to change ipaddress ,then perform "fdown ethx;if up ethx" to active it. Edit file iptables script ,such as /etc/sysconfig/iptables ,replace ip address 192.168.x.x to 172.26.x.x ,then restart the iptables service.
NiCK
You have not to reinstall OS. Logon system via console, edit file ifcfg-ethx in /etc/sysconfig/network-script to change ipaddress ,then perform "fdown ethx;if up ethx" to active it. Edit file iptables script ,such as /etc/sysconfig/iptables ,replace ip address 192.168.x.x to 172.26.x.x ,then restart the iptables service.
NiCK
just for fun
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP