- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Need to change the default gateway's IP
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
03-30-2001 05:41 PM
03-30-2001 05:41 PM
Need to change the default gateway's IP
One very simple question here for you gurus there, but I just have no experience how to do it :
I am asked to "configure a permanent ARP cache entry that maps XXX.XXX.XXX.XXX to the same MAC address as the original XXX.XXX.YYY.YYY." & now I have this MAC addres on hand of format 0:0:x:x:xx:1.
ie. we want to change the default gateway from xx.xx.xx.xx to xx.xx.yy.yy, can someone tell me what command or sam can achieve this. Is it possible to do a permanent change without a reboot?
FYI - after default gateway change, that will be followed by a IP + net mask change where I know how to change via sam
Thanks in advance for any input
-Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2001 07:21 PM
03-30-2001 07:21 PM
Re: Need to change the default gateway's IP
# set_parms addl_network
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2001 08:33 PM
03-30-2001 08:33 PM
Re: Need to change the default gateway's IP
1. To add arp permanent entry
#arp -s hostname hw_address
2. To change gateway IP
edit /etc/rc.config.d/netconf
change
ROUTE_GATEWAY entry to new address.
3. To change IP/Netmask in sam
goto networking and communication -> network interface card -> action -> configure
-----------
please make sure that entry in /etc/hosys or DNS was changed
then reboot or
#/sbin/init.d/net stop
#/sbin/init.d/net start
--------------
use
#arp -a to check for arp entry
#ifconfig
#netstat -r to check for route statement.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 08:29 AM
04-02-2001 08:29 AM
Re: Need to change the default gateway's IP
vi the file /etc/rc.config.d/netconf.
Put in the new address and then enter
#/sbin/init.d/net stop
#/sbin/init.d/net start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 08:49 AM
04-02-2001 08:49 AM
Re: Need to change the default gateway's IP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 09:23 AM
04-02-2001 09:23 AM
Re: Need to change the default gateway's IP
You don?t need to reboot indeed!
Take care using SAM if you are over the network because your connection may be broken. You would rather using system console.
To change your current default gateway, just delete the current route, readd with the new IP and make these changes permanent editing /etc/rc.config.d/netconf and changing the statement ROUTE_GATEWAY[]=xxx.xxx.xxx.xxx to xxx.xxx.yyy.yyy under the ROUTE_DESTINATION[]=default
Commands:
route delete default xx.xx.xx.xx
route add default xx.xx.yy.yy 1
vi /etc/rc.config.d/netconf
You don?t need to make permanent arp entry unless no ARP server answer this question(usually each host is arp server for its interfaces). If you need hp-ux to answer for gateway?s MAC, add an entry like that:
arp -s hostname mac pub
Don?t forget to update your name service too(/etc/hosts ou DNS database in DNS server).
If you want to change IP/mask manually, do the following:
- discover what network interface you will be working with through a `netstat -in`
- Suposing it is lan3, disable the interface:
ifconfig lan3 down
- Remove routes to lan3(/sbin/init.d/net stop does not do this):
netstat -rn
route delete
Use route delete to every route which interface columns states your equivalent to "lan3".
- Edit netconf to make new ip/netmask permanent: vi /etc/rc.config.d/netconf
Your changes need to be done only in statements identified by the same index as your interface. Ex.:
INTERFACE_NAME[0]="lan3"
IP_ADDRESS[0]="xxx.xxx.yyy.yyy"
SUBNET_MASK[0]="0xfffff800"
BROADCAST_ADDRESS[0]=""
LANCONFIG_ARGS[0]="ether"
DHCP_ENABLE[0]=0
Restart your interfaces(it will not disrupt established conections):
/sbin/init.d/net start
Best regards :)