- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing netmask in real time
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО02-15-2010 01:35 AM
тАО02-15-2010 01:35 AM
Will u please let me know whether changing a netmask in live setup affect my production ????
I do have a service guard in use...
Current netmask is 255.255.254.0 ..
i want to change it too 255.255.255.0
Regards,
Tejas
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2010 05:02 AM
тАО02-15-2010 05:02 AM
SolutionIt would be better to take a planned outage wherein you shutdown any services and carryout this activity, if it is point to one to many servers. (better if you could do changes via root login to CONSOLE) so that if you use any "PC/desktop connected to server will be disconnected.
Method 1:-
============
Permanent Changes :-
Backup ur existing netconf file
# cp -p /etc/rc.config.d/netconf /etc/rc.config.d/netconf.org
Than use "vi edit"
# vi /etc/rc.config.d/netconf
INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="192.6.1.1"
SUBNET_MASK[0]="255.255.254.0" --> change to 255.255.254.0
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]="0"
#/sbin/init.d/net stop
#/sbin/init.d/net start
Method 2:-
=========
You also Use "SAM" to
SAM Networking and Communications ->
Network Interface Cards ->Select Card (i.e lanX) which lan ineterface you need to change
Actions -> Modify...
look for Subnet Mask and proceed to change -> OK
Method 3:-
==========
If you want to make the changes effective on the fly - then you can use the ifconfig command to change the subnet mask as in
following example.
ifconfig lan0 192.168.1.25 netmask 255.255.0.0 up
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2010 05:04 AM
тАО02-15-2010 05:04 AM
Re: Changing netmask in real time
http://docs.hp.com/en/B2355-90796/ch03s04.html
if you satisfied with answers. please assign points.
HTH,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2010 05:51 AM
тАО02-15-2010 05:51 AM
Re: Changing netmask in real time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2010 06:20 AM
тАО02-16-2010 06:20 AM
Re: Changing netmask in real time
Since you are running Serviceguard, you have many considerations. A complete list is documented in the "Managing Serviceguard" manual at http://docs.hp.com/en/ha.html#Serviceguard .
They include:
--------------------------------
You cannot delete a subnet or IP address from a node while a package that uses
it (as a monitored_subnet, ip_subnet, or ip_address) is configured to run on that node.
See the package networking parameter descriptions (page 272) for more information.
You cannot change the IP configuration of an interface (NIC) used by the cluster
in a single transaction (cmapplyconf).
You must first delete the NIC from the cluster configuration, then reconfigure the
NIC (using ifconfig (1m), for example), then add the NIC back into the cluster.
Examples of when you must do this include:
├в moving a NIC from one subnet to another
├в adding an IP address to a NIC
├в removing an IP address from a NIC
----------------------------------------
I believe that support for some of these changes on a running cluster was added only recently, so check the manual that applies to your version of SG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2010 06:42 AM
тАО02-16-2010 06:42 AM
Re: Changing netmask in real time
If this is a floating IP address for serviceguard, you would reconfigure it by changing the package configuration.
Then cmcheckconf/cmapplyconf.
This can be done hot, thought if you make a mistake you will crash the package. Better to schedule a downtime or at least warn the users.
If this is one of the node addresses, then you can do it on the fly with ifconfig and change /etc/rc.config.d/netconf at your leisure. Don't keep a backup copy of netconf in /rec/rc.config.d, if you do both will be processed and you will have no networking.
If you make a mistake with ifconfig then you might knock one of your nodes out of the cluster, cause a TOC, or crash packages. User notification/warning is recommended.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com