Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1508561
  • 博文数量: 416
  • 博客积分: 10061
  • 博客等级: 上将
  • 技术积分: 3287
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-05 11:12
个人简介

技术在于专研

文章分类

全部博文(416)

文章存档

2021年(3)

2015年(34)

2013年(2)

2012年(1)

2011年(2)

2010年(5)

2007年(344)

2006年(25)

分类: 系统运维

2007-03-26 16:46:45

ronsun 兄的文章

近来一些网友经常讨论dy的分布式应用,尤其是一些刚入门的不喜欢看文档,一上来就问这问那。我呢,就把分布式应用dy简单说一下。
如果你的机器有足够的内在,建议你还是不用分布式的为好,毕竟,这又多了一道通讯过程,最起码查错的时候很不方便。
如果确实需要,请看下面。
一、首先配置好net文件,在net文件中,基本内容如下:
  [localhost]
    port = 7200
    udp = 10000
    ……
    网络设备配置
    ……
[其它机器的IP]
    port = 7200
    udp = 10000
    ……
    网络设备配置
    ……
二、在另外一台机器上运行dynamips,只需要启动起来就可以了,当然,要保证运行的net文件中所指定的IOS是此机器上确实存在,且路径正确。
三、在本机上运行dynamips,然后运行net文件。list一下看看,就会多出类型下面内容:
Reading configuration file...

Network successfully started
Dynagen management console for Dynamips
=> list
Name       Type       State      Server          Console
SW1        3640       stopped    localhost:7200  2000
SW2        3640       stopped    localhost:7200  2001
SW3        3640       stopped    localhost:7200  2002
A          3640       stopped    localhost:7200  2003
B          3640       stopped    192.168.49.65:7200 2004
C          3640       stopped    192.168.49.65:7200 2005
PC1        3620       stopped    192.168.49.65:7200 2006
PC2        3620       stopped    192.168.49.65:7200 2007
PC3        3620       stopped    192.168.49.65:7200 2008
PC4        3620       stopped    192.168.49.65:7200 2009
PC5        3620       stopped    192.168.49.65:7200 2010
=> list
Name       Type       State      Server          Console
SW1        3640       running    localhost:7200  2000
SW2        3640       running    localhost:7200  2001
SW3        3640       running    localhost:7200  2002
A          3640       running    localhost:7200  2003
B          3640       running    192.168.49.65:7200 2004
C          3640       running    192.168.49.65:7200 2005
PC1        3620       running    192.168.49.65:7200 2006
PC2        3620       running    192.168.49.65:7200 2007
PC3        3620       running    192.168.49.65:7200 2008
PC4        3620       running    192.168.49.65:7200 2009
PC5        3620       running    192.168.49.65:7200 2010
其中红色部分为在另外一台机器上运行的设备。
附件是实验拓扑图及net文件。
补充,拓扑图中的接口编号和net文件中的有出入,请大家自己调整吧,时间太晚了,懒得弄了。

  
文件: 分布式.rar
大小: 0KB
下载: 下载

 
阅读(2098) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~