发新话题
打印

[原创] Patch for MultiCast in Olive with VMware(版本重要变更,支持逻辑路由器!)

本主题由 wanzxj 于 2008-5-7 01:31 加入精华
Netemu@gmail.com
QQ:247656
Netemu提问技巧
http://netemu.cn/bbs/thread-8031-1-1.html

TOP

新补丁支持逻辑路由,第一个顶上,沙发~~

TOP

呵呵,这个板块终于飘红了,不然大家光顾的都少了,感谢阿言呀!!!!!

TOP

test test
本帖最近评分记录
  • admin 人品 -2 恶意灌水 2008-7-13 09:36
  • admin 白银 -2 恶意灌水 2008-7-13 09:36

TOP

出现错误,没法打入这个patch,请问是怎么回事?

^@root@% shutdown
usage: shutdown [-ACRSfhknr] shutdowntime [ message ]
^@root@% shutdown now
Shutdown NOW!
shutdown: [pid 4527]
^@root@%                                                                                
*** FINAL System shutdown message from root@ ***                             
System going down IMMEDIATELY                                                  
                                                                              
                                                                              
May 21 18:31:40 init: event-processing (PID 4242System watchdog timer disabled
Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh: pingsong1
^@NOTE: to go to multi-user operation, exit the single-user shell (with ^D)
May 21 18:33:55 init: can't exec /packages/mnt/jbasepingsong1 for single user: No such file or directory
#
^@# cd /boot
^@# cd modules
^@# ls
^@syscall11.ko
# ls -l
^@total 16
-rwxrwxrwx  1 root  wheel  7709 May  1  2008 syscall11.ko
#
# kldload ./syscall11.ko
^@kldload: can't load ./syscall11.ko: Exec format error
# mv syscall11.ko syscall.ko
^@#
^@#
^@# kldload syscall
^@kldload: can't load syscall: Exec format error
#
^@#
^@# ls -l
^@total 16
-rwxrwxrwx  1 root  wheel  7709 May  1  2008 syscall.ko
我看到有人贴出来的记录, 我这个是不是文件大小有问题?可是我确实是从这个帖子附件下载的啊?
谢谢了!

TOP

新问题

1. kldload好像失败。
2. ctrl+d得两次才能生效
3. 没法进入到多用户?

# kldload syscall11.ko
^@syscall loaded at 210
max em unit is 8
Error At unit 5 Get Em softc
Error At unit 6 Get Em softc
Error At unit 7 Get Em softc
#
^@#
^@# ^D
^@# kldstats
^@kldstats: not found
# kldstat
^@Id Refs Address    Size     Name
1    2 0xc0400000 aa5438   kernel
2    1 0xc2215000 3000     syscall11.ko
# ^D
^@# ^D
^@# ^D
Verified manifest signed by PackageProduction_8_5_0
Verified jboot signed by PackageProduction_8_5_0
Mounted jkernel package on /dev/md1...
Verified manifest signed by PackageProduction_8_5_0
Mounted jpfe package on /dev/md2...
Mounted jdocs package on /dev/md3...
Verified manifest signed by PackageProduction_8_5_0
Mounted jroute package on /dev/md4...
Verified manifest signed by PackageProduction_8_5_0
Mounted jcrypto package on /dev/md5...
Verified manifest signed by PackageProduction_8_5_0
Mounted jpfe-common package on /dev/md6...
swapon: adding /dev/ad0s1b as swap device
Skipping disk checks ...
WARNING: R/W mount of / denied.  Filesystem is not clean - run fsck
mount: /dev/ad0s1a: Operation not permitted
root filesystem mount failed, startup aborted
May 22 23:28:19 WARNING: system watchdog timer still running,
         use '/sbin/watchdog -off' to disable
Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh:
^@NOTE: to go to multi-user operation, exit the single-user shell (with ^D)
# ^D
^@# ^D
Verified manifest signed by PackageProduction_8_5_0
Verified manifest signed by PackageProduction_8_5_0
Verified manifest signed by PackageProduction_8_5_0
Verified manifest signed by PackageProduction_8_5_0
Verified manifest signed by PackageProduction_8_5_0
Verified jboot signed by PackageProduction_8_5_0
/packages/jkernel-8.5R1.14 already mounted
/packages/jpfe-M40-8.5R1.14 already mounted
/packages/jdocs-8.5R1.14 already mounted
/packages/jroute-8.5R1.14 already mounted
/packages/jcrypto-8.5R1.14 already mounted
/packages/jpfe-common-8.5R1.14 already mounted
WARNING:
WARNING: no swap space availableW, running entireAly out of RAM
RWARNING:
NING: R/W mount of / denied.  Filesystem is not clean - run fsck
Skipping disk checks ...
mount: /dev/ad0s1a: Operation not permitted
root filesystem mount failed, startup aborted
May 22 23:28:58 WARNING: system watchdog timer still running,
         use '/sbin/watchdog -off' to disable
Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh:
^@NOTE: to go to multi-user operation, exit the single-user shell (with ^D)
# ^D

TOP

TOP

引用:
原帖由 rwayan 于 2008-1-14 13:22 发表
作者:阿言

忘了说了,这个是基于JunOS 8.5R1.14做的。JunOS8.5是基于FreeBSD6.1的 ,老的版本是基于FreeBSD4.10的,可能不行。
请大家自行安装JunOS8.5。

使用方法
1、将补丁下载到Olive中的/boot/modules目 ...
hi,
can you let us with the pim dense and pim sparse multicast addresses too...

thanks
uddika

TOP

难度很大
引用:
原帖由 uddika 于 2008-6-5 00:39 发表


hi,
can you let us with the pim dense and pim sparse multicast addresses too...

thanks
uddika

TOP

我自己写了个SecureCRT的脚本,基于Jscript的,实现半自动化:

(1)把这个文件放到C:\temp目录下,文件名file.txt
kldload syscall11
root                <---注:这是用户名root
Root123         <---注:这是root的密码
sysctl dev.em.0.fix_em_multicast=1
sysctl dev.em.1.fix_em_multicast=1
sysctl dev.em.2.fix_em_multicast=1
sysctl dev.em.3.fix_em_multicast=1

(2)把这个文件放到C:\temp目录下,文件名auto.js
# $language = "JScript"
# $interface = "1.0"

function main()
{
  var fso, f, r;  
  var ForReading = 1, ForWriting = 2;
  fso = new ActiveXObject("Scripting.FileSystemObject");
  f = fso.OpenTextFile("c:\\temp\\file.txt", ForReading);
  crt.Screen.Synchronous = true;
  var str;

  str = f.Readline();str += "\015";crt.Screen.Send( str );
  crt.screen.Send("\004")
  crt.Screen.WaitForString( "login:" );
  str = f.Readline();str += "\015";crt.Screen.Send( str );
  crt.Screen.WaitForString( "Password:" );
  str = f.Readline();str += "\015";crt.Screen.Send( str );
  crt.Screen.WaitForString( "root@olive%");        //注:olive是hostname

  while ( f.AtEndOfStream != true )
  {
    str = f.Readline();
    str += "\015" ;
    crt.Screen.Send( str );
    crt.Screen.WaitForString( "root@olive%" );
   }
   str = "cli";str += "\015";crt.Screen.Send( str );

  f.close();
};

(3)使用方法:VM开机马上按空格键, 出现boot:时,打入"0:ad(0,c)/boot/loader -s"。Console出现"RETURN for /bin/sh:"时,按回车,然后在SecureCRT菜单选Script->Run->auto.js

再次感谢阿言,you've done a great job !!

[ 本帖最后由 kingkai 于 2008-7-1 08:25 编辑 ]
本帖最近评分记录
  • admin 人品 +10 精品文章 2008-7-13 09:38
  • admin 白银 +10 精品文章 2008-7-13 09:38

TOP

引用:
原帖由 rwayan 于 2008-6-6 17:20 发表
难度很大
呵呵 这个朋友看不懂中文滴
www.netemu.cn
致力于网络模拟器的应用
E-mail:netemu@gmail.com
Msn:dofu@live.com

TOP

jinstall-8.5R1.14-domestic.tgz needed

can you kindly provide jinstall-8.5R1.14-domestic  file?

TOP

引用:
原帖由 abcindian 于 2008-8-13 04:13 发表
can you kindly provide jinstall-8.5R1.14-domestic  file?
http://junipers.cn/juniper/soft/junosy/jinstall-8.5R1.14-domestic-signed.tgz

http://junipers.cn/Soft/
www.netemu.cn
致力于网络模拟器的应用
E-mail:netemu@gmail.com
Msn:dofu@live.com

TOP

软件好难下载呀

TOP

very good !

TOP

不会弄啊,不过还是要学学!!!

TOP

强烈支持!

TOP

支持楼主..............................

TOP

Multicast Problem

Hi,
Im using FreeBSD 4.11 with Junos 8.5R1.14 and until now I didn’t put multicast working. The first problem is that i dont have cd /boot/modules. I have cd /boot and cd /modules. So I put syscall em both directories and type kldload ./syscall.ko.

# # cd /boot
cd /boot
# # ls
ls
boot            defaults        loader.4th      loader.rc       support.4th
boot0           kgzldr.o        loader.conf     mbr             syscall.ko
cdboot  

# # cd /modules
cd /modules
# # ls
ls
bcmsdk.ko       ipsec.ko        microcode.ko    pmap_helper.ko  syscall.ko

When I type kldload ./syscall.ko I receive de message below

# # kldload ./syscall.ko
kldload ./syscall.ko
link_elf_lookup_symbol: missing symbol hash table
link_elf_lookup_symbol: missing symbol hash table
link_elf_lookup_symbol: missing symbol hash table
link_elf_lookup_symbol: missing symbol hash table

Should I receive the messages above?

The second problem is enter in multi user mode. When I press ctrl+D i receive the messages below.

# # ^D

D
Verified manifest signed by PackageProduction_8_5_0
Verified manifest signed by PackageProduction_8_5_0
Verified manifest signed by PackageProduction_8_5_0
Verified manifest signed by PackageProduction_8_5_0
Verified manifest signed by PackageProduction_8_5_0

Verified jboot signed by PackageProduction_8_5_0
/packages/jkernel-8.5R1.14 already mounted
/packages/jpfe-M40-8.5R1.14 already mounted
/packages/jdocs-8.5R1.14 already mounted
/packages/jroute-8.5R1.14 already mounted
/packages/jcrypto-8.5R1.14 already mounted
/packages/jpfe-common-8.5R1.14 already mounted
WARNING:
WARNING: no swap space available, running entirely out of RAM
WARNING:
Skipping disk checks ...
WARNING: R/W mount of / denied.  Filesystem is not clean - run fsck
mount: /dev/ad0s1a: Operation not permitted
root filesystem mount failed, startup aborted
Nov 30 17:00:55 WARNING: system watchdog timer still running,
         use '/sbin/watchdog -off' to disable
Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh:

Is there another way to enter in multi user mode?

Tks for your help and patience.

TOP

谢谢了  先整下来在说

TOP

发新话题