1753658 Members
5547 Online
108798 Solutions
New Discussion юеВ

Re: ftp, ssh

 
David Willams
Super Advisor

Re: ftp, ssh


# netstat -in
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan0 1500 147.22.41.0 147.22.41.125 8 0 8 0 0
lo0 32808 127.0.0.0 127.0.0.1 55549 0 55549 0 0
# netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 32808
147.22.41.125 147.22.41.125 UH 0 lan0 32808
147.22.41.0 147.22.41.125 U 2 lan0 1500
default 147.22.41.1 UG 0 lan0 1500

# telnet 147.22.41.124
Trying...
telnet: Unable to connect to remote host: Network is unreachable
Patrick Wallek
Honored Contributor

Re: ftp, ssh

OK. That's a start. Now for some additional information:

output from 'ifconfig lan0'
output from 'ping 147.22.41.1'

The error you give seems to indicate that there is no route available to the 147.22.41 network, even though the host you are trying to access APPEARS to be on the same subnet, assuming a 255.255.255.0 subnet mask.

Are you ABSOLUTELY POSITIVE that you have connected the cable to the LAN0 network port?

NOTE: The LAN0 network port is DIFFERENT from the MP network port. If you only have 1 cable plugged into the back of the server, and you are accessing the MP from the network, then that is your problem.
David Willams
Super Advisor

Re: ftp, ssh

#ifconfig lan0
lan0: flags=1843
inet 147.22.41.124 netmask ffffff00 broadcast 147.22.41.255
Steven Schweda
Honored Contributor

Re: ftp, ssh

> # netstat -in
> Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
> lan0 1500 147.22.41.0 147.22.41.125 8 0 8 0 0
> [...]

> #ifconfig lan0
> lan0: flags=1843
> inet 147.22.41.124 netmask ffffff00 broadcast 147.22.41.255

So, as I see it, "netstat -in" says that lan0
is 147.22.41.125, while "ifconfig" says that
lan0 is 147.22.41.124.

Someone's confused. (I certainly am.)

> > I have the IP address set up in /etc/hosts
> > & rc.config.d/netconf
>
> I should trust your opinion?

Are you willing to show the evidence?

Do these commands do anything different
after a re-boot?
David Willams
Super Advisor

Re: ftp, ssh

I have rebooted and it is still the same
Tingli
Esteemed Contributor

Re: ftp, ssh

Get your target system gateway address, then try to ping it from your system.
David Willams
Super Advisor

Re: ftp, ssh

I have the same issue on my other server B..

On this from thee outside world I can ping my gateway..

I have two lan's configured here..

lan0 & lan1

I can ping the gateway for lan1 but lan 0 I cannot...

Tingli
Esteemed Contributor

Re: ftp, ssh

Then try to telnet to your lan1.
David Willams
Super Advisor

Re: ftp, ssh

I can't telnet and I can't ping it


rc.config.c/netconf


INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=135.11.26.125
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=up
DHCP_ENABLE[0]=0
INTERFACE_MODULES[0]=""

DEFAULT_INTERFACE_MODULES=""
INTERFACE_NAME[1]=lan1
IP_ADDRESS[1]=134.11.25.125
DHCP_ENABLE[1]=0
SUBNET_MASK[1]=255.255.255.0
ROUTE_MASK[0]=255.255.255.0
ROUTE_GATEWAY[0]=135.11.26.1
ROUTE_COUNT[0]=1
ROUTE_DESTINATION[0]=default
ROUTE_MASK[1]=255.255.255.0
ROUTE_GATEWAY[1]=135.11.25.1
BROADCAST_ADDRESS[1]=""
ROUTE_COUNT[1]=1
ROUTE_DESTINATION[1]=default



# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
1/0/1/1/0/6/0 0x00110A426CC0 0 UP lan0 snap0 1 ETHER Yes 119
1/0/1/1/0/6/1 0x00110A426CC1 1 UP lan1 snap1 2 ETHER Yes 119
1/0/6/1/0/6/0 0x00163573A23C 2 UP lan2 snap2 3 ETHER Yes 119
1/0/6/1/0/6/1 0x00163573A23D 3 UP lan3 snap3 4 ETHER Yes 119
1/0/14/1/0/6/0 0x00163573E20C 5 UP lan5 snap5 5 ETHER Yes 119
1/0/14/1/0/6/1 0x00163573E20D 6 UP lan6 snap6 6 ETHER Yes 119
LinkAgg0 0x000000000000 900 DOWN lan900 snap900 8 ETHER Yes 119
LinkAgg1 0x000000000000 901 DOWN lan901 snap901 9 ETHER Yes 119
LinkAgg2 0x000000000000 902 DOWN lan902 snap902 10 ETHER Yes 119
LinkAgg3 0x000000000000 903 DOWN lan903 snap903 11 ETHER Yes 119
LinkAgg4 0x000000000000 904 DOWN lan904 snap904 12 ETHER Yes 119
# netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 32808
134.11.25.125 134.11.25.125 UH 0 lan1 32808
135.11.26.125 135.11.26.125 UH 0 lan0 32808
134.11.26.0 135.11.26.125 U 2 lan0 1500
134.11.25.0 134.11.25.125 U 2 lan1 1500
127.0.0.0 127.0.0.1 U 0 lo0 32808
default 135.11.25.1 UG 0 lan1 1500
default 135.11.26.1 UG 0 lan0 1500
# ifconfig lan0
lan0: flags=1843
inet 135.11.26.125 netmask ffffff00 broadcast 135.11.31.255
# ifconfig lan1
lan1: flags=1843
inet 134.11.25.125 netmask ffffff00 broadcast 135.11.34.255
# cat /etc/hosts
# @(#)B.11.31_LRhosts $Revision: 1.9.214.1 $ $Date: 96/10/08 13:20:01 $
#
# The form for each entry is:
#
#
# For example:
# 192.1.2.34 hpfcrm loghost
#
# See the hosts(4) manual page for more information.
# Note: The entries cannot be preceded by a space.
# The format described in this file is the correct format.
# The original Berkeley manual page contains an error in
# the format description.
#

135.11.26.125 hpvm.us1.hp.com hpvm
127.0.0.1 localhost loopback
# hostname
hpvm
#

# netstat -in
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan1 1500 134.11.25.0 134.11.25.125 1 0 1 0 0
lan0 1500 134.11.26.0 135.11.26.125 2425 0 2425 0 0
lo0 32808 127.0.0.0 127.0.0.1 1297 0 1297 0 0
#
David Willams
Super Advisor

Re: ftp, ssh

i will open a new threadd for this