项目拓扑:

航天恒星系统集成项目组_第1张图片

项目背景:

航天恒星科技股份有限公司是由中国空间技术研究院(五院)控股的卫星应用高科技股份公司,注册资本1.37亿元。公司是中国空间技术研究院卫星应用的总体单位与产业化发展平台,承担着背景型号天地一体化系统论证、地面应用系统开发,也是中国空间技术研究院卫星应用产品研发、制造中心和市场拓展平台。主要业务领域包括卫星地面综合应用、卫星导航、卫星遥感和图像传输、卫星通信与广播电视传输。

航天恒星科技股份有限公司 (西安分部)

地 址:西安市高新区锦业路70号

邮 编:710065

项目要求:

1. 办公大楼部分

a:VLAN 的划分 技术部—vlan 2 财务部—vlan 3 市场部—vlan 4 VLAN1(移动设备)

b:VLAN 在三层交换机上路由

c:三层交换机学习路由器R1的路由采用RIP协议

d:做好远程管理工作

2.网络管理中心实现本单位的网络管理工作

3.服务器机房,主要存放单位的网站服务器和其他服务器

4.R3默认路由指向网络出口R4; R4静态路由连接内网

5.生产车间接入网络

6.网站海外部(外贸部)接入网络 (使用无线网络)提高移动办公能力

7.早期办公楼接入网络,使用RIP协议。

8.R4光纤外部接入:10M

项目过程:

1、给PC:技术部--vlan 2 财务部--vlan 3 市场部--vlan 4 VLAN1(移动设备)

192.168.1.0-192.168.4.0

2、VLAN

核心交换机的配置:

Server:

Switch>enable

Switch#vlan database

% Warning: It is recommended to configure VLAN from config mode,

as VLAN database mode is being deprecated. Please consult user

documentation for configuring VTP/VLAN in config mode.

Switch(vlan)#vlan 2 name jishubu

VLAN 2 modified:

Name: jishubu

Switch(vlan)#vlan 3 name caiwubu

VLAN 3 modified:

Name: caiwubu

Switch(vlan)#vlan 4 name shichangbu

VLAN 4 modified:

Name: shichangbu

Switch(vlan)#vtp domain zghx

Changing VTP domain name from NULL to zghx

Switch(vlan)#vtp password 123

Setting device VLAN database password to 123

Switch(vlan)#vtp server

Device mode already VTP SERVER.

Switch(vlan)#exit

APPLY completed.

Exiting....

Switch#confi t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#int fa0/2

Switch(config-if)#switchport mode trunk

Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk" mode.

Switch(config-if)#int fa0/3

Switch(config-if)#switchport mode trunk

Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk" mode.

Switch(config-if)#exit

Switch(config)#int fa0/1

Switch(config-if)#swit acc vlan 2

Switch(config-if)#int fa0/4

Switch(config-if)#swit acc vlan 2

Switch(config-if)#int fa0/6

Switch(config-if)#swit acc vlan 3

Switch(config-if)#int fa0/7

Switch(config-if)#swit acc vlan 4

Switch(config-if)#exit

Switch(config)#

Switch(config)#int fa0/5

Switch(config-if)#no switchport

Switch(config-if)#ip address 192.168.5.1 255.255.255.0

Switch(config-if)#no shut

Switch(config-if)#int vlan 1

Switch(config-if)#ip address 192.168.1.254 255.255.255.0

Switch(config-if)#no shut

%LINK-5-CHANGED: Interface Vlan1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up

Switch(config-if)#int vlan 2

%LINK-5-CHANGED: Interface Vlan2, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan2, changed state to up

Switch(config-if)#ip address 192.168.2.254 255.255.255.0

Switch(config-if)#int vlan 3

%LINK-5-CHANGED: Interface Vlan3, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan3, changed state to up

Switch(config-if)#ip address 192.168.3.254 255.255.255.0

Switch(config-if)#no shut

Switch(config-if)#int vlan 4

%LINK-5-CHANGED: Interface Vlan4, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan4, changed state to up

Switch(config-if)#ip address 192.168.4.254 255.255.255.0

Switch(config-if)#no shut

Switch(config-if)#exit

Switch(config)#

Switch(config)#

Switch(config)#router rip

Switch(config-router)#network 192.168.1.0

Switch(config-router)#network 192.168.2.0

Switch(config-router)#network 192.168.3.0

Switch(config-router)#network 192.168.4.0

Switch(config-router)#network 192.168.5.0

Switch(config-router)#end

Switch#write

Building configuration...

[OK]

Switch#

switch2 :

Switch>enable

Switch#vlan database

% Warning: It is recommended to configure VLAN from config mode,

as VLAN database mode is being deprecated. Please consult user

documentation for configuring VTP/VLAN in config mode.

Switch(vlan)#vtp domain zghx

Domain name already set to zghx.

Switch(vlan)#vtp client

Device mode already VTP CLIENT.

Switch(vlan)#vtp password 123

Password already set to 123

Switch(vlan)#exit

APPLY completed.

Exiting....

Switch#config t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#int fa0/1

Switch(config-if)#switchport mode trunk

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

Switch(config-if)#exit

Switch(config)#int fa0/2

Switch(config-if)#switchport access vlan 4

Switch(config-if)#int fa0/3

Switch(config-if)#switchport access vlan 3

Switch(config-if)#end

%SYS-5-CONFIG_I: Configured from console by console

Switch#write

Building configuration...

[OK]

Switch#

switch3 :

Switch>enable

Switch#vlan database

% Warning: It is recommended to configure VLAN from config mode,

as VLAN database mode is being deprecated. Please consult user

documentation for configuring VTP/VLAN in config mode.

Switch(vlan)#vtp domain zghx

Domain name already set to zghx.

Switch(vlan)#vtp client

Device mode already VTP CLIENT.

Switch(vlan)#vtp password 123

Password already set to 123

Switch(vlan)#exit

APPLY completed.

Exiting....

Switch#config t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#int fa0/1

Switch(config-if)#switchport mode trunk

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

Switch(config-if)#int fa0/2

Switch(config-if)#switchport access vlan 4

Switch(config-if)#int fa0/3

Switch(config-if)#switchport access vlan 2

Switch(config-if)#end

Switch#write

Building configuration...

[OK]

Switch#

路由器的配置:

R1 :

Router>enable

Router#config t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R1

R1(config)#int fa0/0

R1(config-if)#ip address 192.168.5.2 255.255.255.0

R1(config-if)#no shutdown

R1(config-if)#int s0/0/0

R1(config-if)#clock rate 56000

R1(config-if)#ip address 192.168.6.1 255.255.255.0

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R1(config-if)#no shut

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down

R1(config-if)#router rip

R1(config-router)#net 192.168.5.0

R1(config-router)#net 192.168.6.0

R1(config-router)#end

%SYS-5-CONFIG_I: Configured from console by console

R1#write

Building configuration...

[OK]

R1#

R2 :

Router>enable

Router#config t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#host R2

R2(config)#int s0/0/1

R2(config-if)#ip address 192.168.6.2 255.255.255.0

R2(config-if)#no shut

%LINK-5-CHANGED: Interface Serial0/0/1, changed state to up

R2(config-if)#int s0/0/0

R2(config-if)#ip address 192.168.8.1 255.255.255.0

R2(config-if)#clock rate 56000

R2(config-if)#no shut

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down

R2(config-if)#int fa0/0

R2(config-if)#ip address 192.168.7.254 255.255.255.0

R2(config-if)#no shut

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R2(config-if)#exit

R2(config)#

R2(config)#router rip

R2(config-router)#net 192.168.6.0

R2(config-router)#net 192.168.7.0

R2(config-router)#red eigrp 200 metric 3

R2(config-router)#exit

R2(config)#router eigrp 200

R2(config-router)#net 192.168.8.0

R2(config-router)#red rip metric 1544 20000 255 1 1500

R2(config-router)#end

%SYS-5-CONFIG_I: Configured from console by console

R2#write

Building configuration...

[OK]

R2#

R3 :

Router>enable

Router#config t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#host R3

R3(config)#int fa0/0

R3(config-if)#ip address 192.168.10.254 255.255.255.0

R3(config-if)#no shut

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R3(config-if)#int fa0/1

R3(config-if)#ip address 192.168.11.254 255.255.255.0

R3(config-if)#no shut

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

R3(config-if)#exit

R3(config)#int s0/0/0

R3(config-if)#ip address 192.168.9.1 255.255.255.0

R3(config-if)#clock rate 56000

R3(config-if)#no shut

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down

R3(config-if)#exit

R3(config)#ip route 0.0.0.0 0.0.0.0 192.168.9.2

R3(config)#end

%SYS-5-CONFIG_I: Configured from console by console

R3#write

Building configuration...

[OK]

R3#

R4 :

Router>enable

Router#config t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#host R4

R4(config)#int s0/0/1

R4(config-if)#ip address 192.168.8.2 255.255.255.0

R4(config-if)#no shut

%LINK-5-CHANGED: Interface Serial0/0/1, changed state to up

R4(config-if)#int s0/0/0

R4(config-if)#ip address 192.168.12.1 255.255.255.0

R4(config-if)#clock rate 56000

R4(config-if)#no shut

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

R4(config-if)#int s0/1/0

R4(config-if)#ip address 192.168.9.2 255.255.255.0

R4(config-if)#no shut

%LINK-5-CHANGED: Interface Serial0/1/0, changed state to up

R4(config-if)#exit

R4(config)#int fa1/0

R4(config-if)#no shutdown

%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up

R4(config-if)#e

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up

xit

R4(config)#int fa0/0

R4(config-if)#no shutdown

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R4(config-if)#exit

R4(config)#router eigrp 200

R4(config-router)#net 192.168.8.0 0.0.0.255

R4(config-router)#net 192.168.12.0 0.0.0.255

R4(config-router)#net 192.168.9.0 0.0.0.255

R4(config-router)#redistribute static

R4(config-router)#exit

R4(config)#ip route 192.168.10.0 255.255.255.0 192.168.9.1

R4(config)#ip route 192.168.11.0 255.255.255.0 192.168.9.1

R4(config)#ip route 0.0.0.0 0.0.0.0 fa1/0 10

R4(config)#ip route 0.0.0.0 0.0.0.0 fa0/0 20

R4(config)#end

R4#write

Building configuration...

[OK]

R4#

R5 :

Router>enable

Router#confi t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#host R5

R5(config)#int s0/0/1

R5(config-if)#ip address 192.168.12.2 255.255.255.0

R5(config-if)#no shut

%LINK-5-CHANGED: Interface Serial0/0/1, changed state to down

R5(config-if)#int fa0/0

R5(config-if)#ip address 192.168.13.254 255.255.255.0

R5(config-if)#no shut

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R5(config-if)#int fa0/1

R5(config-if)#ip address 192.168.16.254 255.255.255.0

R5(config-if)#no shut

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

R5(config-if)#exit

R5(config)#router eigrp 200

R5(config-router)#net 192.168.16.0 0.0.0.255

R5(config-router)#net 192.168.13.0 0.0.0.255

R5(config-router)#net 192.168.12.0 0.0.0.255

R5(config-router)#end

R5#write

Building configuration...

[OK]

R5#

%SYS-5-CONFIG_I: Configured from console by console

R5#

网络环境已经搭建好了,下面我们开始测试网络环境的连通性:

首先,查看路由表 :

Switch#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

* - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route

Gateway of last resort is not set

C 192.168.1.0/24 is directly connected, Vlan1

C 192.168.2.0/24 is directly connected, Vlan2

C 192.168.3.0/24 is directly connected, Vlan3

C 192.168.4.0/24 is directly connected, Vlan4

C 192.168.5.0/24 is directly connected, FastEthernet0/5

R 192.168.6.0/24 [120/1] via 192.168.5.2, 00:00:16, FastEthernet0/5

R 192.168.7.0/24 [120/2] via 192.168.5.2, 00:00:16, FastEthernet0/5

R 192.168.8.0/24 [120/3] via 192.168.5.2, 00:00:16, FastEthernet0/5

R 192.168.9.0/24 [120/3] via 192.168.5.2, 00:00:16, FastEthernet0/5

R 192.168.10.0/24 [120/3] via 192.168.5.2, 00:00:16, FastEthernet0/5

R 192.168.11.0/24 [120/3] via 192.168.5.2, 00:00:16, FastEthernet0/5

R 192.168.12.0/24 [120/3] via 192.168.5.2, 00:00:16, FastEthernet0/5

R 192.168.13.0/24 [120/3] via 192.168.5.2, 00:00:16, FastEthernet0/5

R 192.168.16.0/24 [120/3] via 192.168.5.2, 00:00:16, FastEthernet0/5

Switch#

R1#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

* - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route

Gateway of last resort is not set

R 192.168.1.0/24 [120/1] via 192.168.5.1, 00:00:17, FastEthernet0/0

R 192.168.2.0/24 [120/1] via 192.168.5.1, 00:00:17, FastEthernet0/0

R 192.168.3.0/24 [120/1] via 192.168.5.1, 00:00:17, FastEthernet0/0

R 192.168.4.0/24 [120/1] via 192.168.5.1, 00:00:17, FastEthernet0/0

C 192.168.5.0/24 is directly connected, FastEthernet0/0

C 192.168.6.0/24 is directly connected, Serial0/0/0

R 192.168.7.0/24 [120/1] via 192.168.6.2, 00:00:26, Serial0/0/0

R 192.168.8.0/24 [120/3] via 192.168.6.2, 00:03:06, Serial0/0/0

R 192.168.9.0/24 [120/3] via 192.168.6.2, 00:02:58, Serial0/0/0

R 192.168.10.0/24 [120/3] via 192.168.6.2, 00:02:58, Serial0/0/0

R 192.168.11.0/24 [120/3] via 192.168.6.2, 00:02:58, Serial0/0/0

R 192.168.12.0/24 [120/3] via 192.168.6.2, 00:02:57, Serial0/0/0

R 192.168.13.0/24 [120/3] via 192.168.6.2, 00:02:57, Serial0/0/0

R 192.168.16.0/24 [120/3] via 192.168.6.2, 00:02:57, Serial0/0/0

R1#

R2#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

* - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route

Gateway of last resort is not set

R 192.168.1.0/24 [120/2] via 192.168.6.1, 00:00:03, Serial0/0/1

R 192.168.2.0/24 [120/2] via 192.168.6.1, 00:00:03, Serial0/0/1

R 192.168.3.0/24 [120/2] via 192.168.6.1, 00:00:03, Serial0/0/1

R 192.168.4.0/24 [120/2] via 192.168.6.1, 00:00:03, Serial0/0/1

R 192.168.5.0/24 [120/1] via 192.168.6.1, 00:00:03, Serial0/0/1

C 192.168.6.0/24 is directly connected, Serial0/0/1

C 192.168.7.0/24 is directly connected, FastEthernet0/0

C 192.168.8.0/24 is directly connected, Serial0/0/0

D 192.168.9.0/24 [90/2681856] via 192.168.8.2, 00:03:32, Serial0/0/0

R 192.168.10.0/24 [120/3] via 192.168.8.2, 00:03:32, Serial0/0/0

R 192.168.11.0/24 [120/3] via 192.168.8.2, 00:03:32, Serial0/0/0

D 192.168.12.0/24 [90/2681856] via 192.168.8.2, 00:03:32, Serial0/0/0

D 192.168.13.0/24 [90/2684416] via 192.168.8.2, 00:03:32, Serial0/0/0

D 192.168.16.0/24 [90/2684416] via 192.168.8.2, 00:03:32, Serial0/0/0

R2#

R3#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

* - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route

Gateway of last resort is 192.168.9.2 to network 0.0.0.0

C 192.168.9.0/24 is directly connected, Serial0/0/0

C 192.168.10.0/24 is directly connected, FastEthernet0/0

C 192.168.11.0/24 is directly connected, FastEthernet0/1

S* 0.0.0.0/0 [1/0] via 192.168.9.2

R3#

R4#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

* - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route

Gateway of last resort is not set

D EX 192.168.1.0/24 [170/7289856] via 192.168.8.1, 00:04:51, Serial0/0/1

D EX 192.168.2.0/24 [170/7289856] via 192.168.8.1, 00:04:51, Serial0/0/1

D EX 192.168.3.0/24 [170/7289856] via 192.168.8.1, 00:04:51, Serial0/0/1

D EX 192.168.4.0/24 [170/7289856] via 192.168.8.1, 00:04:51, Serial0/0/1

D EX 192.168.5.0/24 [170/7289856] via 192.168.8.1, 00:04:51, Serial0/0/1

D EX 192.168.6.0/24 [170/7289856] via 192.168.8.1, 00:04:51, Serial0/0/1

D EX 192.168.7.0/24 [170/7289856] via 192.168.8.1, 00:04:51, Serial0/0/1

C 192.168.8.0/24 is directly connected, Serial0/0/1

C 192.168.9.0/24 is directly connected, Serial0/1/0

S 192.168.10.0/24 [1/0] via 192.168.9.1

S 192.168.11.0/24 [1/0] via 192.168.9.1

C 192.168.12.0/24 is directly connected, Serial0/0/0

D 192.168.13.0/24 [90/2172416] via 192.168.12.2, 00:04:51, Serial0/0/0

D 192.168.16.0/24 [90/2172416] via 192.168.12.2, 00:04:51, Serial0/0/0

R4#

R5#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

* - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route

Gateway of last resort is not set

D EX 192.168.1.0/24 [170/7801856] via 192.168.12.1, 00:05:19, Serial0/0/1

D EX 192.168.2.0/24 [170/7801856] via 192.168.12.1, 00:05:19, Serial0/0/1

D EX 192.168.3.0/24 [170/7801856] via 192.168.12.1, 00:05:19, Serial0/0/1

D EX 192.168.4.0/24 [170/7801856] via 192.168.12.1, 00:05:19, Serial0/0/1

D EX 192.168.5.0/24 [170/7801856] via 192.168.12.1, 00:05:19, Serial0/0/1

D EX 192.168.6.0/24 [170/7801856] via 192.168.12.1, 00:05:19, Serial0/0/1

D EX 192.168.7.0/24 [170/7801856] via 192.168.12.1, 00:05:19, Serial0/0/1

D 192.168.8.0/24 [90/2681856] via 192.168.12.1, 00:05:19, Serial0/0/1

D 192.168.9.0/24 [90/2681856] via 192.168.12.1, 00:05:21, Serial0/0/1

D EX 192.168.10.0/24 [170/7289856] via 192.168.12.1, 00:05:21, Serial0/0/1

D EX 192.168.11.0/24 [170/7289856] via 192.168.12.1, 00:05:21, Serial0/0/1

C 192.168.12.0/24 is directly connected, Serial0/0/1

C 192.168.13.0/24 is directly connected, FastEthernet0/0

C 192.168.16.0/24 is directly connected, FastEthernet0/1

R5#

然后,用ping命令测试:

PC>ping 192.168.16.3

Pinging 192.168.16.3 with 32 bytes of data:

Reply from 192.168.16.3: bytes=32 time=219ms TTL=123

Reply from 192.168.16.3: bytes=32 time=203ms TTL=123

Reply from 192.168.16.3: bytes=32 time=172ms TTL=123

Reply from 192.168.16.3: bytes=32 time=203ms TTL=123

Ping statistics for 192.168.16.3:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 172ms, Maximum = 219ms, Average = 199ms

PC>

PC>ping 192.168.10.1

Pinging 192.168.10.1 with 32 bytes of data:

Reply from 192.168.10.1: bytes=32 time=205ms TTL=123

Reply from 192.168.10.1: bytes=32 time=129ms TTL=123

Reply from 192.168.10.1: bytes=32 time=187ms TTL=123

Reply from 192.168.10.1: bytes=32 time=187ms TTL=123

Ping statistics for 192.168.10.1:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 129ms, Maximum = 205ms, Average = 177ms

PC>

在R5上做DHCP服务:

R5#conf t

Enter configuration commands, one per line. End with CNTL/Z.

R5(config)#ip dhcp pool R5Fa0/1

R5(dhcp-config)#dns-server 192.168.16.3

R5(dhcp-config)#default-router 192.168.16.254

R5(dhcp-config)#network 192.168.16.0 255.255.255.0

R5(dhcp-config)#end

%SYS-5-CONFIG_I: Configured from console by console

R5#write

Building configuration...

[OK]

R5#

航天恒星系统集成项目组_第2张图片

航天恒星系统集成项目组_第3张图片

试验成功。

注释:SSID

SSID/ESSID(Service Set Identifier)也就是“服务区标识符匹配”、“业务组标识符”的简称,最多可以有32 个字符,通俗的说,它就好比有线局域网中的“工作组”标识一样或好比是无线客户端与无线路由器之间的一道口令一样,只有在完全相同的前提下才能让无线网卡访问无线路由器,这也是保证无线网络安全的重要措施之一。

配备无线网卡的无线工作站必须填写正确的SSID,并与无线访问点(AP 或无线路由器)的SSID相同,才能访问AP;如果出示的SSID 与AP 或无线路由器的SSID 不同,那么AP 将拒绝他通过本服务区/工作组上网。因此可以认为SSID 是一个简单的口令,从而提供口令认证机制,实现一定的安全。

要更改无线网卡的SSID 除了在无线网卡配置程序中更改外,还可在操作系统中直接更改。