在思科模拟器下配好这网络电脑--二层交换机--三层交换机--路由器--路由器--服务器要求服务器和电脑能拼通

如题所述

有简单的做法,也有复杂的,都给你写出来了,拓扑看图片。

试过了,都能ping通。

简单的:三层交换机当二层来用,路由器之间用静态路由

配置:

从左往右配置

PC:

ip:1.1.1.1

掩码:255.255.255.0

网关:1.1.1.254

二层交换机:

en

conf t

inter f0/1

no shut

inter f0/2

no shut

三层交换机:

en

conf t

inter f0/1

no shut

inter f0/2

no shut

路由器1:

en

conf t

inter f0/0

ip add 1.1.1.254 255.255.255.0

no shut

inter f0/1

ip add 2.2.2.1 255.255.255.0

no shut

exit

ip route 0.0.0.0 0.0.0.0 2.2.2.2

路由器2:

en

conf t

inter f0/0

ip add 2.2.2.2 255.255.255.0

no shut

inter f0/1

ip add 3.3.3.254 255.255.255.0

no shut

exit

ip route 0.0.0.0 0.0.0.0 2.2.2.1

服务器:

ip:3.3.3.1

掩码:255.255.255.0

网关:3.3.3.254

复杂的:三层交换机当路由器来用,路由器之间用动态路由,用ospf

配置:

PC:

ip:1.1.1.1

掩码:255.255.255.0

网关:1.1.1.254

二层交换机:

en

conf t

inter f0/1

no shut

inter f0/2

no shut

三层交换机:

en

conf t

ip routing

inter f0/1

no switchport

ip add 1.1.1.2 255.255.255.0

no shut

inter f0/2

no switchport

ip add 2.2.2.1 255.255.255.0

no shut

exit

router ospf 1

network 1.1.1.2 0.0.0.0 area 0

network 2.2.2.1 0.0.0.0 area 0

路由器1:

en

conf t

inter f0/0

ip add 2.2.2.2 255.255.255.0

no shut

inter f0/1

ip add 3.3.3.1 255.255.255.0

no shut

exit

router ospf 1

network 2.2.2.2 0.0.0.0 area 0

network 3.3.3.1 0.0.0.0 area 0

路由器2:

en

conf t

inter f0/0

ip add 3.3.3.2 255.255.255.0

no shut

inter f0/1

ip add 4.4.4.254 255.255.255.0

no shut

exit

router ospf 1

network 3.3.3.2 0.0.0.0 area 0

network 4.4.4.254 0.0.0.0 arae 0

服务器:

ip:4.4.4.1

掩码:255.255.255.0

网关:4.4.4.254

温馨提示:答案为网友推荐,仅供参考
第1个回答  2011-05-17
你要的是什么?Packet Tracer模拟器的存档吗?还是配置命令?

还有问题的话追问或者HI我都可以。
第2个回答  2011-05-17
最好能把你的要求发出来,要不没办法帮助你
相似回答