- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- default route on HP UX 10.20
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
05-10-2004 02:17 AM
05-10-2004 02:17 AM
default route on HP UX 10.20
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2004 02:25 AM
05-10-2004 02:25 AM
Re: default route on HP UX 10.20
change the /etc/rc.config.d/netconf ROUTE_GATEWAY[0]="145.x.3.xxx" to your NIC and gateway.
HTH,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2004 02:57 AM
05-10-2004 02:57 AM
Re: default route on HP UX 10.20
route delete default a.b.c.d
where a.b.c.d. is your current default router address
route add default w.x.y.z 1
where w.x.y.z is the new default router address that you see from the lan1. The number 1 at the end is necessary if the router is not directly attached to the interface but over a different lan connectivity equipment (a.k.a. hop)
in the poor man's routing a.b.c.d may be the address of the lan0 interface itself and you can use w.x.y.z as lan1 interface's ip address but this is not a good way to do it.
for instance, lets say currently :
# ifconfig lan0
lan0: flags=843
inet 14.22.6.8 netmask ffffff00 broadcast 14.22.6.255
# netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
...
default 14.22.6.8 UG 0 lan0 0
and lets assume
# ifconfig lan1:
lan1: flags=843
inet 14.22.7.8 netmask ffffff00 broadcast 147.22.7.255
in which case your commands would be :
# route delete default 14.22.6.8
# route add default 14.22.7.8
without the hop count 1 at the end. but again this is not the preferred way of doing it. Preferred way of doing it is to ask the network admins and get the ip address of the router on this network segment and specify this number as your default route.
hope this helps.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2004 03:05 AM
05-10-2004 03:05 AM
Re: default route on HP UX 10.20
I have already tried what you suggested, but no luck. When I delete and add a new default route, it automatically links it to the disabled NIC in the machine, and not to the new one. Below you find the output of netstat -rn. The lan0 is the disabled interface, and the lan1 is the new one.
Destination Gateway Flags Refs Use Interface Pmtu PmtuTime
10.32.0.5 127.0.0.1 UH 2 2835 lo0 4608
10.32.0.222 127.0.0.1 UH 0 2856 lo0 4608
127.0.0.1 127.0.0.1 UH 0 1113 lo0 4608
default 10.32.0.1 UG 0 0 lan0 1500
10.32 10.32.0.5 U 6445695298 lan1 1500
10.32 10.32.0.222 U 0 0 lan0 1500
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2004 03:33 AM
05-10-2004 03:33 AM
Re: default route on HP UX 10.20
ifconfig lan0
ifconfig lan1
Thanks...
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2004 03:38 AM
05-10-2004 03:38 AM
Re: default route on HP UX 10.20
inet 10.32.0.222 netmask fffff800 broadcast 10.32.7.255
# ifconfig lan1
lan1: flags=863
inet 10.32.0.5 netmask fffff800 broadcast 10.32.7.255
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2004 03:49 AM
05-10-2004 03:49 AM
Re: default route on HP UX 10.20
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2004 03:57 AM
05-10-2004 03:57 AM
Re: default route on HP UX 10.20
If you let hp know about your routing situation, first thing they will tell you is not to put two network interfaces on the same subnet as this will confuse the hell out of routing tables and will result in unpredictable results.
Having said that, I have seen situations similar to yours, work. But again not knowing your network topology, assuming you are going to abandon your lan0 totally, I would suggest to take it down totally, then bring it back up with a dummy address totally different from lan1, then delete the 2 network routes at the bottom of your routing table, then add the default route from your lan1.
Hope this helps.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2004 04:01 AM
05-10-2004 04:01 AM
Re: default route on HP UX 10.20
route add default xxxx
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2004 09:18 PM
05-10-2004 09:18 PM
Re: default route on HP UX 10.20
I did what u suggested, i.e giving a dummy IP to the old NIC. I also put the dummy IP in the /etc/rc.config.d/netconf file. Next, I removed the default route and readded it, and it attached it to the New Nic. Rebooted the machine and everything works fine!
Thanks a million.