- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Why is my localhost traffic showing up on lan0 sta...
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-07-2002 03:29 PM
05-07-2002 03:29 PM
No routing protcols enabled
Only default route is configured in rc.config.d
machine name : dma1a
ip addr : 66.99.7.6
Nearly all my IP is internal so I expect lo0
to clock up much bigger stats that lan0 but
its the other way around?
# netstat -r
Routing tables
Dest/Netmask Gateway Flags Refs Use Interface Pmtu
localhost localhost UH 0 25368 lo0 4136
dma1a dma1a UH 0 10690716 lan0 4136
66.99.0.0 dma1a U 2 0 lan0 1500
127.0.0.0 localhost U 0 0 lo0 4136
default 66.99.1.1 UG 0 0 lan0 1500
ping -o to my local machine name says its going
to localhost but netstat stats show its going to lan0 and not lo0. ( I ping'd continually
and watched the stats grow ).
# netstat -i
Name Mtu Network Address Ipkts Opkts
lan0 1500 66.99.0.0 dma1a 10697695 10675170
lo0 4136 127.0.0.0 localhost 25308 25308
ping -o shows the ip is being sent to
localhost but this is pegging the lan0 stats.
# ping -o dma1a
PING dma1a: 64 byte packets
64 bytes from 66.99.7.6: icmp_seq=0. time=0. ms
----dma1a PING Statistics----
1 packets transmitted, 1 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
1 packets sent via:
127.0.0.1 - localhost
# ifconfig lo0
lo0: flags=849
inet 127.0.0.1 netmask ff000000
# ifconfig lan0
lan0: flags=843
inet 66.99.7.6 netmask ffff0000 broadcast 66.99.255.255
I noticed that my routing entry for my lan0
IP is destined for itself / lan0 and
this differs with the man page on routing
where the lan0 IP address points to the
loopback address.
my entry
# 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 25493 lo0 4136
66.99.7.6/255.255.255.255
66.99.7.6 UH 0 10745161 lan0 4136
man page on routing from HP-UX 11 (7)
# netstat -rnv
Routing tables
Dest/Netmask Gateway Flags Refs Use Interface Pmtu
15.13.136.66/255.255.255.255
127.0.0.1 UH 1 39 lo0 4608
127.0.0.1/255.255.255.255
127.0.0.1 UH 0 68 lo0 4608
I tried the same thing on SunOS and it all
went to the loopback device.
Are packets destined for the local IP address
of lan0 sent to the lan card or the loopback
device lo0 in HP-UX11?
Is the card transmitting this to the network
as the stats in 'netstat -i' suggest?
Please help explain this behaviour on HP-UX
Thanks,
Mark.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 03:57 PM
05-07-2002 03:57 PM
Re: Why is my localhost traffic showing up on lan0 stats?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 04:45 PM
05-07-2002 04:45 PM
Re: Why is my localhost traffic showing up on lan0 stats?
I would like to find out whether the traffic is really
going to lan card 0 or
worse still being sent out
onto the lan attached to
lan card 0.
I would also like to find
out why my routing table
shows the local IP address
pointing to itself and not
on the loopback dev as in
the man page.
Mark.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 06:00 PM
05-07-2002 06:00 PM
Re: Why is my localhost traffic showing up on lan0 stats?
Sorry, I missed the gist the first time. I see what you are saying. If someone doesn't pipe in and anser this by tomorrow, I'll do some quick tests, but I really don't think anything not destined to go anywhere but on the local machine stay's on that machine. if it did hit the "net' then the routing would seem wrong.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2002 12:24 AM
05-08-2002 12:24 AM
Re: Why is my localhost traffic showing up on lan0 stats?
be aware that netstat output differs from ux versions 10.x to 11.x so man pages might be somewhat dated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2002 06:30 AM
05-08-2002 06:30 AM
Re: Why is my localhost traffic showing up on lan0 stats?
Thanks, that tip is helpful.
I feel HP have been a little tricky in what
they have done to the routing as the routing
for the loopback device is now automatically
created and I cannot change it.
The reason behind why the question was raised
is that I am running an Informix DB on the
HP-UX L2000 server and all traffic to and
from the DB is local. The DB binds to
the actual IP address of lan0 (66.99.7.6) and
not local host.
Is this traffic going out onto the lan attached
to lan0 or just looping back locally from the
lan0 card?
Should the DB be forced to bind to the locahost
127.0.0.1 address to avoid sending traffic to
the lan0 card? Sending it to lan0 seems like
a waste if resources.
Can I modify the routing entry for the IP
address of lan0 so its gateway is lo0 and
not lan0 (like the good old days)?
Thanks,
Mark.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2002 04:25 AM
05-13-2002 04:25 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2002 07:25 AM
05-13-2002 07:25 AM
Re: Why is my localhost traffic showing up on lan0 stats?
I am in no hurry to change the routing - I just
wanted to discover what was going on and I
was concerned that my internal application was
now dependent on the LAN card performance and
availability.
Found a few interesting updates to the loopback
configuration with PATCH PHNE_26771 which
should re-introduce the old loopback routing
functionality back to to the base HP-UX11
release.
With the patch routing to a local IP address
should continue to work even if the LAN card
goes down
( SR number: 1653307850 ; Defect: JAGab20953 )
Routes disappear if interface is downed.
Resolution:
Leave a "loopback" route when taking down an
interface either by the ifconfig command
or from the device driver. This will
"allow" processes to keep working in
loopback even over an interface that is down.
I think this one offer another solution as it
will allow me to bind the application to a
virtual IP address assigned to lo0 and yet
have it accessible from the network.
Symptom:
IP addresses assigned to loopback interfaces (lo0:
can not be reached from the network.
Defect Description:
HP-UX does not support virtual loopback
interfaces.
Resolution:
Added support for virtual loopback interfaces.
( SR number: 8606124808 ; Defect: JAGac40200 )
Thanks for taking a look,
Rgds,
Mark.