- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Regarding Default g/w
Operating System - HP-UX
1822148
Members
4237
Online
109640
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
Forums
Discussions
юдл
back
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
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО08-21-2006 05:43 AM
тАО08-21-2006 05:43 AM
Regarding Default g/w
Hi,
Could you please tell me how to identyfe defaust G/W by using netstat -nr
Could you please tell me how to identyfe defaust G/W by using netstat -nr
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 05:44 AM
тАО08-21-2006 05:44 AM
Re: Regarding Default g/w
# netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
130.1.1.15 130.1.1.15 UH 0 lan0 4136
192.151.52.241 130.1.0.248 UGH 0 lan0 0
216.52.17.135 130.1.0.248 UGH 0 lan0 0
66.142.254.157 130.1.0.248 UGH 0 lan0 0
130.1.0.0 130.1.1.15 U 2 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 130.1.1.51 UG 0 lan0 0
It's the one labeled default on the last line.
Pete
Pete
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
130.1.1.15 130.1.1.15 UH 0 lan0 4136
192.151.52.241 130.1.0.248 UGH 0 lan0 0
216.52.17.135 130.1.0.248 UGH 0 lan0 0
66.142.254.157 130.1.0.248 UGH 0 lan0 0
130.1.0.0 130.1.1.15 U 2 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 130.1.1.51 UG 0 lan0 0
It's the one labeled default on the last line.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 05:46 AM
тАО08-21-2006 05:46 AM
Re: Regarding Default g/w
Thanks
i got thank you very much.
i got thank you very much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 05:48 AM
тАО08-21-2006 05:48 AM
Re: Regarding Default g/w
Your default gateway will be the one with the word "default" in the first column of the output.
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
170.7.54.141 170.x.xx.141 UH 0 lan0 4136
170.7.54.0 170.x.xx.141 U 2 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 170.x.xx.221 UG 0 lan0 0
In this case, my default gateway is the last line of the output.
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
170.7.54.141 170.x.xx.141 UH 0 lan0 4136
170.7.54.0 170.x.xx.141 U 2 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 170.x.xx.221 UG 0 lan0 0
In this case, my default gateway is the last line of the output.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP