[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3052
  • Last Modified:

add route to external ftp server

Hi, I'm unable to connect to an external ftp server from my hpux box. The default GW of the hp box is a layer 3 switch. From the hpux box i can telnet into the L3 switch and reach the ftp server. I've tried adding routes from the hpux box with no success.

route add destination gateway

 "Network unreachable"

 Any other suggeations?

Thanks
0
timothyking
Asked:
timothyking
1 Solution
 
tfewsterCommented:
route add  ftp.server.ip.address  gate.way.ip.address  1

The "1" is important because it tells HP-UX it's an external device, _not_ one of it's own interface cards that is the gateway.  
0
 
yuzhCommented:
why not set the default gateway for your box, eg:

/etc/route add default xx.xx.xx.xx

# xx.xx.xx.xx is your router IP

or edit /etc/rc.config.d/netconf:

        ROUTE_DESTINATION[0]="default"
        ROUTE_GATEWAY[0]="xx.xx.xx.xx"
         ROUTE_COUNT[0]="1"

then run:
          # /sbin/rc2.d/S340net stop
          # /sbin/rc2.d/S340net start

0
 
wesly_chenCommented:
> The default GW of the hp box is a layer 3 switch
Can you add the static route on the layer 3 switch?
# iproute add <ftp.server.ip.address> <which switch port connected with ftp server or the firewall>

Wesly
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now