Chinaunix首页 | 论坛 | 博客
  • 博客访问: 563106
  • 博文数量: 130
  • 博客积分: 7473
  • 博客等级: 少将
  • 技术积分: 1466
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-10 22:29
文章分类

全部博文(130)

文章存档

2012年(1)

2011年(22)

2010年(2)

2009年(58)

2008年(47)

分类: 系统运维

2008-12-29 16:38:56

小型的综合实验
实验:(sw 0 sw 1 此为三层交换)
实验要求:
1.将sw 0 设制为vlan 10 的根网桥,将sw 1设为vlan 20 的根网桥
2. sw 0 sw 1 间的链路设制为以太网通道。
3.将 dhcp服务器放到vlan 10 ,client主机放到vlan 20 中,
4.将sw 0 sw 1 设制为VTP server , sw 2 sw 3 设制为VTP client
5, 设制dhcp 服务。
6.将 sw 1 的一端口设制为路由端口,与外网相连。
7.使用rip v2  ospf 路由协议。
试验步骤:
+++++++++++++++++++++++++++++++++++++
sw 0
+++++++++++++++++++++++++++++++++++++
en
conf t
no ip do lo
ip routing
line c 0
exec-t 0 0
logg sync
exit
in range f0/0 - 3
sw m t
exit
in range f0/0 - 1
channel-group 1 mode on
end
vlan d
vtp domain gao
vtp password 123
vlan 10
vlan 20
exit
conf t
spanning-tree vlan 10 root primary
in vlan 10
ip add 192.168.1.1 255.255.255.0
no sh
exit
in vlan 20
ip add 192.168.2.254 255.255.255.0
no sh
ip helper-address 192.168.1.2
exit
router rip
ver 2
no au
net 192.168.1.0
net 192.168.2.0
end
write
++++++++++++++++++++++++++++++++++++++++++++++
sw 1
++++++++++++++++++++++++++++++++++++++++++++++
en
conf t
no ip do lo
ip routing
line c 0
exec-t 0 0
logg sync
exit
in range f0/0 - 3
sw m t
exit
in range f0/0 - 1
channel-group 1 mode on
end
vlan d
vtp domain gao
vtp password 123
exit
conf t
spanning-tree vlan 20 root primary
in vlan 20
ip add 192.168.2.1 255.255.255.0
no sh
ip helper-add 192.168.1.2
exit
in vlan 10
ip add 192.168.1.254 255.255.255.0
no sh
exit
in f0/4
no switchport
ip add 172.16.0.1 255.255.0.0
no sh
exit
router rip
ver 2
no au
net 192.168.1.0
net 192.168.2.0
net 172.16.0.0
end
write
++++++++++++++++++++++++++++++++++++++++++++
sw 2
++++++++++++++++++++++++++++++++++++++++++++
en
conf t
no ip do li
line c 0
exec-t 0 0
logg sync
exit
in range f0/14 - 15
sw m t
end
vlan d
vtp domain gao
vtp pass 123
vtp client
exit
conf t
in f0/13
sw a v 10
end
copy running startup
+++++++++++++++++++++++++++++++++++++++++++++++++
sw 3
++++++++++++++++++++++++++++++++++++++++++++++++
en
conf t
no ip do lo
line c 0
exec-t 0 0
logg sync
exit
in range f0/14 - 15
sw m t
end
vlan d
vtp domain gao
vtp pass 123
vtp client
exit
conf t
in f0/13
sw a v 20
end
write
+++++++++++++++++++++++++++++++++++++++++++++++++
router 0
++++++++++++++++++++++++++++++++++++++++++++++++
en
conf t
no ip do lo
line c 0
exec-t 0 0
logg sync
exit
in e0/0
ip add 172.16.0.2 255.255.255.0
no sh
exit
in e0/1
ip add 10.0.0.1 255.0.0.0
no sh
exit
in loopback 0
ip add 1.1.1.1 255.255.255.255
exit
router rip
ver 2
no auto-summary
net 172.16.0.0
exit
router ospf 100
net 10.0.0.0 0.255.255.255 a 0
net 1.1.1.1 0.0.0.0 a 0
redistribute rip subnets
exit
router rip
redistribute ospf 100 metric 1
end
write
+++++++++++++++++++++++++++++++++++++++++++++++++
router 1
+++++++++++++++++++++++++++++++++++++++++++++++++
en
conf t
no ip do lo
line c 0
exec-t 0 0
logg sync
exit
in e0/0
ip add 10.0.0.2 255.0.0.0
no sh
exit
in loo 0
ip add 2.2.2.2 255.255.255.255
exit
router ospf 100
net 2.2.2.2 0.0.0.0 a 0
net 10.0.0.0 0.255.255.255 a 0
end
write
阅读(810) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~