1840517 Members
2606 Online
110165 Solutions
New Discussion

Gateway-Routing table

 
SOLVED
Go to solution
Andy Elston
Advisor

Gateway-Routing table

What do I need to do in order to be able to ftp files over our dedicated ISDN line. I have added the routers local ethernet address to the hosts file, how do I set the routing table or additional gateway on the system. Using HPUX 10.20 and as you've probably guessed dont know an auful lot about networking in unix!!!
4 REPLIES 4
Pedro Sousa
Honored Contributor

Re: Gateway-Routing table

For example, to add the default gateway 199.2.2.254:
"route add default gateway 199.2.2.254"

check "route" man pages
good luck.

Cherie Galloway
Occasional Advisor

Re: Gateway-Routing table

To make the route permanent add it to you /etc/rc.config.d/netconf so it will be added at boot-up
Wieslaw Krajewski
Honored Contributor
Solution

Re: Gateway-Routing table

Hi,

Some extra info.
Assuming that you want to add default gateway use exactly:

route add default gateway_address 1

In the case you want to add additional gateway do:

route add net remote_net_addr gateway_address 1

Remember do not miss "1" in route command.

To have this configuration permanent edit in fact
/etc/rc.config.d/netconf

And in the case of only default routing define the following variables:

ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="gateway_address"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""

For additional routes add sth like this:

ROUTE_DESTINATION[1]="net remote_net_addr"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="gateway_address"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""

And still remember route_count shoul be equal to 1
Permanent training makes master
rick jones
Honored Contributor

Re: Gateway-Routing table

It woudl probably be a very good idea to get one of the books on TCP/IP and Unix - the works of W Richard Stevens are quite good.

One very important thing to keep in mind is that routing is symmetric (I think that is the correct term) - no tonly does your system need to know how to reach the internet, the internet needs to know how to reach your system.
there is no rest for the wicked yet the virtuous have no pillows