说明:
1、用小凡搭建实验环境。
2、使用4台3640模拟路由器,1台3640模拟交换机。
3、交换机的fa0/14端口桥接真机vmnet1网卡。
IP地址的划分如下:
R1
F0/0:172.16.3.1/24
Ser1/2:192.168.4.1/24
R2
F0/0:192.168.5.2/24
Ser1/2:192.168.4.2/24
R3
F0/0:192.168.5.3/24
Ser1/1:192.168.6.3/24
R4
F0/0:172.16.7.4/24
Ser1/1:192.168.6.4/24
真机:172.16.3.2/24,网关:172.16.3.1
实验目的:
1、各路由器能学习3条route路由。
2、从真机与R4能互相ping通。
网络拓朴如下图:

实验步骤:
1、按照上图用小凡模拟接好实验环境,SW1的fa0/8与真的vmnet1网卡桥接。
2、使用SecureCRT 5.1控制台开启R1、R2、R3、R4、SW1。
3、配置各设备如下:
R1:
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R1
R1(config)#no ip domain-loo
R1(config)#line co 0
R1(config-line)#no exec-t
R1(config-line)#logg sy
R1(config-line)#end
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int f0/0
R1(config-if)#speed 100
R1(config-if)#duplex full
R1(config-if)#ip add 172.16.3.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#int ser1/2
R1(config-if)#ip add 192.168.4.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#
R1(config)#
*Mar 1 00:04:06.903: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar 1 00:04:07.359: %LINK-3-UPDOWN: Interface Serial1/2, changed state to up
*Mar 1 00:04:07.903: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R4(config)#
*Mar 1 00:04:08.359: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/2, changed state to up
R1(config)#
R2:
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R2
R2(config)#no ip domain-loo
R2(config)#line co 0
R2(config-line)#no exec-t
R2(config-line)#logg sy
R2(config-line)#end
R2#
*Mar 1 00:06:36.319: %SYS-5-CONFIG_I: Configured from console by console
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#int f0/0
R2(config-if)#speed 100
R2(config-if)#duplex full
R2(config-if)#ip add 192.168.5.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#exit
R2(config)#int ser1/2
R2(config-if)#ip add 192.168.4.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#exit
R2(config)#
*Mar 1 00:07:26.183: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar 1 00:07:26.807: %LINK-3-UPDOWN: Interface Serial1/2, changed state to up
*Mar 1 00:07:27.183: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R2(config)#
*Mar 1 00:07:27.807: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/2, changed state to up
R2(config)#
R3:
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#host R3
R3(config)#no ip domain-loo
R3(config)#line co 0
R3(config-line)#no exec-t
R3(config-line)#logg sy
R3(config-line)#end
R3#
*Mar 1 00:08:11.171: %SYS-5-CONFIG_I: Configured from console by console
R3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#int f0/0
R3(config-if)#speed 100
R3(config-if)#duplex full
R3(config-if)#ip add 192.168.5.3 255.255.255.0
R3(config-if)#no sh
R3(config-if)#exit
R3(config)#int ser1/1
R3(config-if)#ip add 192.168.6.3 255.255.255.0
R3(config-if)#no sh
R3(config-if)#exit
R3(config)#
*Mar 1 00:09:33.963: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar 1 00:09:34.411: %LINK-3-UPDOWN: Interface Serial1/1, changed state to up
*Mar 1 00:09:34.963: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R3(config)#
*Mar 1 00:09:35.411: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to up
R3(config)#
R4:
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R4
R4(config)#no ip domain-loo
R4(config)#line co 0
R4(config-line)#no exec-t
R4(config-line)#logg sy
R4(config-line)#end
R4#
*Mar 1 00:10:13.003: %SYS-5-CONFIG_I: Configured from console by console
R4#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R4(config)#int f0/0
R4(config-if)#speed 100
R4(config-if)#duplex full
R4(config-if)#ip add 172.16.7.4 255.255.255.0
R4(config-if)#no sh
R4(config-if)#exit
R4(config)#int ser1/1
R4(config-if)#ip add 192.168.6.4 255.255.255.0
R4(config-if)#no sh
R4(config-if)#exit
R4(config)#
R4(config)#
*Mar 1 00:10:48.619: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar 1 00:10:49.279: %LINK-3-UPDOWN: Interface Serial1/1, changed state to up
*Mar 1 00:10:49.619: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R4(config)#
*Mar 1 00:10:50.279: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to up
R4(config)#
SW1:
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host SW1
SW1(config)#no ip domain-loo
SW1(config)#line co 0
SW1(config-line)#no exec-t
SW1(config-line)#logg sy
SW1(config-line)#end
SW1#
*Mar 1 00:19:01.427: %SYS-5-CONFIG_I: Configured from console by console
SW1#vlan dat
SW1(vlan)#vlan 2
VLAN 2 added:
Name: VLAN0002
SW1(vlan)#vlan 3
VLAN 3 added:
Name: VLAN0003
SW1(vlan)#exit
APPLY completed.
Exiting....
SW1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#int fa0/15
SW1(config-if)#sw mo acc
SW1(config-if)#sw acc vlan 2
SW1(config-if)#exit
SW1(config)#int fa0/8
SW1(config-if)#sw mo acc
SW1(config-if)#sw acc vlan 2
SW1(config-if)#exit
SW1(config)#int fa0/12
SW1(config-if)#sw mo acc
SW1(config-if)#sw acc vlan 3
SW1(config-if)#exit
SW1(config)#exit
SW1#show vlan-sw b
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/0, Fa0/1, Fa0/2, Fa0/3
Fa0/4, Fa0/5, Fa0/6, Fa0/7
Fa0/9, Fa0/10, Fa0/11, Fa0/13
Fa0/14
2 VLAN0002 active Fa0/8, Fa0/15
3 VLAN0003 active Fa0/12
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
SW1#
*Mar 1 00:22:27.187: %SYS-5-CONFIG_I: Configured from console by console
SW1#
4、在路由器R1上做rip路由协议,并且为版式本1,如下设置:
R1(config)#router rip
R1(config-router)#network 172.16.0.0
R1(config-router)#network 192.168.4.0
R1(config-router)#exit
R1(config)#exit
R1#
*Mar 1 00:19:08.063: %SYS-5-CONFIG_I: Configured from console by console
R1#
0
上一篇:14招教你保护路由器安全的方法
下一篇:没有了
下一篇:没有了
最新评论共有 0 位网友发表了评论
查看所有评论
发表评论
