10 More Discussions You Might Find Interesting
1. Fedora
Hello, I just installed Fedora 16 and wanted to add some apps to startup but realized System settings has only a small setup of utilities and does not have option for adding apps to startup. Also it's missing some other icons that I see on my Rhat 6.2 . I'm logged in as user from admin group but it... (2 Replies)
Discussion started by: susja
2 Replies
2. Shell Programming and Scripting
Hello, Newbie question on scripting - I'm looking to create a simple script that will work on RHEL5 that will adjust the network settings: ip address, default gateway, and subnet mask. If anything else needs to be done (service network stop / start) or should be done to make settings active - I... (4 Replies)
Discussion started by: rojizo
4 Replies
3. Solaris
Hi
i have created a solaris zone but have not yet connected any network cables for this new zone,
can i set the zone up without running the command 'add net' and not adding an ip or physical interface?
i tried to add dummy internet settings and get this
zonecfg:coddr> add net... (4 Replies)
Discussion started by: newbiesolaris10
4 Replies
4. UNIX for Dummies Questions & Answers
Hello Unix Gurus Who I Hope Reads This,
I have quasi-inherited control over a Linux cluster at a university research lab. The post-doc that set it up is gone, and the person in charge of administering the cluster doesn't know a ton about Linux. Amongst other things, I want to use the cluster... (0 Replies)
Discussion started by: mbl
0 Replies
5. HP-UX
Hello everyone..
While printing through command line, we can set printing option with -o <lanscape/portrait> to print file in required mode.
But i want to know is there any way we can set this as default behaviour for this printer?
After configuration any script we can modify for this... (0 Replies)
Discussion started by: laxmikant
0 Replies
6. Solaris
I have problem with network settings.
Where i can find network config ? I'm newbie, but i very want learn this OS.
I find :
/etc/hostname.<interface>
/etc/netconfig
/etc/netmasks
/etc/networks
/etc/inet/hosts
But where i can write my IP-address and after reboot i be know that my server... (2 Replies)
Discussion started by: jess_t03
2 Replies
7. Shell Programming and Scripting
say i have a system on thats on a network with access to the internet.
now, i have sensitive information on this system and i do not want the system to be connected to the outside world anymore. how do i get it off the network without actually having to disconnect the cables?
i'm asking this... (4 Replies)
Discussion started by: Terrible
4 Replies
8. Linux
I've been looking for documentation on how to stop this behavior. I have two nics in my system.
eth0: configured manually and as a dhcp server for the local network
eth1: configured w/ dhcp enabled connected to router
dns server addresses keep getting reset every few minutes. i suspect... (0 Replies)
Discussion started by: rbetzen
0 Replies
9. UNIX for Dummies Questions & Answers
Total newbie here!!
How do I view and alter network settings (ip address, subnet mask and default gateway) in UNIX?
Thanks in advance.. (3 Replies)
Discussion started by: ZappaDub
3 Replies
10. UNIX for Dummies Questions & Answers
HELP!! How do you change the network setting from auto-duplex to 100 Base T Full Duplex in Red HaT? (1 Reply)
Discussion started by: johnlong
1 Replies
route(8c) route(8c)
Name
route - manually manipulate the routing tables
Syntax
/etc/route [ -f ] [ -n ] command args ]
Description
The program is used to manipulate the network routing tables manually. However, normally it is not needed, as the system routing table
management daemon, should tend to this task.
The program accepts two commands: add, to add a route and delete, to delete a route.
All commands have the following syntax:
/etc/route command [ net | host ] destination gateway [ metric ]
In this syntax, destination is a host or network for which the route is to, gateway is the gateway to which packets should be addressed,
and metric is an optional count indicating the number of hops to the destination. The metric is required for add commands. It must be
zero if the destination is on a directly-attached network, and nonzero if the route utilizes one or more gateways.
When adding a route with metric 0, the gateway given is the address of this host on the common network, indicating the interface to be used
for transmission. Routes to a particular host are distinguished from routes to a network by interpreting the Internet address associated
with destination. The optional keywords net and host force the destination to be interpreted as a network or host, respectively. If the
destination has a local address part of INADDR_ANY, then the route is assumed to be to a network. Otherwise, it is presumed to be a route
to a host. If the route is to a destination connected via a gateway, the metric should be greater than 0. All symbolic names specified
for a destination or gateway are looked up first as a host name using If this lookup fails, is then used to interpret the name as that of a
network.
The command uses a raw socket and the SIOCADDRT and SIOCDELRT ioctls to do its work. As such, only the superuser can modify the routing
tables.
Options
-f Flushes the routing tables of all gateway entries. If is used with one of the commands described above, the tables are flushed prior
to the command's application.
-n Prevents attempts to print host and network names symbolically when reporting actions.
Restrictions
The change operation is not implemented. Therefore, you should first add the new route, and then delete the old one.
Diagnostics
add [host | network] %s: gateway %s flags %x"
The specified route is being added to the tables. The values printed are from the routing table entry supplied in the ioctl call. If the
gateway address used was not the primary address of the gateway (the first one returned by the gateway address is printed numerically as
well as symbolically.
delete [ host | network] %s: gateway %s flags %x
The specified route is being deleted from the tables. The values printed are from the routing table entry supplied in the ioctl call. If
the gateway address used was not the primary address of the gateway (the first one returned by the gateway address is printed numerically
as well as symbolically.
%s %s done
When the flag is specified, each routing table entry that is deleted is indicated with a message of this form.
Network is unreachable
An attempt to add a route failed because the gateway listed was not on a directly-connected network. The next-hop gateway must be given.
not in table
A delete operation was attempted for an entry which was not present in the tables.
routing table overflow
An add operation was attempted, but the system was low on resources and was unable to allocate memory to create the new entry.
See Also
intro(4n), routed(8c)
route(8c)