Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15
Hi, I have downloaded a mobile ip program called dynamic mobile ip ( version 0.8.1 ) from: http://dynamics.sourceforge.net/ I had run the HA, FA and MN on 2 laptops and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2006
    Posts
    70

    how to create ip tunnel ????


    Hi,

    I have downloaded a mobile ip program called dynamic mobile ip ( version 0.8.1 ) from:
    http://dynamics.sourceforge.net/


    I had run the HA, FA and MN on 2 laptops and one desktop. It is successfully communicate each others. But, I had found out that there is no throughput in the adhoc network although it can communicate each others.

    I have some questions to ask because i really running out of idea to solve the problems. Hope you can help me. The problems are below:



    1) From the README file of dynamic mobile ip, there is a small part under "RUNNING" in README file, which are:

    "In order to be able to use the IPIP tunneling you must make sure that the
    IPIP tunneling module (ipip.o) is loaded. This can be done with 'insmod ipip'
    if the module is compiled to the Linux kernel as a loadable module."

    I had search through those files inside downloaded dynamic mobile ip folder, but i cannot search the ipip.o file in it. May I know is it i have to download it from somewhere or is it as you mentioned to create the file which is for ipip.o ??

    2) I had went to the dynamic Mobile IP forum and found a link as below:
    http://sourceforge.net/mailarchive/f...forum_id=36463

    The message contain are :

    dynamics version 0.8.1 should work as it is. Your kernel should be
    enabled with CONFIG_IP_ADVANCED_ROUTER and CONFIG_IP_MULTIPLE_TABLES
    options. other wise FA doesn't work.


    May I know where can i enable CONFIG_IP_ADVANCED_ROUTER and CONFIG_IP_MULTIPLE_TABLES ??

    I did found a link about ipip tunneling which also mentioned about CONFIG_IP_ADVANCED_ROUTER and CONFIG_IP_MULTIPLE_TABLES , but i really don't know where it located. The link as below:

    http://snafu.freedom.org/linux2.2/pa...ONFIG_NET_IPIP


    3) May I know to load ip tunneling module, is it "modprobe ipip" and "insmod ipip" both are same function command to create tunnel ?

    Because when i type modprobe ipip, it is ok in terminal. But when i type insmod ipip, there is an error message said that:
    "insmod: can't be read ipip , no such file or directory".


    Please help me if you know about it. Your helps are much needed and appreciated.

    Thank you.

  2. #2
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    but i cannot search the ipip.o file in it.
    It should be in
    /lib/modules/`uname -r`/kernel/net/ipv4
    path, if ipip.o (2.4.xx) or ipip.ko (2.6.xx) module is compiled.

    do this to check, if you have ipip module
    Code:
    ls /lib/modules/`uname -r`/kernel/net/ipv4/ipip*
    If not, you need to compile it. To have this module, put this
    CONFIG_NET_IPIP=m
    in your .config file of ur linux source, make modules and install it.

    CONFIG_IP_ADVANCED_ROUTER and CONFIG_IP_MULTIPLE_TABLES
    These are options in your kernel configuration file. you can find that in your kernel source.
    Filename:
    .config
    "insmod: can't be read ipip , no such file or directory".
    The reason for this error is: when u do insmon <module_name>, it searches for the module in your "current working directory". Whereas modprobe does "uname -r", goes to /lib/modules path and loads the module.

    So when u want to use insmod, then you need to specify the module name with proper path information.
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  3. #3
    Just Joined!
    Join Date
    Jul 2006
    Posts
    70
    Hi cyberinstru,

    i had found the ipip.ko file in the path you given but there is no module being compiled after typing the command given in your previous message.

    Can you explain in more detail how to compile the ipip module ? Because there are 3 config file located in /usr/local/etc, which named are dynfad, dyhad, and dymnd. The 3 config files are used to configure my mobile ip interfaces, such as set ip address and set the wireless interface. Sorry that i still new in linux and not able to catch what you mean in your previous message.

    This 3 config file is fa=foreign agent, ha=home agent, and mn=mobile node.

    Here are some examples which is same as my config file contain from these link:
    http://www.student.nada.kth.se/~d94-...ynhad_conf.htm
    http://www.student.nada.kth.se/~d94-...ynfad_conf.htm
    http://wine.icu.ac.kr/lxr/http/sourc...-0.8.1;a=sparc

  4. #4
    Just Joined!
    Join Date
    Jul 2006
    Posts
    70
    Sorry that i missed out the " * " symbol from the check module command u given to me. I have found the ipip.ko and i inserted the command you given to me in fedora terminal as below:

    [root@localhost ~]# ls /lib/modules/`uname -r`/kernel/net/ipv4/ipip*
    /lib/modules/2.6.11-1.1369_FC4.stk16/kernel/net/ipv4/ipip.ko


    May I know is it mean that tunneling ipip module is loaded ?

  5. #5
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    May I know is it mean that tunneling ipip module is loaded ?
    No. To load the module, do
    modprobe ipip
    This shud load the module. To verify, do
    lsmod | grep ipip
    If it is loaded successfully, then u will find it in the output
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  6. #6
    Just Joined!
    Join Date
    Jul 2006
    Posts
    70
    Hi cyberinstru,

    [root@localhost ~]# modprobe ipip
    [root@localhost ~]# lsmod | grep ipip
    ipip 10277 0
    xfrm4_tunnel 3909 1 ipip


    May I know is that the tunneling ipip loaded as above ??

  7. #7
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    [root@localhost ~]# lsmod | grep ipip
    ipip 10277 0
    xfrm4_tunnel 3909 1 ipip


    May I know is that the tunneling ipip loaded as above ??
    Yes, ipip module is loaded.
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  8. #8
    Just Joined!
    Join Date
    Jul 2006
    Posts
    70
    hi cyberinstru,

    Thanks for your replies.

    There is a part from README file of dynamic mobile ip as below:

    Following Linux kernel compile time options are needed to make a
    compatible kernel:

    - Loadable module support (if ipip tunneling is used as a module)
    - Networking options (in addition to the default selections):
    Packet socket (CONFIG_PACKET)
    Kernel/User netlink socket (CONFIG_NETLINK)
    Routing messages (CONFIG_RTNETLINK)
    IP: Socket Filtering (CONFIG_FILTER)
    IP: tunneling (CONFIG_NET_IPIP)
    - In addition the following options are needed for Foreign Agents:
    IP: advanced router (CONFIG_IP_ADVANCED_ROUTER)
    IP: policy routing (CONFIG_IP_MULTIPLE_TABLES)
    - Additional options for the wireless extensions for MN:
    Wireless LAN (non-hamradio) (CONFIG_NET_RADIO)


    Then i follow the command you given to me to check it as below:

    [root@localhost ~]# cat /boot/config-$(uname -r) | grep CONFIG_PACKET
    CONFIG_PACKET=y
    CONFIG_PACKET_MMAP=y

    [root@localhost ~]# cat /boot/config-$(uname -r) | grep CONFIG_NETLINK
    [root@localhost ~]# cat /boot/config-$(uname -r) | grep CONFIG_RTNETLINK
    [root@localhost ~]# cat /boot/config-$(uname -r) | grep CONFIG_FILTER

    [root@localhost ~]# cat /boot/config-$(uname -r) | grep CONFIG_NET_IPIP
    CONFIG_NET_IPIP=m

    [root@localhost ~]# cat /boot/config-$(uname -r) | grep CONFIG_IP_ADVANCED_ROUTER
    CONFIG_IP_ADVANCED_ROUTER=y

    [root@localhost ~]# cat /boot/config-$(uname -r) | grep CONFIG_IP_MULTIPLE_TABLES
    CONFIG_IP_MULTIPLE_TABLES=y

    [root@localhost ~]# cat /boot/config-$(uname -r) | grep CONFIG_NET_RADIO
    CONFIG_NET_RADIO=y


    From the above, only CONFIG_NETLINK, CONFIG_RTNETLINK, and CONFIG_FILTER
    do not have any response. Is it mean it the 3 modules do not loaded ??
    If i want to load the module, may i know how to do it ???
    Sorry that i still not able to catch with your explanation about compilation on this.

    Thanks.

  9. #9
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    Are you using the kernel that came with ur distro or is this your customized kernel?
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  10. #10
    Just Joined!
    Join Date
    Jul 2006
    Posts
    70
    Hi cyberinstru

    Before installed this dynamic mobile ip, I did changed the kernel stack size from 4K to 16K due to the installation of ndiswrapper. But my kernel still the same, just stack size different.

    Originally, my stack size is 2.6.11-1.1.369_FC4 and now my kernel is become
    2.6.11-1.1369_FC4.stk16

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •