Networking Forums

Networking Forums > Computer Networking > Linux Networking > ip forwarding linux

Reply
Thread Tools Display Modes

ip forwarding linux

 
 
Carina Ehrmann
Guest
Posts: n/a

 
      01-04-2004, 04:17 PM
Hello,

i want to connect a 192.168.0.0 subnet to a 10.155.20.0 subnet with a PC
running current Debian. Therefore i have a eth0 at 192.168.0.10 and a
eth1 at 10.155.20.1. IP forwarding is activated in /etc/network/options
and /proc/sys/net/ipv4/ip_forward.
route -n gives:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.155.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0


Standard Gateways are 192.168.0.10 and 10.155.20.1 in subnets.

Ping from a 10... machine to a 192.. machine doesnt work.
I spent the whole day looking for a good tutorial which I also
understand, but found nothing helpful.
What else do I need to route packets between the two subnets?

Carina

 
Reply With Quote
 
 
 
 
Allen Kistler
Guest
Posts: n/a

 
      01-04-2004, 09:53 PM
Carina Ehrmann wrote:
> Hello,
>
> i want to connect a 192.168.0.0 subnet to a 10.155.20.0 subnet with a PC
> running current Debian. Therefore i have a eth0 at 192.168.0.10 and a
> eth1 at 10.155.20.1. IP forwarding is activated in /etc/network/options
> and /proc/sys/net/ipv4/ip_forward.
> route -n gives:
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 10.155.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
> 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
>
> Standard Gateways are 192.168.0.10 and 10.155.20.1 in subnets.
>
> Ping from a 10... machine to a 192.. machine doesnt work.
> I spent the whole day looking for a good tutorial which I also
> understand, but found nothing helpful.
> What else do I need to route packets between the two subnets?


The machines on each subnet need to know that the Linux box is the
router. Does your 10.155.20.x machine know that the Linux eth1 address
(10.155.20.1?) is its gateway for 192.168.0.0/24? Does your 192.168.0.x
machine know that the Linux eth0 address (192.168.0.10?) is its gateway
for 10.155.21.0/24?

 
Reply With Quote
 
Carina Ehrmann
Guest
Posts: n/a

 
      01-05-2004, 09:21 AM
Allen Kistler schrieb:
>
> The machines on each subnet need to know that the Linux box is the
> router. Does your 10.155.20.x machine know that the Linux eth1 address
> (10.155.20.1?) is its gateway for 192.168.0.0/24? Does your 192.168.0.x
> machine know that the Linux eth0 address (192.168.0.10?) is its gateway
> for 10.155.21.0/24?
>


the machines are Windows machines with standard gateway set to
10.155.20.1 / 192.168.0.10

 
Reply With Quote
 
Carina Ehrmann
Guest
Posts: n/a

 
      01-05-2004, 11:41 AM
My problem has changed now. Ip forwarding works fine now with ipchains
-A forward -j MASQ. I can ping now 192.168.0.x machines from the
10.155.20.0 net and vice versa. I can reach my webserver on 192.168.0.5
from 10.155.20.x. But I cannot reach internet via a dsl router at
192.168.0.1 from the 10.155.20.0 subnet. I can ping this router from
10.155.20.x, but my browser tells me not being able to resolve the
entered url.

 
Reply With Quote
 
Carina Ehrmann
Guest
Posts: n/a

 
      01-05-2004, 11:58 AM
Carina Ehrmann schrieb:

> My problem has changed now. Ip forwarding works fine now with ipchains
> -A forward -j MASQ. I can ping now 192.168.0.x machines from the
> 10.155.20.0 net and vice versa. I can reach my webserver on 192.168.0.5
> from 10.155.20.x. But I cannot reach internet via a dsl router at
> 192.168.0.1 from the 10.155.20.0 subnet. I can ping this router from
> 10.155.20.x, but my browser tells me not being able to resolve the
> entered url.
>


solved. I entered 192.168.0.1 as DNS Server on the 10.155.20. machine

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Packet Forwarding in Linux. rramesh1@gmail.com Linux Networking 1 10-30-2006 11:26 PM
Linux firewall forwarding problem ahoernec Linux Networking 4 11-09-2005 01:06 AM
Why isn't my Linux box forwarding multicast packets? Wei Linux Networking 1 05-25-2005 08:15 PM
Forwarding multicast packets in Linux, for different subnets. smshahriar@gmail.com Linux Networking 4 04-28-2005 04:34 PM
Client isolation and software forwarding through linux - Please help! Coenraad Loubser Linux Networking 6 03-01-2005 07:26 PM



1 2 3 4 5 6 7 8 9 10 11