Cisco CCNA 之 Packet Tracer 练习题系列

项目5-1:配置VLAN间路由(三层交换)

拓扑:

clip_image002

项目说明:

假设核心交换机名称为:COM;分支交换机分别为:PAR1、PAR2、PAR3,分别通过Port 1的光线模块与核心交换机相连;并且假设VLAN名称分别为COUNTER、MARKET、MANAGING……

端口分配(交换机 PAR1、PAR2和 PAR3)

端口

分配

网络

Fa0/1-0/5

Native 99-NetworkMgmt

192.168.90.0 /24

Fa0/6-0/10

VLAN 10 �CCOUNTER

192.168.10.0 /24

Fa0/11 - 0/15

VLAN 20 - MARKET

192.168.20.0 /24

Fa0/16 - 0/24

VLAN 30 - MANAGING

192.168.30.0 /24

设备

Vlan

IP地址

子网掩码

COM

VLAN99

192.168.99.99

255.255.255.0

PAR1

VLAN99

192.168.99.1

255.255.255.0

PAR2

VLAN99

192.168.99.2

255.255.255.0

PAR3

VLAN99

192.168.99.3

255.255.255.0

PC0

网卡

192.168.10.2

255.255.255.0

PC1

网卡

192.168.20.2

255.255.255.0

PC2

网卡

192.168.30.2

255.255.255.0

项目目标

1、对交换机进行基本配置(密码为cisco)

2、设置VTP(核心、分支交换机上都设置 密码cisco 域名 czie)
3、配置中继(核心、分支交换机上都设置)
4、创建VLAN(在server上设置)
5、将交换机端口划入VLAN
6、配置三层交换使不同网段能相互ping通

答案:

PAR1

en

conf t

host PAR1

enable se cisco

line vty 0 4

pass cisco

login

exi

line con 0

pass cisco

login

exi

vtp doma czie

vtp mo cl

vtp pass cisco

int range f0/1 - 5

sw mo tr

sw tr na vlan 99

no sh

exi

int range f0/6 - 10

no sh

sw mo acc

sw acc vlan 10

exi

int range f0/11 - 16

no sh

sw mo acc

sw acc vlan 20

exi

int range f0/17 - 24

no sh

sw mo acc

sw acc vlan 30

PAR2

en

conf t

host PAR2

enable se cisco

line vty 0 4

pass cisco

login

exi

line con 0

pass cisco

login

exi

vtp doma czie

vtp mo cl

vtp pass cisco

int range f0/1 - 5

sw mo tr

sw tr nat vlan 99

exi

int range f0/6 - 10

sw mo acc

sw acc vlan 10

exi

int range f0/11 - 16

sw mo acc

sw acc vlan 20

int range f0/17 - 24

no sh

sw mo acc

sw acc vlan 30

PAR3

en

conf t

host PAR3

enable se cisco

line vty 0 4

pass cisco

login

exi

line con 0

pass cisco

login

exi

vtp domain czie

vtp mode cl

vtp pass cisco

int range f0/1 - 5

no sh

sw mo tr

sw tr nat vlan 99

exi

int range f0/6 - 10

no sh

sw mo acc

sw acc vlan 10

exi

int range f0/11 - 16

no sh

sw mo acc

sw acc vlan 20

exi

int range f0/17 - 24

no sh

sw mo acc

sw acc vlan 30

COM

en

conf t

host COM

enable se cisco

line vty 0 4

pass cisco

login

exi

line con 0

pass cisco

login

exi

vtp domain czie

vtp mode server

vtp pass cisco

vlan 99

name NetworkMgmt

vlan 10

name COUNTER

vlan 20

name MARKET

vlan 30

name MANAGING

int vlan 99

ip add 192.168.99.99 255.255.255.0

no sh

int vlan 10

ip add 192.168.10.1 255.255.255.0

no sh

int vlan 20

ip add 192.168.20.1 255.255.255.0

no sh

int vlan 30

ip add 192.168.30.1 255.255.255.0

no sh

int ran f0/1 - 3

sw mo tr

sw tr na vlan 99

你可能感兴趣的:(Cisco,休闲,packet,CCNA,Tracer)