﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>PHP博客-青蛙不是癞蛤蟆-随笔分类-Routing Protocol</title><link>http://www.phpweblog.net/billow/category/75.html</link><description /><language>zh-cn</language><lastBuildDate>Wed, 28 Feb 2007 15:36:06 GMT</lastBuildDate><pubDate>Wed, 28 Feb 2007 15:36:06 GMT</pubDate><ttl>60</ttl><item><title>7200</title><link>http://www.phpweblog.net/billow/archive/2006/08/17/339.html</link><dc:creator>学习资料库</dc:creator><author>学习资料库</author><pubDate>Thu, 17 Aug 2006 02:04:00 GMT</pubDate><guid>http://www.phpweblog.net/billow/archive/2006/08/17/339.html</guid><wfw:comment>http://www.phpweblog.net/billow/comments/339.html</wfw:comment><comments>http://www.phpweblog.net/billow/archive/2006/08/17/339.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.phpweblog.net/billow/comments/commentRss/339.html</wfw:commentRss><trackback:ping>http://www.phpweblog.net/billow/services/trackbacks/339.html</trackback:ping><description><![CDATA[
		<br />============CCIE.net============<br /><br /># A CCIE lab <br /><br />autostart = true<br /><br />[localhost]<br /><br /><br />    [[7200]]<br />    image = /root/c7200/kaka.bin<br />    npe = npe-400<br />    ram = 160<br />        <br />    [[ROUTER 1R1]]<br />    s1/0 = F1 1<br />    s1/1 = F2 1<br />    f2/0 = S1 1<br />    f0/0 = LAN 2<br /><br />    [[ROUTER 1R2]]<br />    s1/0 = F1 2<br />    s1/1 = F2 2<br />    f2/0 = S1 2 <br />    f0/0 = LAN 2<br /><br />    [[ROUTER 1R3]]<br />    s1/0 = F1 3<br />    s1/1 = F2 3<br />    f2/0 = S1 3<br />    f0/0 = LAN 2<br />    a3/0 = A1 3<br />    <br />    [[ROUTER 1R4]]<br />    s1/0 = F1 4<br />    s1/1 = F2 4<br />    f2/0 = S1 4<br />    f0/0 = LAN 2<br />   <br />    [[ROUTER 1R5]]<br />    s1/0 = F1 5<br />    s1/1 = F2 5<br />    f2/0 = S1 5<br />    f0/0 = LAN 2<br /> <br />    [[ROUTER 1R6]]<br />    s1/0 = F1 6<br />    s1/1 = F2 6<br />    f2/0 = S1 6<br />    f0/0 = LAN 2<br />    a3/0 = A1 6<br />    <br />    [[ROUTER BB1]]<br />    s1/0 = F1 7<br />    s1/1 = F2 7<br />    f2/0 = S1 7<br />    f0/0 = LAN 2<br />    a3/0 = A1 7 <br />        <br />    [[FRSW F1]]<br />    1:102 = 2:201<br />    1:103 = 3:301<br />    1:104 = 4:401<br />    1:105 = 5:501<br />    1:106 = 6:601<br />    2:203 = 3:302<br />    2:204 = 4:402<br />    2:205 = 5:502<br />    2:206 = 6:602<br />    3:304 = 4:403<br />    3:305 = 5:503<br />    3:306 = 6:603<br />    4:405 = 5:504<br />    4:406 = 6:604<br />    5:506 = 6:605<br /><br />    [[FRSW F2]]<br />1:102 = 2:201<br />    1:103 = 3:301<br />    1:104 = 4:401<br />    1:105 = 5:501<br />    1:106 = 6:601<br />    2:203 = 3:302<br />    2:204 = 4:402<br />    2:205 = 5:502<br />    2:206 = 6:602<br />    3:304 = 4:403<br />    3:305 = 5:503<br />    3:306 = 6:603<br />    4:405 = 5:504<br />    4:406 = 6:604<br />    5:506 = 6:605<br /><br />        <br />    [[ATMSW A1]]<br />    3:30:103 = 7:37:137 # port 3  vpi 30 vci 103 to port 7 vpi 37 vci 137<br />    6:60:106 = 7:67:167 <br />    <br />    [[FRSW S1]]<br />        1 = access 1<br />        2 = access 1<br />        3 = access 1<br />        4 = access 1<br />        5 = access 1    <br />        6 = access 1<br />        7 = access 1<br />        8 = dot1q 1 NIO_gen_eth:eth0<br /><br /><br /><br />详细配置参数<br /># All Dynagen configuration file options<br /><br /># Should all devices be automatically started? true or false, defaults to true. Can be overridden on a per device basis<br />autostart = true<br /><br /># Each DYNAMIPS section sepecifies a dynamips server and the devices it hosts<br />[bender]        # The hostname or IP address of a Dynamips server<br />port = 7200     # TCP port. Optional, defaults to 7200<br />console = 2000  # Base console port. New instances that do not specify a console port will default to this + the intance number. Defaults to 2000<br />workingdir = /home/labs/test lab 1  # Set the directory where Dynamips will store all the device files for this network. This is the fully qualified path relative to the system running dynamips. <br />udp = 10000     # Set the base UDP port for NIOs<br />    <br />    # The 7200 section specifies defaults for all 7200 routers on this Dynamips server. Everything in this<br />    # section is optional, and defaults to whatever the default is in Dynamips<br />    [[7200]]<br />    image = /opt/7200-images/c7200-ik9o3s-mz.122-15.T17.image   # Full path to 7200 IOS image file. This is the fully qualified path relative to the system running dynamips. <br />    ram = 128        # Amount of Virtual RAM to allocate to each router instance.<br />    rom = 4          # Size of ROM<br />    nvram = 256      # Size of NVRAM<br />    disk0 = 64       # Set size of PCMCIA ATA disk0<br />    disk1 = 64       # Set size of PCMCIA ATA disk1<br />    cnfg = None      # Configuration file to import. This is the fully qualified path relative to the system running dynamips. <br />    confreg = 0x2102 # Set the configuration register <br />    clock = 2        # Clock divisor (should no longer been needed as of dynamips 0.2.5 RC1)<br />    npe = npe-200    # NPE type.("npe-100", "npe-150", "npe-175", "npe-200", "npe-225", "npe-300" or "npe-400")<br />    midplane = std   # Midplane, either "std" or "vxr"<br />    mmap = true     # Set to false to use real memory rather than a disk file for router vitural memory. Conserves RAM at the expense of performance. Defaults to True<br />    idlepc = 0x60719b98 # Set the Idle PC value<br />    exec_area = 64   # Set the exec area size<br />    <br />    # Each ROUTER section defines a router and it's connections. All keywords are optional<br />    [[ROUTER R1]]   # Must supply a unique name<br />    model = 7200    # Defaults to 7200<br />    console = 2000      # Console port. Defaults to the server's base console port (specified in the server section) + instance number<br />    aux = 3000      # Aux port, defaults to none<br />    # All options from the 7200 section are options here as well, including "autostart"<br />    <br />    # Manual PA specification. This is optional, and if not done dynagen will make sane decisions based on the interface specifications.<br />    slot0 = PA-C7200-IO-FE  # Ethernet in slot 0<br />    slot1 = PA-FE-TX        # Ethernet in slot 1<br />    slot3 = PA-4T           # PA-4T+ in slot 2<br />    slot6 = PA-4E        # PA-4E in slot 6<br />    #slotx = PA-POS-OC3        # PA-POS-OC3 in slot x<br />    <br />    # Interface specification. Can take the following forms:<br />    f1/0 = R2 f1/0      # Connect to f1/0 on device R2<br />    f2/0 = LAN 1        # Connect to bridged LAN 1<br />    s3/0 = R2 s3/0      # Connect to s3/0 on device R2<br />    s3/1 = F1 1         # Connect to port 1 on device "F1" (a frame relay switch)<br />    s3/2 = F2 1<br />    a4/0 = A1 1         # Connect to port 1 on device "A1" (an ATM switch)<br />    f5/0 = NIO_linux_eth:eth0   # manually specify an NIO<br />    <br />    [[ROUTER R2]]<br />    # Interface f1/0 will automatically be created because the interface was referenced in R1's config<br />    f2/0 = LAN 1        # Connect to bridged LAN 1<br />    s4/0 = F1 2<br />    s4/1 = F2 2<br />    s4/2 = F1 3<br />    a5/0 = A1 2<br />    <br />    [[router R3]]       # Case is not significant<br />    # Examples of other manually specified NIOs<br />    f1/0 = NIO_gen_eth:\Device\NPF_{B00A38DD-F10B-43B4-99F4-B4A078484487}<br />    f2/0 = NIO_udp:10000:172.0.0.1:10001<br />    f3/0 = NIO_tap:tap0<br />    f4/0 = NIO_unix:/tmp/local:/tmp/remote<br />    f5/0 = NIO_vde:foo:bar<br />    <br />    # Each FRSW section defines a frame relay switch. All keywords are optional<br />    [[FRSW F1]]         # Must supply a unique name<br />    1:102 = 2:201      # Tell the FRSW to switch from port 1, DLCI 102 to port 2, DLCI 201.<br />    1:103 = 3:301      # and from port 1, DLCI 103 to port 3, DLCI 301<br />    <br />    [[FRSW F2]]<br />    1:102 = 2:201<br />    <br />    # Define an ATM Switch<br />    [[ATMSW A1]]<br />    1:10 = 2:20         # Port 1, vpi 10 to port 2, vpi 20<br />    #1:10:200 = 2:20:100 # Port 1, vpi 10, vci 200 to port 2, vpi 20, vci 100<br />    <br />    # Define an Ethernet Switch<br />    [[ETHSW S1]]<br />    1 = access 1        # Port 1 is an access port in vlan 1<br />    2 = access 20       # Port 2 is an access port in vlan 20<br />    3 = dot1q 1         # Port 3 is a trunk port (dot1q encapsulation) with naitive vlan 1<br />    4 = dot1q 1 NIO_gen_eth:eth0   # Port 4 is trunk port (naitive vlan 1) that is connected to the host eth0 via the gen_eth NIO<br />    #4 = dot1q 1 NIO_gen_eth:\Device\NPF_{B00A38DD-F10B-43B4-99F4-B4A078484487} # Same as above, Windows example<br /><br /><br />最后就是启动Dynagen<br /><br />dynagen  ccie.net<br /><br />就可以run了<br /><br /><br />在里面有些参数<br /><br /><br />Documented commands (type help &lt;topic&gt;):<br />========================================<br />clear  help  list  reload  shell  start  suspend  ver<br />exit   hist  py    resume  show   stop   telnet<br /><br />=&gt;<br /><br /><br />1.telnet 可以telnet到每个路由<br />2.suspend 挂起R1<br />3.list<br />=&gt; list<br />Name       Type       State      Server          Console<br />R1         c7200      suspended  sjtucs          2000<br />R2         c7200      running    sjtucs          2001<br />R3         c7200      running    sjtucs          2002<br />F1         FRSW       n/a        sjtucs          n/a<br />=&gt;<br /><br /><br />4. clear show  mac<br />5. hist 最近10条命令<br />6.stop start 用于重启路由<br /><br /><br />加入WIN平台配置，和集群配置方法<br /><br />下载dynampis和dynagen的win安装包<br /><br />1。安装后桌面会出现 Dynamips server.bat 运行<br />2。直接双击win版本的ccie.net就可以使用了<br /><br />win版本的ccie.net 如下<br /># A CCIE lab <br /><br />autostart = true<br /><br />[localhost]<br /><br /><br />    [[7200]]<br />    image = d:\c7200\kaka.bin<br />    npe = npe-400<br />    ram = 160<br />        <br />    [[ROUTER 1R1]]<br />    s1/0 = F1 1<br />    s1/1 = F2 1<br />    f2/0 = S1 1<br />    f0/0 = LAN 2<br /><br />    [[ROUTER 1R2]]<br />    s1/0 = F1 2<br />    s1/1 = F2 2<br />    f2/0 = S1 2 <br />    f0/0 = LAN 2<br /><br />    [[ROUTER 1R3]]<br />    s1/0 = F1 3<br />    s1/1 = F2 3<br />    f2/0 = S1 3<br />    f0/0 = LAN 2<br />    a3/0 = A1 3<br />    <br />    [[ROUTER 1R4]]<br />    s1/0 = F1 4<br />    s1/1 = F2 4<br />    f2/0 = S1 4<br />    f0/0 = LAN 2<br />   <br />    [[ROUTER 1R5]]<br />    s1/0 = F1 5<br />    s1/1 = F2 5<br />    f2/0 = S1 5<br />    f0/0 = LAN 2<br /> <br />    [[ROUTER 1R6]]<br />    s1/0 = F1 6<br />    s1/1 = F2 6<br />    f2/0 = S1 6<br />    f0/0 = LAN 2<br />    a3/0 = A1 6<br />    <br />    [[ROUTER BB1]]<br />    s1/0 = F1 7<br />    s1/1 = F2 7<br />    f2/0 = S1 7<br />    f0/0 = LAN 2<br />    a3/0 = A1 7 <br />        <br />    [[FRSW F1]]<br />    1:102 = 2:201<br />    1:103 = 3:301<br />    1:104 = 4:401<br />    1:105 = 5:501<br />    1:106 = 6:601<br />    2:203 = 3:302<br />        2:204 = 4:402<br />        2:205 = 5:502<br />        2:206 = 6:602<br />        3:304 = 4:403<br />        3:305 = 5:503<br />        3:306 = 6:603<br />        4:405 = 5:504<br />        4:406 = 6:604<br />        5:506 = 6:605<br /><br />    [[FRSW F2]]<br />    1:102 = 2:201<br />    1:103 = 3:301<br />    1:104 = 4:401<br />    1:105 = 5:501<br />    1:106 = 6:601<br />    2:203 = 3:302<br />    2:204 = 4:402<br />    2:205 = 5:502<br />        2:206 = 6:602<br />        3:304 = 4:403<br />        3:305 = 5:503<br />        3:306 = 6:603<br />        4:405 = 5:504<br />        4:406 = 6:604<br />        5:506 = 6:605<br />        <br />    [[ATMSW A1]]<br />    3:30:103 = 7:37:137 # port 3  vpi 30 vci 103 to port 7 vpi 37 vci 137<br />    6:60:106 = 7:67:167 <br />    <br />    [[ETHSW S1]]<br />        1 = access 1<br />        2 = access 1<br />        3 = access 1<br />        4 = access 1<br />        5 = access 1    <br />        6 = access 1<br />        7 = access 1<br />        8 = dot1q 1 NIO_gen_eth:\Device\NPF_{B00A38DD-F10B-43B4-99F4-B4A078484487}<br /><br />最后这个以太网口，要自己查 <br />dynamips -e 可以查到<br /><br /><br />集群配置，就是说，如果我1台pc模拟这么多路由器不够，而我又有很多台PC， 那么可以做这样一件事情<br />1。创建一台cluster的主控服务器  ip为192.168.0.1  只运行<br />dynamips server  /linux下执行  nice dynamips -H 7200 &amp;<br /><br />然后每台PC上模拟一台 路由器,修改dynamips-server值，将localhost改为接入服务器的ip就可以了<br /><br /># A CCIE lab <br /><br />autostart = true<br /><br />[192.168.0.1]<br />    port = 7200<br /><br /><br />    [[7200]]<br />    image = d:\c7200\kaka.bin<br />    npe = npe-400<br />    ram = 160<br />        <br />    [[ROUTER 1R1]]<br />    s1/0 = F1 1<br />    s1/1 = F2 1<br />    f2/0 = S1 1<br />    f0/0 = LAN 2<br />        <br />    [[FRSW F1]]<br />    1:102 = 2:201<br />    1:103 = 3:301<br />    1:104 = 4:401<br />    1:105 = 5:501<br />    1:106 = 6:601<br />    2:203 = 3:302<br />        2:204 = 4:402<br />        2:205 = 5:502<br />        2:206 = 6:602<br />        3:304 = 4:403<br />        3:305 = 5:503<br />        3:306 = 6:603<br />        4:405 = 5:504<br />        4:406 = 6:604<br />        5:506 = 6:605<br /><br />    [[FRSW F2]]<br />    1:102 = 2:201<br />    1:103 = 3:301<br />    1:104 = 4:401<br />    1:105 = 5:501<br />    1:106 = 6:601<br />    2:203 = 3:302<br />    2:204 = 4:402<br />    2:205 = 5:502<br />        2:206 = 6:602<br />        3:304 = 4:403<br />        3:305 = 5:503<br />        3:306 = 6:603<br />        4:405 = 5:504<br />        4:406 = 6:604<br />        5:506 = 6:605<br />        <br />    [[ATMSW A1]]<br />    3:30:103 = 7:37:137 # port 3  vpi 30 vci 103 to port 7 vpi 37 vci 137<br />    6:60:106 = 7:67:167 <br />    <br />    [[ETHSW S1]]<br />        1 = access 1<br />        2 = access 1<br />        3 = access 1<br />        4 = access 1<br />        5 = access 1    <br />        6 = access 1<br />        7 = access 1<br />        8 = dot1q 1 NIO_gen_eth:\Device\NPF_{B00A38DD-F10B-43B4-99F4-                                   B4A078484487} <img src ="http://www.phpweblog.net/billow/aggbug/339.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.phpweblog.net/billow/" target="_blank">学习资料库</a> 2006-08-17 10:04 <a href="http://www.phpweblog.net/billow/archive/2006/08/17/339.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>