11-13-2015
What the example says is this:
If you want to send to a system in the 10.0.0.0 network, you don't have to use a gateway (router). Just send the packet out of the eth1 interface and the destination system will receive your message directly.
If you want to send to a system in the 10.1.1.0 network, you also don't have to use a gateway. Just send the packet out of the eth0 interface and the destination system will receive your message directly.
In every other case, send the message to the gateway system (10.0.0.1) and hope that this machine will know how to deliver your message. Use the eth1 interface to reach the gateway.
Did that help?
This User Gave Thanks to hergp For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm brand new to this forum AND Unix. For obvious reasons. I don't know much at all. I'm 14 and i just got my first UNIX SPARCstation5 SUN computer. Something like that. i set up Solaris 9.1(With the help from my dad), now that i've gotten pertty much everything settled, i would like to route my... (8 Replies)
Discussion started by: SoulCheese
8 Replies
2. UNIX for Advanced & Expert Users
I want to collect the database tables(Ex: Emp,Sal,Bonus...etc)
in a file & give this file at the command prompt, when prompted for the tables list at command prompt. How can i do that ?
Ex:- Import jason/jason1 tables=emp,sal,bonus log=j1.log
i want to change this into
Ex:- Import... (3 Replies)
Discussion started by: dreams5617
3 Replies
3. IP Networking
hi
is there any system call by which ip routing table can be accessed. (1 Reply)
Discussion started by: vinodkumar
1 Replies
4. UNIX for Dummies Questions & Answers
Hey guys,
I needed to add a route to my routing table and I got it to work but on reboot it gets removed. Anyone know what file I can add this route to so it stays on the machine after a reboot? (9 Replies)
Discussion started by: kingdbag
9 Replies
5. Shell Programming and Scripting
I am trying to transpose tables listed in the format into format. Any help would be greatly appreciated.
Input:
test_data_1
1 2 90%
4 3 91%
5 4 90%
6 5 90%
9 6 90%
test_data_2
3 5 92%
5 4 92%
7 3 93%
9 2 92%
1 1 92%
...
Output:... (7 Replies)
Discussion started by: justthisguy
7 Replies
6. UNIX for Dummies Questions & Answers
Hello everybody,
I need help:
I have to make routing between two different LAN.
I have the IP for first network 81.180.75.70 and the mask is 255.255.255.192
and for the second network: 192.168.1.1 and the mask 255.255.255.0
So, each network has only one PC with windows (this is for test),... (0 Replies)
Discussion started by: meorfi
0 Replies
7. UNIX for Advanced & Expert Users
Hello everybody,
I need help:
I have to make routing between two different LAN.
I have the IP for first network 81.180.75.70 and the mask is 255.255.255.192
and for the second network: 192.168.1.1 and the mask 255.255.255.0
So, each network has only one PC with windows (this is for test),... (11 Replies)
Discussion started by: meorfi
11 Replies
8. Shell Programming and Scripting
HI All,
I am new to Unix shell scripts..
Could you please post the unix shell script for for the below request.,
There are two different tables(sample1, sample2) in different schemas(s_schema1, s_schema2).
Unix shell script to compare the columns of two different tables of two... (2 Replies)
Discussion started by: Rajkumar Gopal
2 Replies
9. Shell Programming and Scripting
Hi All,
In my script I have used the below code to retrieve the instance name
V_INSTANCE_NAME=`sqlplus -s ${APPS_USR_PSWD} <<+
set pagesize 0 linesize 256 feedback off verify off head off echo off
set serveroutput off
select... (2 Replies)
Discussion started by: kalidoss
2 Replies
10. HP-UX
Heyy,
any help would be grateful....
LOOKING FOR THE WAYS TO SEND AN EMAIL WITH ATTACHMENT & HTML TABLES IN BODY THROUGH SHELL SCRIPT (LINUX)..NOT SURE, IF WE HAVE ANY INBUILT HTML TAG OR UNIX COMMAND TO SEND THE ATTACHMENTS. KINDLY HELP
below is small script posted for our understanding..... (2 Replies)
Discussion started by: Harsha Vardhan
2 Replies
LEARN ABOUT PLAN9
iproute
IPROUTE(3) Library Functions Manual IPROUTE(3)
NAME
iproute - Internet route table manager
SYNOPSIS
bind -a #P /net
/net/iproute
/net/ipifc
DESCRIPTION
The iproute device allows the specification of routes for families of IP addresses. It maintains a kernel-resident routing table for IP
addresses used by TCP, IL and UDP. Each route consists of a destination IP address, an IP mask, and an IP gateway address. Every packet
sent by the system is routed according to the route table. An address matches the route table entry when a packet's destination address
matches the table destination address under the mask. When a match is found, the packet is sent to the gateway IP address. If there is no
match, the packet is sent with the original destination address. If there are several matches, the one whose mask has the fewest leading
zeros is chosen. (Because of the definition of IP masks, this mask preserves the largest portion of the address and is therefore the most
specific.) This is forced by storing the routes in decreasing number of ones order and returning the first match. The default gateway has
no ones in the mask and is thus the last matched.
Reading iproute reports the current routes entered in the table. Writing control messages to iproute edits the table. Route entries are
made by writing a string of format
add ipdest mask ipgateway
Entries are deleted by writing a string of format
delete ipdest mask
The whole table can be cleared by writing the string
For example, to install a gateway address to accept all IP packets from a machine:
% echo 'add 0.0.0.0 0.0.0.0 131.107.1.5' > /net/iproute
% cat /net/iproute
0.0.0.0 & 0.0.0.0 -> 131.107.1.5
Reading ipifc reports the current IP interfaces being used, one line per interface, showing the device, the maximum transfer unit, the
local address, the network mask, and the network address.
SOURCE
/sys/src/9/port/deviproute.c
SEE ALSO
ip(3), ipconfig(8)
IPROUTE(3)