SCTP Discussions

Text archives Help


[SCTP-Discussion] How to make SCTP stream change from one IP to another IP?


Chronological Thread 
  • From: 謝坤龍 <klhsieh AT kunlung.com>
  • To: <discussion AT sctp.de>
  • Subject: [SCTP-Discussion] How to make SCTP stream change from one IP to another IP?
  • Date: Thu Feb 9 13:22:02 2006
  • List-id: SCTP Discussions <discussion.sctp.de>

Dear all:
 
    Thanks all to see my problem.
 
    I have two linux box. One is called 'server', its IP is 192.168.0.5.
    One is called 'client', it has two network card, and the two cards are assigned different IPs (192.168.0.4 and 192.168.0.6)
 
    Both are running 'SCTPD'. When server runs 'sctpmultiserver' and client use 'sctptftp' to upload a file, everything is OKay.
 
    But when I unplug the cable of IP 192.168.0.4, the transmission is stop. Why? Will SCTP not change stream to 192.168.0.6 and continue transmission ?
 
 
 
    I notice one thing:
    When I log in 192.168.0.6 with putty ( all my manipulation are through putty!)
    and I start 'sctptftp', I found:
 
[root@client cppsocket_programs]# ./sctptftp 192.168.0.5:69 put r91044.tar.gz
SCTP TFTP - Copyright (C) 2001-2003 Thomas Dreibholz
----------------------------------------------------
Version:               Nov  9 2005, 20:04:18
Local Addresses:       192.168.0.4:0
Remote Address:        192.168.0.5:69
 
Connecting... done.
 
Local File:  r91044.tar.gz
Remote File: r91044.tar.gz
 
r91044.tar.gz -> .................
 
    why the local address is 192.168.0.4? Is my setting something woring?
 
following is my setting:
[root@client cppsocket_programs]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth2
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth2
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
and I use following command to use two IPs
==========
 ip rule add pref 10 from 192.168.0.4 table 10
ip route replace default via 192.168.0.1 dev eth0 table 10
ip rule add pref 20 from 192.168.0.6 table 20
ip route replace default via 192.168.0.1 dev eth1 table 20
ip route flush cache
==========
 
[root@client cppsocket_programs]# ip route list table 0
default via 192.168.0.1 dev eth0  table 10
default via 192.168.0.1 dev eth1  table 20
192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.4
192.168.0.0/24 dev eth1  proto kernel  scope link  src 192.168.0.6
192.168.0.0/24 dev eth2  proto kernel  scope link  src 192.168.0.8
169.254.0.0/16 dev eth2  scope link
default via 192.168.0.1 dev eth0
local 192.168.0.8 dev eth2  table local  proto kernel  scope host  src 192.168.0.8
broadcast 192.168.0.255 dev eth0  table local  proto kernel  scope link  src 192.168.0.4
broadcast 192.168.0.255 dev eth1  table local  proto kernel  scope link  src 192.168.0.6
broadcast 192.168.0.255 dev eth2  table local  proto kernel  scope link  src 192.168.0.8
broadcast 127.255.255.255 dev lo  table local  proto kernel  scope link  src 127.0.0.1
broadcast 192.168.0.0 dev eth0  table local  proto kernel  scope link  src 192.168.0.4
broadcast 192.168.0.0 dev eth1  table local  proto kernel  scope link  src 192.168.0.6
broadcast 192.168.0.0 dev eth2  table local  proto kernel  scope link  src 192.168.0.8
local 192.168.0.4 dev eth0  table local  proto kernel  scope host  src 192.168.0.4
broadcast 127.0.0.0 dev lo  table local  proto kernel  scope link  src 127.0.0.1
local 192.168.0.6 dev eth1  table local  proto kernel  scope host  src 192.168.0.6
local 127.0.0.1 dev lo  table local  proto kernel  scope host  src 127.0.0.1
local 127.0.0.0/8 dev lo  table local  proto kernel  scope host  src 127.0.0.1
local ::1 via :: dev lo  proto none  metric 0  mtu 16436 advmss 16376 metric 10 4294967295
local fe80::200:1cff:fedd:6498 via :: dev lo  proto none  metric 0  mtu 16436 advmss 16376 metric 10 4294967295
local fe80::200:1cff:fedd:935e via :: dev lo  proto none  metric 0  mtu 16436 advmss 16376 metric 10 4294967295
local fe80::250:bfff:fe2b:67de via :: dev lo  proto none  metric 0  mtu 16436 advmss 16376 metric 10 4294967295
fe80::/64 dev eth0  metric 256  mtu 1500 advmss 1440 metric 10 4294967295
fe80::/64 dev eth1  metric 256  mtu 1500 advmss 1440 metric 10 4294967295
fe80::/64 dev eth2  metric 256  mtu 1500 advmss 1440 metric 10 4294967295
ff00::/8 dev eth0  metric 256  mtu 1500 advmss 1440 metric 10 4294967295
ff00::/8 dev eth1  metric 256  mtu 1500 advmss 1440 metric 10 4294967295
ff00::/8 dev eth2  metric 256  mtu 1500 advmss 1440 metric 10 4294967295
unreachable default dev lo  proto none  metric -1  error -101 metric 10 255
Thanks for your help!
 
 



Archive powered by MHonArc 2.6.19+.

Top of page