thuaanjhd
12-11-2008, 22:06
Phong trào CCNA trong lớp mình là khá rầm rộ và nhân dịp ôn thi skill kỳ 2. ( mai thi tối nay mới ôn) ko biết đỗ hay ko nhưng cũng kịp tìm phao ( dởm hay xịn thì mai sẽ biết). Up lên cho những anh em cùng hoàn cảnh 8-}.
Chả hiểu sao ko đính file được. Viết ra vậy
# đoạn file skill2.net ( copy rồi save tên: file.net): file .net (mô tả sơ đồ mạng, cấu hình tổng thể ct
# Simple lab
autostart = False
ghostios = True
sparsemem = True
ram = 32
[localhost]
[[router RA]]
console = 2001
model = 2691
#đường dẫn tới IOS, thay đổi tùy theo cài đặt của mỗi người
image = C:\Program Files\GNS3\IOS image\ios1\C2691-AD.BIN
idlepc = 0x607e5fa8
[[router RB]]
console = 2002
model = 2691
image = C:\Program Files\GNS3\IOS image\ios1\C2691-AD.BIN
S0/1 = RA S0/0
F0/0 = SW2 2
idlepc = 0x607e5fa8
[[router RC]]
console = 2003
model = 2691
image = C:\Program Files\GNS3\IOS image\ios1\C2691-AD.BIN
idlepc = 0x607e5fa8
F0/0 = SW2 3
[[router RD]]
console = 2004
model = 2691
image = C:\Program Files\GNS3\IOS image\ios1\C2691-AD.BIN
idlepc = 0x607e5fa8
F0/0 = SW2 4
[[router RE]]
console = 2005
model = 2691
image = C:\Program Files\GNS3\IOS image\ios1\C2691-AD.BIN
idlepc = 0x607e5fa8
F0/0 = SW1 5
[[router RF]]
console = 2006
model = 2691
image = C:\Program Files\GNS3\IOS image\ios1\C2691-AD.BIN
idlepc = 0x607e5fa8
F0/0 = SW1 6
[[router RG]]
console = 2007
model = 2691
image = C:\Program Files\GNS3\IOS image\ios1\C2691-AD.BIN
idlepc = 0x607e5fa8
F0/0 = SW1 7
F0/1 = SW2 7
[[ethsw SW1]]
[[ethsw SW2]]
# No need to specify an adapter here, it is taken care of
# by the interface specification under Router R1
# cấu hình cho router A ( liệt kê trên) : cóp từ: show run
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname RA
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
!
!
ip audit po max-events 100
!
!
!
interface Loopback0
ip address 193.168.1.1 255.255.255.252
!
interface Loopback2
ip address 172.168.1.1 255.255.255.128
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0
ip address 172.168.1.146 255.255.255.252
clock rate 2000000
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/1
no ip address
shutdown
clock rate 2000000
!
router eigrp 100
redistribute static
network 172.168.1.144 0.0.0.3
auto-summary
!
ip classless
ip route 0.0.0.0 0.0.0.0 Loopback0
!
ip http server
no ip http secure-server
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
end
# cấu hình cho router B
!
RB#~
% Unknown command or computer name, or unable to find computer address
RB#~
% Unknown command or computer name, or unable to find computer address
RB#show run
Building configuration...
Current configuration : 1378 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname RB
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
!
!
ip audit po max-events 100
interface Loopback4
ip address 172.168.0.1 255.255.255.0
!
interface Loopback5
ip address 172.168.1.129 255.255.255.240
!
interface Loopback6
ip address 10.0.0.1 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/0
ip address 10.0.2.4 255.255.255.128
duplex auto
speed auto
!
interface Serial0/0
no ip address
shutdown
clock rate 2000000
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/1
ip address 172.168.1.145 255.255.255.252
clock rate 64000
!
router eigrp 100
redistribute ospf 1 metric 10000 100 255 1 100
passive-interface Loopback4
passive-interface Loopback5
network 172.168.0.0 0.0.0.255
network 172.168.1.128 0.0.0.15
network 172.168.1.144 0.0.0.3
no auto-summary
!
router ospf 1
log-adjacency-changes
redistribute eigrp 100 subnets
passive-interface Loopback6
network 10.0.0.0 0.0.0.255 area 0
network 10.0.2.0 0.0.0.127 area 0
default-information originate
!
ip classless
!
ip http server
no ip http secure-server
!
line con 0
line aux 0
line vty 0 4
login
!
# cấu hình cho router C
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname RC
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
!
!
ip audit po max-events 100
!
!
!
interface Loopback15
ip address 10.0.2.193 255.255.255.224
ip ospf network point-to-point
!
interface FastEthernet0/0
ip address 10.0.2.1 255.255.255.128
ip ospf priority 100
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
redistribute connected subnets
network 10.0.2.0 0.0.0.127 area 0
!
ip classless
!
ip http server
no ip http secure-server
!
!
line con 0
line aux 0
line vty 0 4
login
!
end
# cấu hình cho router D
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname RD
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
ip audit po max-events 100
!
interface Loopback12
ip address 200.1.1.1 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/0
ip address 10.0.2.3 255.255.255.128
ip ospf priority 0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
redistribute connected subnets
network 10.0.2.0 0.0.0.127 area 0
!
ip classless
ip route 0.0.0.0 0.0.0.0 Loopback12 180
!
ip http server
no ip http secure-server
line con 0
line aux 0
line vty 0 4
login
!
end
# cấu hình cho router E
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname RE
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
!
ip audit po max-events 100
!
!
!
!
interface Loopback11
ip address 192.168.3.1 255.255.255.192
!
interface Loopback14
ip address 192.168.2.1 255.255.255.252
!
interface FastEthernet0/0
ip address 192.168.1.2 255.255.255.224
ip rip send version 1 2
ip rip receive version 1 2
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
router rip
version 2
passive-interface Loopback11
passive-interface Loopback14
network 192.168.1.0
network 192.168.3.0
no auto-summary
!
ip classless
ip route 0.0.0.0 0.0.0.0 Loopback14 140
!
ip http server
no ip http secure-server
!
!
line con 0
line aux 0
line vty 0 4
login
!
end
RE#
RE#
# cấu hình cho router F
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname RF
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
!
!
ip audit po max-events 100
!
!
!
!
!
interface Loopback16
ip address 192.168.4.1 255.255.255.224
!
interface Loopback17
ip address 193.168.3.1 255.255.255.252
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.224
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
router rip
version 1
passive-interface Loopback16
network 192.168.1.0
network 192.168.4.0
no auto-summary
!
ip classless
ip route 0.0.0.0 0.0.0.0 Loopback17 140
!
ip http server
no ip http secure-server
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
end
RF#
# cấu hình cho router G
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname RG
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
!
!
ip audit po max-events 100
!
!
!
!
!
interface Loopback7
ip address 192.168.2.1 255.255.255.224
!
interface Loopback10
ip address 10.0.1.1 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/0
ip address 192.168.1.3 255.255.255.224
ip rip send version 1 2
ip rip receive version 1 2
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.0.2.2 255.255.255.128
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
redistribute rip subnets
passive-interface Loopback10
network 10.0.1.0 0.0.0.255 area 0
network 10.0.2.0 0.0.0.127 area 0
!
router rip
version 2
redistribute ospf 1 metric 1
passive-interface Loopback7
passive-interface Loopback10
network 192.168.1.0
no auto-summary
!
ip classless
!
ip http server
no ip http secure-
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
end
Chả hiểu sao ko đính file được. Viết ra vậy
# đoạn file skill2.net ( copy rồi save tên: file.net): file .net (mô tả sơ đồ mạng, cấu hình tổng thể ct
# Simple lab
autostart = False
ghostios = True
sparsemem = True
ram = 32
[localhost]
[[router RA]]
console = 2001
model = 2691
#đường dẫn tới IOS, thay đổi tùy theo cài đặt của mỗi người
image = C:\Program Files\GNS3\IOS image\ios1\C2691-AD.BIN
idlepc = 0x607e5fa8
[[router RB]]
console = 2002
model = 2691
image = C:\Program Files\GNS3\IOS image\ios1\C2691-AD.BIN
S0/1 = RA S0/0
F0/0 = SW2 2
idlepc = 0x607e5fa8
[[router RC]]
console = 2003
model = 2691
image = C:\Program Files\GNS3\IOS image\ios1\C2691-AD.BIN
idlepc = 0x607e5fa8
F0/0 = SW2 3
[[router RD]]
console = 2004
model = 2691
image = C:\Program Files\GNS3\IOS image\ios1\C2691-AD.BIN
idlepc = 0x607e5fa8
F0/0 = SW2 4
[[router RE]]
console = 2005
model = 2691
image = C:\Program Files\GNS3\IOS image\ios1\C2691-AD.BIN
idlepc = 0x607e5fa8
F0/0 = SW1 5
[[router RF]]
console = 2006
model = 2691
image = C:\Program Files\GNS3\IOS image\ios1\C2691-AD.BIN
idlepc = 0x607e5fa8
F0/0 = SW1 6
[[router RG]]
console = 2007
model = 2691
image = C:\Program Files\GNS3\IOS image\ios1\C2691-AD.BIN
idlepc = 0x607e5fa8
F0/0 = SW1 7
F0/1 = SW2 7
[[ethsw SW1]]
[[ethsw SW2]]
# No need to specify an adapter here, it is taken care of
# by the interface specification under Router R1
# cấu hình cho router A ( liệt kê trên) : cóp từ: show run
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname RA
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
!
!
ip audit po max-events 100
!
!
!
interface Loopback0
ip address 193.168.1.1 255.255.255.252
!
interface Loopback2
ip address 172.168.1.1 255.255.255.128
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0
ip address 172.168.1.146 255.255.255.252
clock rate 2000000
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/1
no ip address
shutdown
clock rate 2000000
!
router eigrp 100
redistribute static
network 172.168.1.144 0.0.0.3
auto-summary
!
ip classless
ip route 0.0.0.0 0.0.0.0 Loopback0
!
ip http server
no ip http secure-server
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
end
# cấu hình cho router B
!
RB#~
% Unknown command or computer name, or unable to find computer address
RB#~
% Unknown command or computer name, or unable to find computer address
RB#show run
Building configuration...
Current configuration : 1378 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname RB
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
!
!
ip audit po max-events 100
interface Loopback4
ip address 172.168.0.1 255.255.255.0
!
interface Loopback5
ip address 172.168.1.129 255.255.255.240
!
interface Loopback6
ip address 10.0.0.1 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/0
ip address 10.0.2.4 255.255.255.128
duplex auto
speed auto
!
interface Serial0/0
no ip address
shutdown
clock rate 2000000
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/1
ip address 172.168.1.145 255.255.255.252
clock rate 64000
!
router eigrp 100
redistribute ospf 1 metric 10000 100 255 1 100
passive-interface Loopback4
passive-interface Loopback5
network 172.168.0.0 0.0.0.255
network 172.168.1.128 0.0.0.15
network 172.168.1.144 0.0.0.3
no auto-summary
!
router ospf 1
log-adjacency-changes
redistribute eigrp 100 subnets
passive-interface Loopback6
network 10.0.0.0 0.0.0.255 area 0
network 10.0.2.0 0.0.0.127 area 0
default-information originate
!
ip classless
!
ip http server
no ip http secure-server
!
line con 0
line aux 0
line vty 0 4
login
!
# cấu hình cho router C
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname RC
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
!
!
ip audit po max-events 100
!
!
!
interface Loopback15
ip address 10.0.2.193 255.255.255.224
ip ospf network point-to-point
!
interface FastEthernet0/0
ip address 10.0.2.1 255.255.255.128
ip ospf priority 100
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
redistribute connected subnets
network 10.0.2.0 0.0.0.127 area 0
!
ip classless
!
ip http server
no ip http secure-server
!
!
line con 0
line aux 0
line vty 0 4
login
!
end
# cấu hình cho router D
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname RD
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
ip audit po max-events 100
!
interface Loopback12
ip address 200.1.1.1 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/0
ip address 10.0.2.3 255.255.255.128
ip ospf priority 0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
redistribute connected subnets
network 10.0.2.0 0.0.0.127 area 0
!
ip classless
ip route 0.0.0.0 0.0.0.0 Loopback12 180
!
ip http server
no ip http secure-server
line con 0
line aux 0
line vty 0 4
login
!
end
# cấu hình cho router E
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname RE
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
!
ip audit po max-events 100
!
!
!
!
interface Loopback11
ip address 192.168.3.1 255.255.255.192
!
interface Loopback14
ip address 192.168.2.1 255.255.255.252
!
interface FastEthernet0/0
ip address 192.168.1.2 255.255.255.224
ip rip send version 1 2
ip rip receive version 1 2
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
router rip
version 2
passive-interface Loopback11
passive-interface Loopback14
network 192.168.1.0
network 192.168.3.0
no auto-summary
!
ip classless
ip route 0.0.0.0 0.0.0.0 Loopback14 140
!
ip http server
no ip http secure-server
!
!
line con 0
line aux 0
line vty 0 4
login
!
end
RE#
RE#
# cấu hình cho router F
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname RF
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
!
!
ip audit po max-events 100
!
!
!
!
!
interface Loopback16
ip address 192.168.4.1 255.255.255.224
!
interface Loopback17
ip address 193.168.3.1 255.255.255.252
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.224
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
router rip
version 1
passive-interface Loopback16
network 192.168.1.0
network 192.168.4.0
no auto-summary
!
ip classless
ip route 0.0.0.0 0.0.0.0 Loopback17 140
!
ip http server
no ip http secure-server
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
end
RF#
# cấu hình cho router G
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname RG
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
!
!
ip audit po max-events 100
!
!
!
!
!
interface Loopback7
ip address 192.168.2.1 255.255.255.224
!
interface Loopback10
ip address 10.0.1.1 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/0
ip address 192.168.1.3 255.255.255.224
ip rip send version 1 2
ip rip receive version 1 2
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.0.2.2 255.255.255.128
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
redistribute rip subnets
passive-interface Loopback10
network 10.0.1.0 0.0.0.255 area 0
network 10.0.2.0 0.0.0.127 area 0
!
router rip
version 2
redistribute ospf 1 metric 1
passive-interface Loopback7
passive-interface Loopback10
network 192.168.1.0
no auto-summary
!
ip classless
!
ip http server
no ip http secure-
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
end