LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-16-2007, 08:36 AM   #1
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Rep: Reputation: 15
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

2) 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.
 
Old 03-16-2007, 10:15 AM   #2
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
Hello,

1) see 3)

2) try this:

cat /boot/config-$(uname -r) | grep CONFIG_IP_ADVANCED_ROUTER

if it says CONFIG_IP_ADVANCED_ROUTER=y then everything is ok, otherwise you will need to compile a new kernel. Same with the other option.

3) modprobe looks in the configured modules directory for the specified module, which is somewhere in /lib/modules/... (where it should be located if you installed correctly). insmod looks in the working directory if you don't specify a path.
You cannot find the module in your download folder because it must be compiled before. Try this (after installation):

find /lib/modules -name ipip

that should find your module.

edit: after inserting the module with either modprobe or insmod, do 'lsmod' (shows if the module is loaded) and 'dmesg' (should show messages of the module) to check, if everything worked correctly.

Last edited by almatic; 03-16-2007 at 10:18 AM.
 
Old 03-16-2007, 09:34 PM   #3
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Original Poster
Rep: Reputation: 15
Hi almatic,

Thanks for your reply. Sorry that i have some questions to ask as below:

1) When i typed the command " find /lib/modules -name ipip " , there is nothing shown in terminal.
Then i add " * " at the end of the command, it shown:

[root@localhost ~]# find /lib/modules -name ipip*
/lib/modules/2.6.11-1.1369_FC4.stk16/kernel/net/ipv4/ipip.ko


Is it mean my tunneling ipip module is loaded ?


Then i typed "modprobe ipip", "lsmod" and dmesg as below:

[root@localhost ~]# lsmod
Module Size Used by
ipip 10277 0
xfrm4_tunnel 3909 1 ipip
parport_pc 28933 1
lp 13001 0
parport 40585 2 parport_pc,lp
autofs4 29253 2
rfcomm 42333 0
l2cap 30661 5 rfcomm
bluetooth 56133 4 rfcomm,l2cap
sunrpc 167813 1
ipt_REJECT 5569 1
ipt_state 1857 1
ip_conntrack 41497 1 ipt_state
iptable_filter 2881 1
ip_tables 19521 3 ipt_REJECT,ipt_state,iptable_filter
dm_mod 58101 0
video 15941 0
button 6609 0
battery 9413 0
ac 4805 0
md5 4033 1
ipv6 268097 8
ohci_hcd 26849 0
ehci_hcd 41037 0
shpchp 94405 0
i2c_sis96x 5445 0
i2c_core 21569 1 i2c_sis96x
snd_intel8x0 34689 2
snd_ac97_codec 75961 1 snd_intel8x0
snd_seq_dummy 3653 0
snd_seq_oss 37057 0
snd_seq_midi_event 9153 1 snd_seq_oss
snd_seq 62289 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 8781 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 51185 0
snd_mixer_oss 17857 2 snd_pcm_oss
snd_pcm 100169 3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer 33605 2 snd_seq,snd_pcm
snd 57157 11 snd_intel8x0,snd_ac97_codec,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd _timer
soundcore 10913 2 snd
snd_page_alloc 9669 2 snd_intel8x0,snd_pcm
ndiswrapper 183860 0
sis900 21697 0
floppy 65141 0
ext3 132553 1
jbd 86233 1 ext3


[root@localhost ~]# dmesg

usb 1-3: new high speed USB device using ehci_hcd and address 2
usb 1-3: reset high speed USB device using ehci_hcd and address 2
ndiswrapper: driver blkwgu (Belkin,11/10/2005,6.3.2.16) loaded
wlan0: ethernet device 00:11:50:b3:b4:c5 using NDIS driver: blkwgu, version: 0x6030210, NDIS version: 0x501, vendor: 'Belkin Wireless G USB Network Adapter', 050D:705C.F.conf
wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK
eth0: Media Link Off
wlan0: no IPv6 routers present
eth0: Media Link On 100mbps full-duplex
IPv4 over IPv4 tunneling driver



2) 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 ???


Please help me if you know it. Thank you.
 
Old 03-16-2007, 09:37 PM   #4
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Original Poster
Rep: Reputation: 15
Sorry that the output of command "lsmod" a bit messy, so i post it again. Sorry.

[root@localhost ~]# lsmod
Module Size Used by
ipip 10277 0
xfrm4_tunnel 3909 1 ipip
parport_pc 28933 1
lp 13001 0
parport 40585 2 parport_pc,lp
autofs4 29253 2
rfcomm 42333 0
l2cap 30661 5 rfcomm
bluetooth 56133 4 rfcomm,l2cap
sunrpc 167813 1
ipt_REJECT 5569 1
ipt_state 1857 1
ip_conntrack 41497 1 ipt_state
iptable_filter 2881 1
ip_tables 19521 3 ipt_REJECT,ipt_state,iptable_filter
dm_mod 58101 0
video 15941 0
button 6609 0
battery 9413 0
ac 4805 0
md5 4033 1
ipv6 268097 8
ohci_hcd 26849 0
ehci_hcd 41037 0
shpchp 94405 0
i2c_sis96x 5445 0
i2c_core 21569 1 i2c_sis96x
snd_intel8x0 34689 2
snd_ac97_codec 75961 1 snd_intel8x0
snd_seq_dummy 3653 0
snd_seq_oss 37057 0
snd_seq_midi_event 9153 1 snd_seq_oss
snd_seq 62289 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 8781 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 51185 0
snd_mixer_oss 17857 2 snd_pcm_oss
snd_pcm 100169 3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer 33605 2 snd_seq,snd_pcm
snd 57157 11 snd_intel8x0,snd_ac97_codec,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd _timer
soundcore 10913 2 snd
snd_page_alloc 9669 2 snd_intel8x0,snd_pcm
ndiswrapper 183860 0
sis900 21697 0
floppy 65141 0
ext3 132553 1
jbd 86233 1 ext3
 
Old 03-17-2007, 02:15 PM   #5
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
from what I see in the info you posted you should be fine. The module is loaded and did not display any errors in dmesg.
The options you didn't find are afaik very old kernel options which don't exist anymore in newer kernels. After all that program is last updated in 2001 and the docu is from 1999...

Have you checked the obvious things ? Double chekc your network settings, verify that there's no firewall in your way which blocks this kind of traffic. I see quite a lot of firewall modules in your lsmod, so I'm assuming you have a ruleset running ...
 
Old 03-19-2007, 02:45 AM   #6
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Original Poster
Rep: Reputation: 15
Hi almatic,

There was someone in dynamic mobile ip forum replied me that he had successfully run it in Fedora core 4. Maybe there are some setting are changed as well. I did disable or untick those trusted device except wlan0 interface by typing
"/usr/bin/system-config-securitylevel" in the firewall setting.


Can you teach me how to compile the CONFIG_RTNETLINK ?

Because the output of mobile node shown one of the error message regarding to this as below:

root@localhost ~]# dynmnd --fg --debug
DEBUG_FLAGS[ffffffffffffffffffffeffbfffffebfffffffffffffffffffffffffffffffff]
Load config
Register MN default FA_GET handler
init_handler_lists: begin
init_handler_lists: end
handler_register: "Get best FA" Event handler registered
Register MN default INTERFACE_INIT handler
handler_register: "Initialize interface" Event handler registered
Register MN default INTERFACE_DOWN handler
handler_register: "Interface down" Event handler registered
REGISTER MODULE(S)
handler_register: "Initialize interface" Event handler registered
handler_register: "Interface down" Event handler registered
rtnl_talk: RTNETLINK error: Network is unreachable
dyn_ip_route_get(192.168.242.0): rtnl_talk failed
Init tunneling
MN initialized to connected state,
SPI: 1000, HA: 10.100.26.3,
HomeAddr: 10.100.26.2, CurrentAddr: 10.100.26.2
check_interfaces: new interface
modify_new_interface (start): device_count 0
modify_interface: interface up
mn_default_INTERFACE_INIT_handler
Opening ICMP socket for interface wlan0 (index=3).
sockets: sol=9 adv=8
index = 3
mn_get_device_priority: sendto -1/8 bytes: No such file or directory
interface priority = 100
sending agent solicitation
dyn_wireless_iwspy_get: Interface doesn't accept getting addresses.
SIOCGIWSPY: Operation not supported (-1)
monitor_dev_up: IWSPY not supported (wlan0)
dyn_wireless_iwspy_set: Interface doesn't accept setting addresses.
SIOCSIWSPY: Operation not supported (-1)
monitor_dev_up: IWSPY not supported (wlan0)
monitor_dev_up: channel query not supported (wlan0)
monitor_dev_up: set channel successful (wlan0, -1)
dyn_wireless_get_range: ok
RANGE (wlan0):
throughput 0
min_nwid 0
max_nwid 0
channels 14
sensitivity 3
max_qual.qual 100
max_qual.level 154
max_qual.noise 154
num_bitrates 10
min_rts 0
max_rts 2347
min_frag 256
max_frag 2346
monitor_interface_up: iwspy: NO channel switch: YES
handler_call_all: 2 "Initialize interface" Event handlers called
modify_new_interface (end): device_count 1
find_agent(0)
handler_call_all: 1 "Get best FA" Event handlers called
update_fa_decision: Can't find FA!
Too frequent agent solicitations (dev=wlan0) - skipping
find_agent - TIMER_GEN: set now+1 sec
State: Find agent
handle_icmp_adv: ifindex=3 hatype=0x0100 pkttype=0 halen=6 addr=00:0c:f1:31:f6:af:00:00
ICMP from 10.100.26.3, len=53
* Dynamics agentadv ext
agent adv (sent to 10.100.26.2)
Added new agentadv entry for 10.100.26.3
now=1174285487.609178, expire=1174285518.609178
Home advertisement
from our own HA - MN is at home
Deregistering due to the heard own HA agent advertisement
close_for_home(0)
close_for_home - not registered, but trying to deregister possible old bindings at HA
FA[10.100.26.3] reg_retry_time: 0 => 1 (close_for_home)
proxyarp_gratuitous: sending gratuitous ARP - IPaddr: 10.100.26.2, HWaddr: 00:11:50:B3:B4:C5, family=1
Setting in_use=0 for FA 10.100.26.3 (send reg)
Sending registration message:
* header
* mn_nai
FA did not advertise support for Dynamics extensions - not using them
* mh_auth
Registration Request
type 1, opts 0, lifetime 0
home_addr 10.100.26.2, ha_addr 10.100.26.3
co_addr 10.100.26.2, id c9a8ab2f, a6e14edf
mn_nai: type 131, length 11, nai: HN_MIP_CNDS
mh_auth: type 32, length 20, spi 1000, auth len 16
sending registration request to 10.100.26.3:434, type=0
last_reg_send_time=1174285487.672671 (FA=10.100.26.3)
close_for_home - TIMER_GEN: set now+1 sec
State: Close for home
checking for expired agentadv data
Received 55 bytes from 10.100.26.3:434
Registration Reply
type 3, code 133, lifetime 0
home_addr 10.100.26.2, ha_addr 10.100.26.3
id c9a8abb4, a6e14edf
mn_nai: type 131, length 11, nai: HN_MIP_CNDS
mh_auth: type 32, length 20, spi 1000, auth len 16
No mf_auth in the reply even though there is a security association with the FA.
Timeout
disabling TIMER_GEN
close_for_home(1)
FA[10.100.26.3] reg_retry_time: 1 => 2
proxyarp_gratuitous: sending gratuitous ARP - IPaddr: 10.100.26.2, HWaddr: 00:11:50:B3:B4:C5, family=1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create an SSH tunnel at boot up fregster Linux - General 7 11-15-2006 05:02 AM
need to create one gre tunnel with different sessions sureshchandak Linux - Kernel 1 06-23-2006 02:41 PM
Anybody knows how to tunnel ip? sovietdoc Linux - Networking 0 06-03-2006 01:55 PM
IP-IP Tunnel rickthemick Linux - Networking 2 11-10-2004 11:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration