这个实验所用的交换机和路由器比较多,CPU资源占用率很高,后期实验比较卡。
建议先交换后路由,XP自动获得IP地址后,再做路由部分。
建议写脚本,提高速度。
4006-sw1
en
conf t
no ip do lo
lin 0
exec-t 0 0
logg sy
ho 4006-sw1
int r f0/2 - 9
sw m t
exi
int r f0/6 - 9
sh
ch 1 m o
end
vl d
vtp d lenovo
vtp t
vtp s
vtp v2-m
vtp pr
vl 10 na cwb
vl 20 na glb
vl 100 na srv
exi
conf t
sp vl 1 r p
sp vl 10 r p
sp vl 20 r s
sp vl 100 r s
sp backb
int vl 10
ip add 192.168.10.253 255.255.255.0
no sh
int vl 100
ip add 192.168.100.253 255.255.255.0
no sh
exi
int vl 10
ip helper-address 192.168.100.1
end
conf t
int r f0/6 - 9
no sh
---------------------------------------
4006-sw2
en
conf t
no ip do lo
lin 0
exec-t 0 0
logg sy
ho 4006-sw2
int r f0/2 - 9
sw m t
exi
int r f0/6 - 9
sh
ch 1 m o
end
vl d
vtp d lenovo
vtp t
vtp s
vtp v2-m
vtp pr
conf t
sp vl 1 r s
sp vl 10 r as
sp vl 20 r p
sp vl 100 r p
sp backb
int vl 10
ip add 192.168.10.254 255.255.255.0
no sh
int vl 100
ip add 192.168.100.254 255.255.255.0
no sh
end
conf t
int r f0/6 - 9
no sh
----------------------------------------
2950-sw1
en
conf t
no ip routing
no ip do lo
lin 0
exec-t 0 0
logg sy
ho 2950-sw1
int r f0/1 - 2
sw m t
exi
vl d
vtp d lenovo
vtp t
vtp c
exi
conf t
int f0/10
sp portf
sw acc vl 10
exi
sp uplinkf
sp portf bpdugr
end
------------------------------------------
2950-sw2
en
conf t
no ip routing
no ip do lo
lin 0
exec-t 0 0
logg sy
ho 2950-sw1
int r f0/1 - 2
sw m t
exi
vl d
vtp d lenovo
vtp t
vtp c
exi
conf t
sp uplinkf
sp portf bpdugr
end
-----------------------------------------
2950-sw1
en
conf t
no ip routing
no ip do lo
lin 0
exec-t 0 0
logg sy
ho 2950-srv
int r f0/1 - 2
sw m t
exi
vl d
vtp d lenovo
vtp t
vtp c
exi
conf t
int f0/10
sp portf
sw acc vl 100
exi
sp uplinkf
sp portf bpdugr
end
------------------------------------------
路由部分
BJ-7206
en
conf t
no ip routing
no ip do lo
lin 0
exec-t 0 0
logg sy
ho BJ-7206
int s1/0
ip add 192.168.22.1 255.255.255.0
no sh
int s1/1
ip add 192.168.11.1 255.255.255.0
no sh
int e0/2
ip add 192.168.1.1 255.255.255.0
no sh
int e0/1
ip add 192.168.2.1 255.255.255.0
no sh
int e0/0
ip add 172.16.0.238 255.255.0.0
no sh
exi
router rip
net 0.0.0.0
ver 2
no auto
end
--------------------------------------------
SH-2691
en
conf t
no ip routing
no ip do lo
lin 0
exec-t 0 0
logg sy
ho SH-2691
int s0/0
ip add 192.168.22.2 255.255.255.0
no sh
int lo1
ip add 1.1.1.1 255.255.255.0
no sh
exi
router rip
net 0.0.0.0
ver 2
no auto
end
--------------------------------------------
SZ-2691
en
conf t
no ip routing
no ip do lo
lin 0
exec-t 0 0
logg sy
ho SZ-2691
int s0/1
ip add 192.168.11.2 255.255.255.0
no sh
int lo1
ip add 2.2.2.2 255.255.255.0
no sh
exi
router rip
net 0.0.0.0
ver 2
no auto
end
-----------------------------------------------
三层交换
4006-sw1
en
conf t
int f0/1
no sw
ip add 192.168.1.2 255.255.255.0
no sh
exi
router rip
net 0.0.0.0
ver 2
no auto
end
-------------------------------------
4006-sw2
en
conf t
int f0/1
no sw
ip add 192.168.2.2 255.255.255.0
no sh
exi
router rip
net 0.0.0.0
ver 2
no auto
end