* [LARTC] Followup Question: Help with GRE Tunneling
@ 2002-02-13 3:30 Glynn S. Condez
0 siblings, 0 replies; only message in thread
From: Glynn S. Condez @ 2002-02-13 3:30 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 1891 bytes --]
I would like to make both Network A and B have the same subnet. I did a changes to my config pls correct if this will work.
#Network A
/sbin/echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ
#/sbin/ipchains -A forward -s 192.168.2.0/24 -j MASQ # this will be omitted
/sbin/insmod ip_gre
/sbin/ip tunnel add alas mode gre remote x.x.x.x local y.y.y.y ttl 255
/sbin/ip link set netb up
/sbin/ip addr add 192.168.1.1 dev netb
/sbin/ip route add 192.168.1.0/24 dev netb # this option dont work coz theres an existing route in routing table and the routing table is set to eth1 interface. so if i force to add it using "route add -net 192.168.1.0 netmask 255.255.255.0 dev neta"
it cant ping the internal ip's only the tunnel is working :(
------------------------------------------------------------------------------
#Network B
/sbin/echo 1 > /proc/sys/net/ipv4/ip_forward
#/sbin/ipchains -A forward -s 192.168.2.0/24 -j MASQ # this will be omitted
/sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ
/sbin/insmod ip_gre
/sbin/ip tunnel add text mode gre remote y.y.y.y local x.x.x.x ttl 255
/sbin/ip link set neta up
/sbin/ip addr add 192.168.1.2 dev neta
/sbin/ip route add 192.168.1.0/24 dev neta # this option dont work coz theres an existing route in routing table and the routing table is set to eth1 interface. so if i force to add it using "route add -net 192.168.1.0 netmask 255.255.255.0 dev neta"
it cant ping the internal ip's only the tunnel is working :(
Pls check correct this config if its possible to work. Thanks
[-- Attachment #2: Type: text/html, Size: 4115 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-02-13 3:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-13 3:30 [LARTC] Followup Question: Help with GRE Tunneling Glynn S. Condez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox