[Click] click configuration help
Azeem Khan
azeem_k at hotmail.com
Tue Aug 8 06:06:32 EDT 2006
Hello,
I am trying out a very simple click configuration using the
make-ip-conf.pl file.
I have 3 machines. A router with 2 GigE NIC cards. And a GigE NIC card each
on the remaining two. All the cards are connected to a single GigE switch.
Router NICs have addresses 192.168.0.1 and 192.168.1.1.
Second machine has NIC address 192.168.0.2
Third machine has NIC address 192.168.1.2
Problem : I cannot ping second machine from the third one or vice-versa.
Any advice on what I am doing wrong?
Route table on router machine is :
Dest. Gateway Genmask Iface
192.168.1.0 * 255.255.255.0 eth2
192.168.0.0 * 255.255.255.0 eth1
default 192.168.0.1 0.0.0.0 eth1
I used click-install to install a conf file the contents of which are as
follows:
// Generated by make-ip-conf.pl
// eth1 192.168.0.1 00:15:E9:49:C4:A3
// eth2 192.168.1.1 00:13:D4:F5:00:9E
// Shared IP input path and routing table
ip :: Strip(14)
-> CheckIPHeader(INTERFACES 192.168.0.1/255.255.255.0
192.168.1.1/255.255.255.0)
-> rt :: StaticIPLookup(
192.168.0.1/32 0,
192.168.0.255/32 0,
192.168.0.0/32 0,
192.168.1.1/32 0,
192.168.1.255/32 0,
192.168.1.0/32 0,
192.168.0.0/255.255.255.0 1,
192.168.1.0/255.255.255.0 2,
255.255.255.255/32 0.0.0.0 0,
0.0.0.0/32 0);
// ARP responses are copied to each ARPQuerier and the host.
arpt :: Tee(3);
// Input and output paths for eth1
c0 :: Classifier(12/0806 20/0001, 12/0806 20/0002, 12/0800, -);
FromDevice(eth1) -> c0;
out0 :: Queue(200) -> todevice0 :: ToDevice(eth1);
c0[0] -> ar0 :: ARPResponder(192.168.0.1 00:15:E9:49:C4:A3) -> out0;
arpq0 :: ARPQuerier(192.168.0.1, 00:15:E9:49:C4:A3) -> out0;
c0[1] -> arpt;
arpt[0] -> [1]arpq0;
c0[2] -> Paint(1) -> ip;
c0[3] -> Print("eth1 non-IP") -> Discard;
// Input and output paths for eth2
c1 :: Classifier(12/0806 20/0001, 12/0806 20/0002, 12/0800, -);
FromDevice(eth2) -> c1;
out1 :: Queue(200) -> todevice1 :: ToDevice(eth2);
c1[0] -> ar1 :: ARPResponder(192.168.1.1 00:13:D4:F5:00:9E) -> out1;
arpq1 :: ARPQuerier(192.168.1.1, 00:13:D4:F5:00:9E) -> out1;
c1[1] -> arpt;
arpt[1] -> [1]arpq1;
c1[2] -> Paint(2) -> ip;
c1[3] -> Print("eth2 non-IP") -> Discard;
// Local delivery
toh :: ToHost;
arpt[2] -> toh;
rt[0] -> EtherEncap(0x0800, 1:1:1:1:1:1, 2:2:2:2:2:2) -> toh;
// Forwarding path for eth1
rt[1] -> DropBroadcasts
-> cp0 :: PaintTee(1)
-> gio0 :: IPGWOptions(192.168.0.1)
-> FixIPSrc(192.168.0.1)
-> dt0 :: DecIPTTL
-> fr0 :: IPFragmenter(1500)
-> [0]arpq0;
dt0[1] -> ICMPError(192.168.0.1, timeexceeded) -> rt;
fr0[1] -> ICMPError(192.168.0.1, unreachable, needfrag) -> rt;
gio0[1] -> ICMPError(192.168.0.1, parameterproblem) -> rt;
cp0[1] -> ICMPError(192.168.0.1, redirect, host) -> rt;
// Forwarding path for eth2
rt[2] -> DropBroadcasts
-> cp1 :: PaintTee(2)
-> gio1 :: IPGWOptions(192.168.1.1)
-> FixIPSrc(192.168.1.1)
-> dt1 :: DecIPTTL
-> fr1 :: IPFragmenter(1500)
-> [0]arpq1;
dt1[1] -> ICMPError(192.168.1.1, timeexceeded) -> rt;
fr1[1] -> ICMPError(192.168.1.1, unreachable, needfrag) -> rt;
gio1[1] -> ICMPError(192.168.1.1, parameterproblem) -> rt;
cp1[1] -> ICMPError(192.168.1.1, redirect, host) -> rt;
The above script installs without errors.
Thank You,
Azeem.
_________________________________________________________________
Who will win Bollywoods most coveted IIFA awards? You decide! Cast your
vote! http://server1.msn.co.in/sp06/IIFA2006/static/weekend.asp
More information about the click
mailing list