01-12-2007
Routing table
Hi all,
I am confusing with routing table, i use linux and iptables.
i have 1 internet gateway, and 1 router for VPN.
here is my network.
eth0=192.168.0.1
eth1=192.168.100.1
192.168.0.0/24 --- eth0(Linux Box)eth1 ---(DSL)---Internet
|
|
|
( VPN ROUTER 192.168.0.100)
Now, linux box already as internet gateway.
I want linux box, is become router,and will routing to VPN router if have request from client so can reach network in VPN if using gateway 192.168.0.1 not 192.168.0.100.
Thank you.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How can i set an permanent route so that itīs still here after a reboot ?
i have a gateways file
Thanks
:confused: :confused: :confused: (1 Reply)
Discussion started by: redcrosskbg
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I'm trying to connect to a network device, with the connection follwoing the UNIX routing table we set up. Its to go via a specific network Gateway and out throught a specific Lan card (Lan4). However when trying to conenct it keeps going through Lan3 and will not get to its destination.... (3 Replies)
Discussion started by: nhatch
3 Replies
3. IP Networking
Is ther a way to retain say, a default gateway entered in a routing table after a reboot? I end up always having to re-enter my default gateway after I reboot my system.
Thanks! (4 Replies)
Discussion started by: thundrrod
4 Replies
4. IP Networking
hi all,
how to access ip routing table throgh program,
how should i integrate my rip routing table with the ip routing table :) (0 Replies)
Discussion started by: vinodkumar
0 Replies
5. AIX
i have AIX Unix with "dynamic routing table" service enabled, but i do not need this service. How i can disable this service.
thanks (1 Reply)
Discussion started by: jdsnbr
1 Replies
6. IP Networking
hi all...
i need to know, where is locate the routing table on sun solaris, how i can saved the configuration....
because when i restart the server, lost the configuration....
thank you...
Regards... (3 Replies)
Discussion started by: chanfle
3 Replies
7. Linux
Hello,
how to make entries in routing table perminent (1 Reply)
Discussion started by: teenasuresh
1 Replies
8. Red Hat
I have below routing table in linux kernel 2.6.9
# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.155.24.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U ... (5 Replies)
Discussion started by: chuikingman
5 Replies
9. IP Networking
Hello.
Is there any way to restore back the default ip routing table ?
For example, my current routing table is something like
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
109.123.95.0 0.0.0.0 255.255.255.0 U 0 ... (0 Replies)
Discussion started by: anid
0 Replies
10. HP-UX
Hi all,
Could someone please explain to me how I should read this routing table,
# netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 32808
10.222.47.82 10.222.47.82 UH... (3 Replies)
Discussion started by: rachael
3 Replies
LEARN ABOUT FREEBSD
if_gre
GRE(4) BSD Kernel Interfaces Manual GRE(4)
NAME
gre -- encapsulating network device
SYNOPSIS
To compile the driver into the kernel, place the following line in the kernel configuration file:
device gre
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
if_gre_load="YES"
DESCRIPTION
The gre network interface pseudo device encapsulates datagrams into IP. These encapsulated datagrams are routed to a destination host, where
they are decapsulated and further routed to their final destination. The ``tunnel'' appears to the inner datagrams as one hop.
gre interfaces are dynamically created and destroyed with the ifconfig(8) create and destroy subcommands.
This driver corresponds to RFC 2784. Encapsulated datagrams are prepended an outer datagram and a GRE header. The GRE header specifies the
type of the encapsulated datagram and thus allows for tunneling other protocols than IP. GRE mode is also the default tunnel mode on Cisco
routers. gre also supports Cisco WCCP protocol, both version 1 and version 2.
The gre interfaces support a number of additional parameters to the ifconfig(8):
grekey Set the GRE key used for outgoing packets. A value of 0 disables the key option.
enable_csum Enables checksum calculation for outgoing packets.
enable_seq Enables use of sequence number field in the GRE header for outgoing packets.
EXAMPLES
192.168.1.* --- Router A -------tunnel-------- Router B --- 192.168.2.*
/
/
+------ the Internet ------+
Assuming router A has the (external) IP address A and the internal address 192.168.1.1, while router B has external address B and internal
address 192.168.2.1, the following commands will configure the tunnel:
On router A:
ifconfig greN create
ifconfig greN inet 192.168.1.1 192.168.2.1
ifconfig greN inet tunnel A B
route add -net 192.168.2 -netmask 255.255.255.0 192.168.2.1
On router B:
ifconfig greN create
ifconfig greN inet 192.168.2.1 192.168.1.1
ifconfig greN inet tunnel B A
route add -net 192.168.1 -netmask 255.255.255.0 192.168.1.1
NOTES
The MTU of gre interfaces is set to 1476 by default, to match the value used by Cisco routers. This may not be an optimal value, depending
on the link between the two tunnel endpoints. It can be adjusted via ifconfig(8).
For correct operation, the gre device needs a route to the decapsulating host that does not run over the tunnel, as this would be a loop.
The kernel must be set to forward datagrams by setting the net.inet.ip.forwarding sysctl(8) variable to non-zero.
SEE ALSO
gif(4), inet(4), ip(4), me(4), netintro(4), protocols(5), ifconfig(8), sysctl(8)
A description of GRE encapsulation can be found in RFC 2784 and RFC 2890.
AUTHORS
Andrey V. Elsukov <ae@FreeBSD.org>
Heiko W.Rupp <hwr@pilhuhn.de>
BUGS
The current implementation uses the key only for outgoing packets. Incoming packets with a different key or without a key will be treated as
if they would belong to this interface.
The sequence number field also used only for outgoing packets.
BSD
November 7, 2014 BSD