Chinaunix首页 | 论坛 | 博客
  • 博客访问: 253217
  • 博文数量: 90
  • 博客积分: 2775
  • 博客等级: 少校
  • 技术积分: 645
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-13 17:04
文章分类

全部博文(90)

文章存档

2015年(30)

2013年(4)

2012年(4)

2011年(12)

2010年(4)

2009年(36)

我的朋友

分类: LINUX

2011-04-04 16:38:20

ok,i already change two of my test computer's linux system to fedora 14.

1.firstly, i am sure that ttyS0(com1) is started.

root      1331  0.0  0.0   2000   452 ttyS0    Ss+  00:09   0:00 /sbin/mingetty /dev/ttyS0

2.i do the following steps on TN side.

2.1.open one terminal to execute
[root@steven steven]# cu -l /dev/ttyS0
Connected.

2.2. open the second terminal to execute to make config and i get the following output:

[root@steven sctp-1.0.0]# make config
make[1]: Entering directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/config'
Configuring the Testing...

==== Information about the Tester Node (TN) ====
* Remote Controal Configuration
  - Serial Device Name (RemoteDevice) : [/dev/ttyS0]
* Network Device Interface to be used
  - First interface name of TN (interface00) : [eth0]
  - Second interface name of TN (interface01) : [eth1]
==== Information about the Node Under Test (NUT) ====
* System Type
  - Operation System Type of NUT (System) : [linux-v6]
* System information
  - Operation System Name of NUT (TargetName) : [fedora]
* Host Name
  - Host Name of NUT (HostName) : [james]
* User and password to login to NUT
  - Super User Name (User) : [root]
  - User Password (Password) : [123456]
* Network Device Interface to be used
  - First interface name of NUT (interface10) : [eth0]
  - Second interface name of NUT (interface11) : [eth1]

==== Start auto configue for test, please wait ====
* Configure Tester Node (TN)
  - Configure IP Address of eth0
  - Restart Inteface eth0
Device state: 3 (disconnected)
Active connection state: activating
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/8
state: activated
Connection activated
  - Configure IP Address of eth1
  - Restart Inteface eth1
Device state: 3 (disconnected)
Active connection state: activating
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/9
state: activated
Connection activated
  - Write Configure Information about the Tester Node (TN)

* Configure Node Under Test (NUT)
  - Configure IP Address of eth0
``cu -l /dev/ttyS0'' was killed with SIGCHLD.
Cannot open No such file or directory
make[1]: *** [config] Error 2
make[1]: Leaving directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/config'
make: *** [config] Error 2

after that, the content of  ifcfg-eth0 and ifcfg-eth1 is right.
[root@steven sctp-1.0.0]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
NETWORK=192.168.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=192.168.0.255
ONBOOT=yes
NAME=eth0
IPADDR=192.168.0.19
BORADCAST=192.168.0.255
NETMASK=255.255.255.0
IPV6INIT=yes
IPV6ADDR=3ffe:501:ffff:100:0221:70ff:fe54:9b12/64

[root@steven sctp-1.0.0]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
NETWORK=10.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=10.0.0.255
ONBOOT=yes
NAME=eth1
IPADDR=192.168.1.19
BORADCAST=192.168.1.255
NETMASK=255.255.255.0
IPV6INIT=yes
IPV6ADDR=3ffe:501:ffff:101:020e:0cff:fe01:251f/64

but seems that make config can't configure the NUT side's ip address.
i am not sure that whether serial port connection have some problems?
because cu -l /dev/ttyS0 tell me that connected, it confuse me a lot.


3.
3.1.so i am trying to configure ip address ip address manually on both sides(TN and NUT).

this TN side:

[root@steven network-scripts]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:21:70:54:9B:12  
          inet addr:192.168.1.19  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::221:70ff:fe54:9b12/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2179 errors:0 dropped:0 overruns:0 frame:0
          TX packets:161 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:205317 (200.5 KiB)  TX bytes:39591 (38.6 KiB)
          Interrupt:21 Memory:fe9e0000-fea00000

eth1      Link encap:Ethernet  HWaddr 00:0E:0C:01:25:1F  
          inet addr:192.168.1.19  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20e:cff:fe01:251f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:316 (316.0 b)  TX bytes:16778 (16.3 KiB)

it is very strange that i assign 192.168.0.19 to eth0, but ifconfig tell me that it's ip address is 192.168.1.19. seems that i can't two ip address with same subnet to two interface in one computer. I think this is because my computer is connected by two cable, not through switch.

the NUT side:

eth0      Link encap:Ethernet  HWaddr 00:D0:B7:1B:16:AC 
          inet addr:192.168.0.20  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::2d0:b7ff:fe1b:16ac/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3708 (3.6 KiB)  TX bytes:4597 (4.4 KiB)

eth1      Link encap:Ethernet  HWaddr 00:21:70:54:9B:B6 
          inet addr:192.168.0.20  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::221:70ff:fe54:9bb6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3558 (3.4 KiB)  TX bytes:4701 (4.5 KiB)
          Interrupt:21 Memory:fe9e0000-fea00000

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:192 errors:0 dropped:0 overruns:0 frame:0
          TX packets:192 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15264 (14.9 KiB)  TX bytes:15264 (14.9 KiB)




3.2.
   after configuring both sides's ip address, i try to execute make clean v4test, i get the following output:

make[1]: Entering directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/init'
../config/chgversion.pl IPv4
Cannot open No such file or directory
make[1]: *** [changever4] Error 2
make[1]: Leaving directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/init'
===> term
make[1]: Entering directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/term'
../config/chgversion.pl IPv4
Cannot open No such file or directory
make[1]: *** [changever4] Error 2
make[1]: Leaving directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/term'
===> fault
make[1]: Entering directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/fault'
../config/chgversion.pl IPv4
Cannot open No such file or directory
make[1]: *** [changever4] Error 2
make[1]: Leaving directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/fault'
===> error
make[1]: Entering directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/error'
../config/chgversion.pl IPv4
Cannot open No such file or directory
make[1]: *** [changever4] Error 2
make[1]: Leaving directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/error'
===> bund
make[1]: Entering directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/bund'
../config/chgversion.pl IPv4
Cannot open No such file or directory
make[1]: *** [changever4] Error 2
make[1]: Leaving directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/bund'
===> data
make[1]: Entering directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/data'
../config/chgversion.pl IPv4
Cannot open No such file or directory
make[1]: *** [changever4] Error 2
make[1]: Leaving directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/data'
===> timer
make[1]: Entering directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/timer'
../config/chgversion.pl IPv4
Cannot open No such file or directory
make[1]: *** [changever4] Error 2
make[1]: Leaving directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/timer'
===> congest
make[1]: Entering directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/congest'
../config/chgversion.pl IPv4
Cannot open No such file or directory
make[1]: *** [changever4] Error 2
make[1]: Leaving directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/congest'
===> pmtu
make[1]: Entering directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/pmtu'
../config/chgversion.pl IPv4
Cannot open No such file or directory
make[1]: *** [changever4] Error 2
make[1]: Leaving directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/pmtu'
===> ecn
make[1]: Entering directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/ecn'
../config/chgversion.pl IPv4
Cannot open No such file or directory
make[1]: *** [changever4] Error 2
make[1]: Leaving directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/ecn'
===> packet
make[1]: Entering directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/packet'
../config/chgversion.pl IPv4
Cannot open No such file or directory
make[1]: *** [changever4] Error 2
make[1]: Leaving directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/packet'
===> auth
make[1]: Entering directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/auth'
../config/chgversion.pl IPv4
Cannot open No such file or directory
make[1]: *** [changever4] Error 2
make[1]: Leaving directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/auth'
===> miss
make[1]: Entering directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/miss'
../config/chgversion.pl IPv4
Cannot open No such file or directory
make[1]: *** [changever4] Error 2
make[1]: Leaving directory `/home/steven/networktest/Expect-1.20/sctp-1.0.0/miss'
make: *** [v4test] Error 2

so please give me some suggestion how to solve those problems, and move on? thanks.




阅读(901) | 评论(0) | 转发(0) |
0

上一篇:双绞线制作

下一篇:new problems

给主人留下些什么吧!~~