- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing dafault gateway and IP with command.
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
Forums
Discussions
Discussions
Discussions
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
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
12-03-2002 12:05 AM
12-03-2002 12:05 AM
I want to change the default gateway, IP address and subnet mask as well by using command. Please advise.
Please note that my SAM is having some problem and need to be reinstalled (I can say forget this way).
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2002 12:09 AM
12-03-2002 12:09 AM
Re: Changing dafault gateway and IP with command.
to change IP address and/or default gateway, please use the command:
# set_parms initial
Regards,
Armin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2002 12:14 AM
12-03-2002 12:14 AM
Re: Changing dafault gateway and IP with command.
set_parms ip_address will change the ip address, have a look at the man page for other options.
Regards,
Hilary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2002 12:19 AM
12-03-2002 12:19 AM
Re: Changing dafault gateway and IP with command.
to change the default gateway you have to do following:
# vi /etc/rc.config.d/netconf
---> and edit the default gateway
# /sbin/init.d/net stop
# /sbin/init.d/net start
Best regards,
Armin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2002 12:39 AM
12-03-2002 12:39 AM
SolutionTo add/delete default gateway:
route add default DEFAULT_GATEWAY_IP_ADDRESS
route delete default DEFAULT_GATEWAY_IP_ADDRESS
To change IP address/netmask:
First check the name of the interface for which you want to change the address:
netstat -in
To change the IP address for interface lan0:
ifconfig lan0 IP_ADDRESS up netmask NETMASK
Hope it would work.
Marek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2002 12:57 AM
12-03-2002 12:57 AM
Re: Changing dafault gateway and IP with command.
Hi,
HP doesn't supporting 9.07 , if get into any kind of problem, so using the command line is the better way.
#set_parms initial
will do your job
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2002 01:44 AM
12-03-2002 01:44 AM
Re: Changing dafault gateway and IP with command.
you can also change the /etc/rc.config.d/netconf the params
of the ip adress and the getway .
you will need to reboot the system or to do it from the console .
exam:
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=15.18.12.37
SUBNET_MASK[0]=255.255.248.0
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=15.18.12.1
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2002 03:19 AM
12-03-2002 03:19 AM
Re: Changing dafault gateway and IP with command.
I can't find /etc/rc.config.d/netconf in 9.07 but there is in 10.20
I get it done through Marek advise.
route add default ......
ifconfig lan0 .....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2002 04:08 AM
12-03-2002 04:08 AM
Re: Changing dafault gateway and IP with command.
Good luck
Adam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2002 04:53 AM
12-03-2002 04:53 AM
Re: Changing dafault gateway and IP with command.
Regards,
Armin