- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unable to change default gateway
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
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
тАО10-18-2000 06:19 AM
тАО10-18-2000 06:19 AM
Unable to change default gateway
on HP9000 K380 HP-UX 11.0 32 bit.
Current Default Gateway is: 172.16.159.126
Host's IP address is 172.16.159.124
New gateway required is: 172.16.159.254
Output of netstat -rnv
Routing tables
Dest/Netmask Gateway Flags Refs Use Interface Pmtu
127.0.0.1/255.255.255.255
127.0.0.1 UH 0 9703865 lo0 4136
172.16.159.124/255.255.255.255
172.16.159.124 UH 0 259910 lan0 4136
172.16.159.0/255.255.255.128
172.16.159.124 U 2 0 lan0 1500
127.0.0.0/255.0.0.0 127.0.0.1 U 0 0 lo0 4136
default/0.0.0.0 172.16.159.126 UG 0 0 lan0 1500
Changing gateway using route command
route add default 172.16.159.254
gives following error
add net default: gateway 172.16.159.254: Network is unreachable
Both the current and new gateway IP addresses I can ping.
e.g.,
# ping 172.16.159.254
PING 172.16.159.254: 64 byte packets
64 bytes from 172.16.159.254: icmp_seq=0. time=1. ms
64 bytes from 172.16.159.254: icmp_seq=1. time=0. ms
64 bytes from 172.16.159.254: icmp_seq=2. time=0. ms
----172.16.159.254 PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/1
What is wrong?
Please help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2000 06:44 AM
тАО10-18-2000 06:44 AM
Re: Unable to change default gateway
this is a subnet mask problem.
Try:
ndd -set /dev/ip ip_check_subnet_addr 0
This will disable subnet checking.
To make it permanent modify startup networking script /sbin/init.d/net and add the ndd command in it.
Also default gateway has to be entered in:
/etc/rc.config.d/netconf:
ROUTE_GATEWAY[0]=172.16.159.254
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2000 08:19 AM
тАО10-18-2000 08:19 AM
Re: Unable to change default gateway
TRANSPORT_NAME[0]=ip
NDD_NAME[0]=ip_check_subnet_addr
NDD_VALUE[0]=0
This will keep the value after a reboot.
Berlene
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2000 11:04 AM
тАО10-18-2000 11:04 AM
Re: Unable to change default gateway
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2000 12:16 PM
тАО10-18-2000 12:16 PM
Re: Unable to change default gateway
route add default 172.16.159.64 1 (notice I put the ip a space and a one !!)
Then I go back and edit my /etc/rc.config.d/netconf and make sure the line that
reference the Default Gateway reflects this also...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2000 11:09 PM
тАО10-18-2000 11:09 PM
Re: Unable to change default gateway
This did not work.
The Results:
# ndd -set /dev/ip ip_check_subnet_addr 0
#
# route add default 172.16.159.254
add net default: gateway 172.16.159.254: Network is unreachable
Need more help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2000 11:24 PM
тАО10-18-2000 11:24 PM
Re: Unable to change default gateway
have you added the metric value 1 at your route command ?
(route add default 172.16.159.64 1)
This has to be, because the gateway is outside your HP box.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2000 12:24 AM
тАО10-19-2000 12:24 AM
Re: Unable to change default gateway
Though I do not understand
why "1" at the end of IP address in the
route add command and
why do I need to use 172.16.159.64
instead of 172.16.159.254 as IP address?
Regards and thanks to all for your help.
Nitin Mehta (mail: nlmehta1@nl.cgeyc.com)