CCNA交换版TOPOLOGY&NET

 

NET:

autostart = False [localhost] port = 7200 udp = 10000 workingdir = /home/cj/dynamips/tmp [[router R1]] image = /opt/dynamips/ios/unzip-c7200-is-mz.122-37.bin model = 2691 console = 3001 ram = 100 confreg = 0x2102 idlepc = 0x6067d29c exec_area = 64 mmap = False slot1 = NM-4T f0/0 = SW1 f1/5 s1/0 = R2 s1/0 [[router R2]] image = /opt/dynamips/ios/unzip-c7200-is-mz.122-37.bin model = 2691 console = 3002 ram = 100 confreg = 0x2102 idlepc = 0x6067d29c exec_area = 64 mmap = False slot1 = NM-4T f0/0 = SW2 f1/5 [[router SW1]] image = /opt/dynamips/ios/unzip-c3640-js-mz.124-10.bin model = 3640 console = 3003 ram = 128 confreg = 0x2102 idlepc = 0x604eb190 exec_area = 64 mmap = False slot1 = NM-16ESW f1/1 = SW2 f1/2 f1/2 = SW2 f1/1 f1/3 = SW3 f1/1 f1/11 = PC1 f0/0 f1/12 = PC2 f0/0 [[router SW2]] image = /opt/dynamips/ios/unzip-c3640-js-mz.124-10.bin model = 3640 console = 3004 ram = 128 confreg = 0x2102 idlepc = 0x604eb190 exec_area = 64 mmap = False slot1 = NM-16ESW f1/3 = SW3 f1/2 f1/11 = PC3 f0/0 [[router SW3]] image = /opt/dynamips/ios/unzip-c3640-js-mz.124-10.bin model = 3640 console = 3005 ram = 128 confreg = 0x2102 idlepc = 0x604eb190 exec_area = 64 mmap = False slot1 = NM-16ESW f1/11 = PC4 f0/0 f1/12 = S1 1 [[router PC1]] model = 2621 ram = 20 image = /opt/dynamips/ios/unzip-c2600-i-mz.121-3.T.bin mmap = False confreg = 0x2102 idlepc = 0x803772d0 console = 3006 [[router PC2]] model = 2621 ram = 20 image = /opt/dynamips/ios/unzip-c2600-i-mz.121-3.T.bin mmap = False confreg = 0x2102 idlepc = 0x803772d0 console = 3007 [[router PC3]] model = 2621 ram = 20 image = /opt/dynamips/ios/unzip-c2600-i-mz.121-3.T.bin mmap = False confreg = 0x2102 idlepc = 0x803772d0 console = 3008 [[router PC4]] model = 2621 ram = 20 image = /opt/dynamips/ios/unzip-c2600-i-mz.121-3.T.bin mmap = False confreg = 0x2102 idlepc = 0x803772d0 console = 3009 [[ethsw S1]] 1 = dot1q 1 2 = access 1 NIO_linux_eth:eth0

 

 

基本配置:

SW1: en vlan database vlan 1 name aaa vlan 2 name bbb exit conf t host SW1 line console 0 exec-timeout 0 0 =============== 以下给接口配置VLAN int fa 1/11 switchport mode accesss switchport access vlan 1 int fa 1/12 switchport mode access switchport access vlan 2 ========= 需要注意的是 show vlan 命令在 dynamips中要改成 show vlan-switch ;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1. Switch1(config)#vlan 10 2. Switch1(config-if)#switchport mode access Switch1(config-if)#switchport access vlan 10 换成: 1. Switch1(config)#int vlan 10 2. Switch1(config-if)#switchport mode access Switch1(config-if)#switchport access vlan 10 PC1 en conf t host PC1 no ip routing line console 0 exec-timeout 0 0 int fa 0/0 ip add 192.168.1.1 255.255.255.0 no shut duplex full PC2 en conf t host PC2 no ip routing line console 0 exec-timeout 0 0 int fa 0/0 ip add 192.168.1.2 255.255.255.0 no shut duplex full

你可能感兴趣的:(c,linux,image,Access)