-
20th June 2008, 08:42 PM
#1
netstat...interpreting the Foreign address
Is it possible to translate the 'Foreign address' to an IPv4 ip?
[root@desktop04 ~]# netstat | grep "ssh"
Output as follows:
Foreign Address (?!) State
tcp 0 52 ::ffff:192.168.2.104:ssh ::ffff:192.168.2.10:isis-am ESTABLISHED
tcp 0 0 ::ffff:192.168.2.104:ssh ::ffff:192.168:netbill-cred ESTABLISHED
-
21st June 2008, 10:52 AM
#2
Try with netstat -n | grep "ssh"
-
21st June 2008, 02:49 PM
#3
Originally Posted by
Mikis
Try with netstat -n | grep "ssh"
The results are unusual... As a matter of fact -n should display numerical ip addresses (thanks mikis).
1. Initially a session with unreadable hostnames was displayed (sorry no quote available, because copy and paste did not "work" from putty, somehow :-).
2. Then even when logged in with an ssh client, netstat displayed no sessions with an "ssh" within the string. This sounds buggy to me :S.
A similar problem seemed to have occurred with netstat and the writer concluded that:
"...So they actually crop the ip address if the ip and port data doesn't fit the column width."
(http://syntacticsirup.blogspot.com/2...tat-sucks.html)
Last edited by jon80; 21st June 2008 at 02:52 PM.
Reason: update #1
-
21st June 2008, 04:03 PM
#4
Originally Posted by
jon80
The results are unusual... As a matter of fact -n should display numerical ip addresses (thanks mikis).
Red Hat Fedora 8
1. Initially a session with unreadable hostnames was displayed (sorry no quote available, because copy and paste did not "work" from putty, somehow :-).
2. Then even when logged in with an ssh client, netstat displayed no sessions with an "ssh" within the string.
A similar problem seemed to have occurred with
netstat and the writer concluded that:
"...So they
actually crop the ip address if the ip and port data doesn't fit the column width."
(
http://syntacticsirup.blogspot.com/2...tat-sucks.html)
This seems buggy to me :S
Red Hat Fedora 9
The problem does not seem to occur with RH 9, since the following line is displayed:
tcp 0 0 192.168.2.100:ssh 192.168.2.101:ismc ESTABLISHED
(netstat.log attached)
To summarize the command should actually read, on my network:
netstat -a | grep "ssh"
Last edited by jon80; 21st June 2008 at 04:17 PM.
Reason: update #2
-
21st June 2008, 04:13 PM
#5
What do you get if you netstat -n | grep tcp ?
-
21st June 2008, 04:18 PM
#6
No worries I think i sorted it out. Should use RH9
Similar Threads
-
By daneel971 in forum Using Fedora
Replies: 2
Last Post: 1st January 2008, 05:21 PM
-
By Sentient in forum Servers & Networking
Replies: 0
Last Post: 25th September 2006, 05:59 AM
-
By lesliek in forum Using Fedora
Replies: 4
Last Post: 14th March 2005, 06:32 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
[[template footer(Guest)]]