All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Routing and Shaping using RedHat7.3
@ 2002-09-25 16:12 John Cushnie
  2002-09-26 14:29 ` John Cushnie
  0 siblings, 1 reply; 2+ messages in thread
From: John Cushnie @ 2002-09-25 16:12 UTC (permalink / raw)
  To: lartc

Hi all,

I'm running RH7.3 plus errata.
I've read through the HowTo and I had something like this configuration 
working on RH7.1, but it looks like the interface to IP and ROUTE has 
changed considerably since then.....

I'm trying to set up a simple router configuration to route between 
subnets, as shown in the diagram. 
My aim is to provide traffic shaping between the 194.80.34.0 
hosts and the 148.88.0.0 and 192.168.106.0 networks. 

                                         148.88.0.0 network          
                    --------+-------------------------------+-----
        __                  |                               |
    ___/  \_         +------+-----------------+
+-------+-----------+
  _/        \__      |     eth2 148.88.155.253|     |eth1
148.88.154.150|
 /             \     |                        |     |
|  
|    network    -----+ eth0 194.80.34.202     |     |       WinXP
|
 |  194.80.34.0 |    |  Linux router          |     |
|
 \_           __/    |                        |     |    192.168.106.1
|
   \__     __/       |     eth1 192.168.106.2 |     |       eth0
|
      \___/          +------+-----------------+
+---------+---------+
                            |                                 |  
                            |       192.168.106.0 network     |
                        ----+---------------------------------+-------- 
                                         

The routes and addresses for the Linux box are as listed below. I have
enabled ip-forwarding:
# cat /proc/sys/net/ipv4/ip_forward   
1
# cat /proc/sys/net/ipv4/conf/eth2/forwarding 
1
# cat /proc/sys/net/ipv4/conf/eth0/forwarding 
1
# cat /proc/sys/net/ipv4/conf/eth1/forwarding 
1

From the Linux host I can ping all the subnets I have defined and have 
connections to.
Ie:
   Ping 192.168.106.1
   Ping 148.88.154.150
   Ping 194.80.34.35 (Remote Host)

When I try to ping from the WinXP machine I get mixed results.
Ie:
   Ping 192.168.106.2 -- works fine
   Ping 194.80.34.202 -- works fine
   Ping 194.80.34.35 (Remote Host) 
      -- doesn't work
      -- Using Ethereal I see the ARP request at eth2 rom the WinXP 
         on the Linux router but no response, and then time out at 
         the WinXP box.               

Not quite sure the pings don't work in the configuration I have, unless
I 
have missed something in the routing tables or a basic configuration 
parameter. Any suggestions ?
Do I need further routes defining ?
Do I need to enable something to allow ARP requests to be responded to ?

Is there any way to check if the required routing is enabled in the
kernel ?

Thanks in advance for any suggestions.
John Cushnie.
Email: cushnie@csi.com

=============================
Routes:
====
# /sbin/ip route list 
192.168.106.0/24 via 192.168.106.2 dev eth1  scope link 
194.80.34.0/24 via 194.80.34.202 dev eth0  scope link 
192.168.0.0/16 dev eth1  scope link 
148.88.0.0/16 via 148.88.155.253 dev eth2  scope link 
148.88.0.0/16 dev eth2  scope link 
127.0.0.0/8 dev lo  scope link 
default via 194.80.34.99 dev eth0 

Addresses:
=====# /sbin/ip address list
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
2: eth0: <BROADCAST,MULTICAST,PROMISC,NOTRAILERS,UP> mtu 1500 qdisc
pfifo_fast qlen 100
    link/ether 00:04:76:f3:b4:56 brd ff:ff:ff:ff:ff:ff
    inet 194.80.34.202/24 brd 194.80.34.255 scope global eth0
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 00:04:76:f3:b2:65 brd ff:ff:ff:ff:ff:ff
    inet 192.168.106.2/16 brd 192.168.106.255 scope global eth1
4: eth2: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 00:01:02:df:c2:38 brd ff:ff:ff:ff:ff:ff
    inet 148.88.155.253/16 brd 148.88.155.255 scope global eth2


==================================




_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [LARTC] Routing and Shaping using RedHat7.3
  2002-09-25 16:12 [LARTC] Routing and Shaping using RedHat7.3 John Cushnie
@ 2002-09-26 14:29 ` John Cushnie
  0 siblings, 0 replies; 2+ messages in thread
From: John Cushnie @ 2002-09-26 14:29 UTC (permalink / raw)
  To: lartc

Hi,

Thanks for the pointer.
It was in fact the gateways to/from the Linux box not being defined 
correctly that caused the confusion and no-function of the routing.
All no in place and working.

Many thanks.
John.

  >>> -----Original Message-----
  >>> From: Zubio Ancartone [mailto:z@adsl-213-190-47-193.takas.lt] 
  >>> Sent: 25 September 2002 20:41
  >>> To: john@dallambarn.freeserve.co.uk
  >>> Subject: Re: [LARTC] Routing and Shaping using RedHat7.3
  >>> 
  >>> 
  >>> On Wednesday 25 September 2002 16:12, John Cushnie wrote:
  >>> 
  >>> What is your "remote host" default gateway? Do tcpdump on eth0.
  >>> 
  >>> > Hi all,
  >>> >
  >>> > I'm running RH7.3 plus errata.
  >>> > I've read through the HowTo and I had something like this 
  >>> > configuration working on RH7.1, but it looks like the 
  >>> interface to IP 
  >>> > and ROUTE has changed considerably since then.....
  >>> >
  >>> > I'm trying to set up a simple router configuration to 
  >>> route between 
  >>> > subnets, as shown in the diagram. My aim is to provide 
  >>> traffic shaping 
  >>> > between the 194.80.34.0 hosts and the 148.88.0.0 and 
  >>> 192.168.106.0 
  >>> > networks.
  >>> >
 
<Snip>


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-26 14:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-25 16:12 [LARTC] Routing and Shaping using RedHat7.3 John Cushnie
2002-09-26 14:29 ` John Cushnie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.