測試OSPF learn vLan

OSPFLearnVLAN

PS: 失敗

Router1
en
conf t
int f0/0
ip add 202.1.1.2 255.255.255.0
no shut
int f0/1
ip add 192.168.0.253 255.255.254.0
no shut

CoreSW1
en
conf t
ip routing
spann mode ra
vlan 101
name 1F
vlan 102
name 2F
vlan 103
name 3F
vlan 81
name Cisco
int vlan 1
ip add 192.168.1.254 255.255.254.0
no shut
int vlan 81
ip add 192.168.81.254 255.255.255.0
no shut
int vlan 101
ip add 10.20.1.126 255.255.255.128
no shut
int vlan 102
ip add 10.20.2.126 255.255.255.128
no shut
int vlan 103
ip add 10.20.3.126 255.255.255.128
no shut
exit
vtp domain stupid
int ran f0/23-24
sw trunk en dot
sw mode trunk

SW1
en
conf t
spann mode ra
int f0/24
sw mode trunk
vtp mode tr
vtp mode cli
int vlan 81
ip add 192.168.81.1 255.255.255.0
no shut
int f0/1
sw mode acc
sw acc vlan 103
spann portf

SW2
en
conf t
spann mode ra
int f0/24
sw mode trunk
vtp mode tr
vtp mode cli
int vlan 81
ip add 192.168.81.2 255.255.255.0
no shut
int f0/1
sw mode acc
sw acc vlan 101
spann portf

Router1
conf t
router ospf 1
network 192.168.0.0 0.0.0.255 area 0

CoreSW1
conf t
router ospf 1
network 192.168.0.0 0.0.0.255 area 0
network 10.20.1.0 0.0.0.127 area 0
network 10.20.2.0 0.0.0.127 area 0
network 10.20.3.0 0.0.0.127 area 0

未做no switch時learn不到, 做了no switch及設定IP後就只learn到192.168.0.0

CCNP OSPF Lab3

ospf3-1 ospf3-2

Router2
conf t
int f0/0
bandwidth 1000
ip add 172.16.0.2 255.255.128.0
no shut
int s1/0
clock rate 2000000
ip add 172.16.128.2 255.255.128.0
no shut
int lo1
ip add 172.17.0.2 255.255.255.255
end

Router3
conf t
int f0/0
ip add 10.10.1.2 255.0.0.0
no shut
int f0/1
ip add 192.168.34.3 255.255.255.0
no shut
int s1/0
ip add 172.16.128.3 255.255.128.0
no shut
int lo1
ip add 172.17.0.3 255.255.255.255
end

Router4
conf t
int f0/0
bandwidth 1000
ip add 192.168.34.4 255.255.255.0
no shut
int s1/0
ip add 192.168.45.4 255.255.255.0
no shut
int lo1
ip add 172.17.0.4 255.255.255.255
end

Router5
conf t
int s1/0
clock rate 115200
ip add 192.168.45.5 255.255.255.0
no shut
int lo1
ip add 172.17.0.5 255.255.255.255
end

MicroCore
ifconfig eth0 172.16.0.1 netmask 255.255.128.0 up
route add -net 0.0.0.0 gw 172.16.0.2

MicroCore_2
ifconfig eth0 10.10.1.1 netmask 255.0.0.0 up
route add -net 0.0.0.0 gw 10.10.1.2

Router2
conf t
router ospf 1
network 172.16.0.0 0.0.127.255 area 1
network 172.16.128.0 0.0.127.255 area 1
end

Router3
conf t
router ospf 1
network 172.16.128.0 0.0.127.255 area 1
network 10.0.0.0 0.255.255.255 area 1
network 192.168.34.0 0.0.0.255 area 0
end

Router4
conf t
router ospf 1
network 192.168.34.0 0.0.0.255 area 0
network 192.168.45.0 0.0.0.255 area 2
end

Router5
conf t
router ospf 1
network 192.168.45.0 0.0.0.255 area 2
end

CCNP OSPF Lab2

ospf2-1 ospf2-2.jpeg

RouterA
conf t
int f0/0
bandwidth 1000
ip add 192.168.1.1 255.255.255.0
ip ospf pri 4
no shut
int lo0
ip add 172.17.0.1 255.255.255.255
router ospf 1
network 192.168.1.0 0.0.0.255 area 0
end

RouterB
conf t
int f0/1
ip add 192.168.1.2 255.255.255.0
ip ospf pri 3
no shut
int lo0
ip add 172.17.0.2 255.255.255.255
router ospf 1
network 192.168.1.0 0.0.0.255 area 0
end

RouterC
conf t
int f0/0
bandwidth 1000
ip add 192.168.1.3 255.255.255.0
ip ospf pri 2
no shut
int lo0
ip add 172.17.0.3 255.255.255.255
router ospf 1
network 192.168.1.0 0.0.0.255 area 0
end

RouterD
conf t
int f0/0
bandwidth 1000
ip add 192.168.1.4 255.255.255.0
no shut
int lo0
ip add 172.17.0.4 255.255.255.255
router ospf 1
network 192.168.1.0 0.0.0.255 area 0
end

ospf2-3ospf2-4ospf2-5ospf2-6

 

CCNP OSPF Lab1

ospf1-2ospf1-1

Host PC用Router扮, 所以要打dup full, speed 100, 另外打bandwidth 1000扮e0

Router3
en
conf t
host Router3
int f0/0
ip add 10.10.1.2 255.0.0.0
dup full
speed 100
no shut
int s1/0
ip add 192.168.0.1 255.255.255.0
no shut

Router2
en
conf t
host Router2
int f0/0
ip add 172.16.0.2 255.255.0.0
bandwidth 1000
dup full
speed 100
no shut
int s1/0
ip add 192.168.0.2 255.255.255.0
clock rate 2000000
no shut

Screenshot from 2014-11-09 20:50:42 Screenshot from 2014-11-09 20:50:49

Router3
router ospf 1
network 192.168.0.0 0.0.0.255 area 0
network 10.0.0.0 0.255.255.255 area 0

Router2
router ospf 1
network 192.168.0.0 0.0.0.255 area 0
network 172.16.0.0 0.0.255.255 area 0

Screenshot from 2014-11-09 22:13:13 Screenshot from 2014-11-09 22:13:18

Ubuntu 安裝GNS3最新版

apt-add-repository ppa:gns3/ppa
apt-get update
apt-get install gns3

http://sobek.su/Cisco/IOS/37xx/3725/c3725-advipservicesk9-mz.124-25d.bin

3

 

Remark: Qemu一直測試失敗, 最後選擇用Router當Host PC測試

http://www.gns3.net/qemu/
Qemu version 0.14.1 for Ubuntu 32-bit
./Qinstall

apt-get install zlib1g-dev

Qemu version 0.14.1 patched sources
./confirgure
make
make install

http://sourceforge.net/projects/gns-3/files/Qemu%20Appliances/
linux-microcore-3.4.img

1

2

Cisco Model 分類

WS-C2960S-48FPD-L
WS-C2960S-48LPD-L
WS-C2960S-48TD-L
WS-C2960S-48TS-S

Port後面
FP=POE 740W
LP=POE 370W
T=Standard
D=10G SFP
S=1G SFP

最尾License
S=Lan lite
L=Lan base
———-

WS-C3750X-24T-L
WS-C3750X-24P-L
WS-C3750X-48PF-L
WS-C3750X-12S-S
WS-C3750X-24S-E

Model後面
3750=10/100
3750G=10/100/1000
3750E=down 10/100/1000, up 10000
3750x=down 10/100/1000, SFP

Port後面
T=Standard
P=POE 715W
PF=POE 1100W
S=12 GE SFP Ethernet Ports

最尾License
L=Lan Base
S=IP Base
E=IP Services

vsFTPD on Ubuntu

apt-get install vsftpd

vi /etc/vsftpd.conf
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
use_localtime=YES
ascii_upload_enable=YES
ascii_download_enable=YES
ftpd_banner=Welcome to {My Server name} FTP service.
chroot_local_user=YES
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd.user_list
listen_port={My Port}
allow_writeable_chroot=YES

vi /etc/vsftpd.user_list
tim