[Click] Redhat 9.0 Kernel Mode Click Router Working - Config file ?

Eddie Kohler kohler at CS.UCLA.EDU
Mon Oct 11 13:42:39 EDT 2004


Pedro,

This config:

> However we have not been able to get the simple config working. We too  
> (I've read all the posts:) have a simple configuration. Two computers  
> (acting as hosts) and one computer acting as the click modular router.  
> We would like to set up a ip router that allows us to communicated  
> between the two hosts (ftp for example). We have got a simple ethernet  
> card forwarding config file to work under the user mode, but it fails  
> under kernel module mode. :(
> ----------------------------------------------------------------------- 
> -------
> // Simple Forwarding of Packets
>
> a1 :: EtherEncap(0x0800, Click_1_MAC, HOST_1_MAC);
> a2 :: EtherEncap(0x0800, Click_2_MAC, HOST_2_MAC);
>
> out1 :: ToDevice(eth1);
> out2 :: ToDevice(eth2);
>
> FromDevice(eth1)-> Strip(14) -> a1 -> out2;
> FromDevice(eth2)-> Strip(14) -> a2 -> out1;
> ----------------------------------------------------------------------- 
> ------

is unlikely to work, because it treats all packets as IP packets.  This  
doesn't work; it breaks ARP, for example.

I'd suggest adding Prints to this config, and to the result of  
make-ip-conf.pl, to make sure that you're receiving packets as  
expected.

Finally, where are the Queues?  I'd expect this config to fail in  
kernel mode, because ToDevice is exclusively pull.

Eddie



> -
>
> The "ip router config file" generated by your perl script does not  
> work for us either. We have the following configuration:
>
> 1- Click Modular Router
>       eth1 = 10.1.0.254/255.255.0.0/Gateway not set
>       eth2 = 10.2.0.254/255.255.0.0/Gateway not set
> 2- Host_1
>       eth1 = 10.1.0.10/255.255.0.0/10.1.0.254
> 3- Host_2
>       eth2 = 10.2.0.10/255.255.0.0/10.2.0.254
>
> Any ideas on what stupidity I am doing now? (I was going to say  
> overwhelming moment of brilliance instead, but didn't want anyone to  
> miss the sarcasm)
>
>
> Below you will find the tested, working steps for getting the kernel  
> mode click router working under Redhat 9.0 are as follows :)
>
> 1. unpack the src to /usr/src/linux
> 2. apply the appropriate patch
> *. cp /boot/config/config_2.4.20-8 ./.config
>    - The file config_2.4.20-8 depends on your version of redat.
>    - For instance, in white box it is config_2.4.21-15.EL
> 3. make oldconfig (don't use menuconfig, xcopnfig, or other)
> 4. make dep
> 5. make bzImage
> 6. make install
> 7. make modules
> 8. make modules_install
> 9. Check/fix grub.conf
> ...reboot
> ...follow rest of instructions in Install Readme file
> (The only difference is steps * and 3).
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click



More information about the click mailing list