Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

add_rout(8) [minix man page]

ADD_ROUTE(8)						      System Manager's Manual						      ADD_ROUTE(8)

add_route - configure IP routing. SYNOPSIS
add_route -g gateway [-d destination [-n netmask ]] [-i ip device] DESCRIPTION
Add_route is used for manual entry of routes in the IP routing table. OPTIONS
-g gateway specifies the gateway IP address to use. -d destination specifies the destination(s) reached via this gateway. -n netmask specifies a netmask when the destination is a net. -i ip device specifies the ip device. SEE ALSO
irdp(8), pr_routes(8). AUTHOR
Add_route.c was created August 7, 1991 by Philip Homburg. This manual page by A. S. Woodhull, last revised 13.02.96. ADD_ROUTE(8)

Check Out this Related Man Page

routes(4)						     Kernel Interfaces Manual							 routes(4)

routes - Specifies Internet routing information to the routing tables SYNOPSIS
/etc/routes DESCRIPTION
Static routes can be defined in the /etc/routes file. The /etc/routes file identifies static routes that are automatically added to the network routing tables with the /usr/sbin/route add command. The /sbin/init.d/route script contains the /usr/sbin/route add command that is executed for each entry in the /etc/routes file when the network is restarted on the system or the system is rebooted. The general format of an entry in the /etc/routes file is: Dest Name1 Name2 The following is a brief description of each element in an /etc/routes file entry: A keyword that indicates whether the route is to a net- work or to a host. The two possible keywords are -net and -host. The name or address of the destination network or host. Name1 can be either a symbolic name (as used in the /etc/hosts or /etc/networks file) or an Internet address specified in dotted-decimal format. The name or address of the gateway host to which messages should be forwarded. Name2 can be either a symbolic name (as used in the /etc/hosts file) or an Internet address specified in dotted-decimal format. The routes file is a Context-Dependent Symbolic Link (CDSL) and must be maintained as such. See the System Administration manual for more information. EXAMPLES
To specify a route to a network through a gateway host with an entry in the /etc/routes file, enter: -net net2 host4 This example specifies a route to a network, net2, through the gateway host4. To specify a route to a host through a gateway host with an entry in the /etc/routes file, enter: -host host2 host4 This example specifies a route to a host, host2, through the gateway host4. To specify a route to a default gateway host with an entry in the /etc/routes file, enter: default This example specifies a route to a default gateway with an Internet address of FILES
Contains the /usr/sbin/routed add command. RELATED INFORMATION
Commands: route(8) Daemons: gated(8), routed(8) Files: gated.conf(4) Network Administration delim off routes(4)
Man Page

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Add route gateway -> Restart !! Lose it

:confused: Hi: I donīt know how to add route gateway and when restart the machine lose this route and put other. In SCO ver 5.6 Enterprise write: etc\route delete gateway route add gateway so , netstat -rn to see if has change -> all ok Restart -> !!!... (2 Replies)
Discussion started by: AlvaroD
2 Replies

2. UNIX for Dummies Questions & Answers

add route gives target: Host name lookup failure

We need to add our remote office to our linux routing table. Our internal office ip addresses are all in the range of 198.9.200.x with an subnet mask of the remote office has ip addresses in the range of and also a subnet mask of when i use the... (3 Replies)
Discussion started by: progressdll
3 Replies

3. IP Networking

add route to a subnet - Solaris 2.6

WE are running Unix - Solaris 2.6, we create a subnet. In the windows enviroment we are able to add a static route by using route add -p mask, but when we add the route in Solaris as route add -net, we receive an... (5 Replies)
Discussion started by: cassy
5 Replies

4. HP-UX

Add Route on HP-UX v10.x, help.

Hi, My H-UX box has the GW pointing to and I need add it a new route pointing to 192.168.80.x with the GW I tried with: #route add but I get: add net gateway Network is unreachable I tried with... (4 Replies)
Discussion started by: efrenba
4 Replies

5. SCO

SCO 5.0.5 Add routes for new networks

Hi all, n00b here. We currently have 3 SCO 5.0.5 machines in our network that run a mission management system. Our internal network was always a network and the machines worked fine. Our company is going through a network upgrade for VoIP and some of our departments are now on... (5 Replies)
Discussion started by: gibson_hg
5 Replies

6. Solaris

Add route to solaris10

Hi need to add 2 routes, one on each server. I know the route add comand but I have always been given the parameters to put in. I need a route in each of the 2 following servers to be able to ping and ssh between them. But how do i know which netmask to put in the route add command ? In... (6 Replies)
Discussion started by: vettec3
6 Replies

7. Shell Programming and Scripting

Fine tune this perl script to add router

Hi, I have this routine that reads a microsoft dhcp.netsh dump. Where it finds optionvalue 3 STRING "" Replace it with the router IP based on the network !/usr/bin/perl while ( <> ) { if ( /\# NET / ) { $net = $'; $net =~ s///g; } else { s/set optionvalue 3... (1 Reply)
Discussion started by: richsark
1 Replies

8. Solaris

Add route to solaris 10

I need to add a new route on solaris10 machine. I want that all traffic on the 23 port (telnet) use gateway. How I do ? Thank you in advance. (1 Reply)
Discussion started by: arfry
1 Replies

9. Solaris

Couldn't add route on Solaris 10

Hi Solaris Experts, I am trying to add a routing table entry on our 5.1 Generic_144488-12 sun4v sparc Solaris 10 SUNW,SPARC-Enterprise-T5220 so that it is possible to ping node # netstat -rnv IRE Table: IPv4 Destination Mask Gateway Device Mxfrg Rtt Ref Flg Out In/Fwd ... (2 Replies)
Discussion started by: gjackson123
2 Replies

10. Linux

Unable to add route with a specific gateway IP

Hi, This is the routing table on a RHEL 7 server : # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface UG 100 0 0 eno49 U 100 0 0 eno49... (4 Replies)
Discussion started by: anaigini45
4 Replies