《高级路由交换课程设计.doc》由会员分享,可在线阅读,更多相关《高级路由交换课程设计.doc(9页珍藏版)》请在三一办公上搜索。
1、 高级路由交换课程设计 指导老师: 班级:网络五班 姓名:廖荣森 学号: 一 网络需求 1. 公司内部要有详细的vlan规划信息 2. 公司内部网络要具备一定的可管理性 3. 本私有网络要使用三种封装技术完成 4. 本私有网络路由要使用三种技术二 拓扑图三 Ip规划汇聚层交换机规划名称 IP网段 Vlan 网关 销售部 S1 192.168.1.0/24 Vlan100 192.168.1.1技术部 S2 192.168.2.0/24 Vlan200 192.168.2.1财务部 S3 192.168.3.0/24 Vlan300 192.168.3.1核心层S0交换机规划Vlan 网络 Vl
2、an网关 Vlan100 192.168.1.0/24 192.168.1.1Vlan200 192.168.2.0/24 192.168.2.1Vlan200 192.168.3.0/24 192.168.3.1路由器配置R1 E1 10.0.0.2 连接核心交换机24口 10.0.0.1 S1 100.100.100.100 接入外网 Internet四 网络配置汇聚层交换机:S1S1enS1#configS1 (Config)#vlan 100S1 (Config-Vlan100)#switchport interface ethernet 0/0/1-20S1 (Config-Vlan
3、100)#exitS1 (Config)#interface ethernet 0/0/24S1 (Config-Ethernet0/0/24)#switchport mode trunkSet the port Ethernet0/0/24 mode trunk successfullyS1 (Config-Ethernet0/0/24)#exitS1 (Config)#exit配置telnetS1 (Config)#interface vlan 1S1 (Config-If-Vlan1)#ip address 192.168.1.253 255.255.255.0S1 (Config-If
4、-Vlan1)#S1 (Config-If-Vlan1)#exitS1 (Config)#telnet-server enableS1 (Co fig)#telnet-user kaifabu password 0 111S2S2enS2#configS2 (Config)#vlan 200S2 (Config-Vlan100)#switchport interface ethernet 0/0/1-22S2 (Config-Vlan100)#exitS2 (Config)#interface ethernet 0/0/24S2 (Config-Ethernet0/0/24)#switchpo
5、rt mode trunkSet the port Ethernet0/0/24 mode TRUNK successfullyS2 (Config-Ethernet0/0/24)#exitS2 (Config)#exit配置telnetS2 (Config)#interface vlan 1S2 (Config-If-Vlan1)#ip address 192.168.2.253 255.255.255.0S2 (Config-If-Vlan1)#S2 (Config-If-Vlan1)#exitS2 (Config)#telnet-server enableS2 (Config)#teln
6、et-user yewubu password 0 222S3S3enS3#configS3 (Config)#vlan 300S3 (Config-Vlan100)#switchport interface ethernet 0/0/1-22S3 (Config-Vlan100)#exitS3 (Config)#interface ethernet 0/0/24S3 (Config-Ethernet0/0/24)#switchport mode trunkSet the port Ethernet0/0/24 mode TRUNK successfullyS3 (Config-Etherne
7、t0/0/24)#exitS3 (Config)#exit配置telnetS3 (Config)#interface vlan 1S3 (Config-If-Vlan1)#ip address 192.168.3.253 255.255.255.0S3 (Config-If-Vlan1)#S3 (Config-If-Vlan1)#exitS3 (Config)#telnet-server enableS3 (Config)#telnet-user bangongshi password 0 333核心交换机 S0S0(Config)#vlan 100S0 (Config-Vlan100)#sw
8、itchport interface ethernet 0/0/1Set the port Ethernet0/0/1 access vlan 100 successfullyS0 (Config-Vlan100)#exitS0 (Config)#interface vlan 100S0 (Config-If-Vlan100)#ip address 192.168.1.1 255.255.255.0S0 (Config-If-Vlan100)#exitS0 (Config)#vlan 200S0 (Config-Vlan100)#switchport interface ethernet 0/
9、0/2Set the port Ethernet0/0/2 access vlan 200 successfullyS0 (Config-Vlan200)#exitS0 (Config)#interface vlan 200S0 (Config-If-Vlan200)#ip address 192.168.2.1 255.255.255.0S0 (Config-If-Vlan200)#exitS0 (Config)#vlan 300S0 (Config-Vlan100)#switchport interface ethernet 0/0/3Set the port Ethernet0/0/3
10、access vlan 300 successfullyS0 (Config-Vlan300)#exitS0 (Config)#interface vlan 300S0 (Config-If-Vlan300)#ip address 192.168.3.1 255.255.255.0S0 (Config-If-Vlan300)#exitS0 (Config)# interface ethernet 0/0/24S0(Config-Ethernet0/0/24)#no switchportS0(Config-Ethernet0/0/24)#ip address 10.0.0.1 255.255.2
11、55.0S0(Config-Ethernet0/0/24)#exitS0(Config)#interface ethernet 0/0/1S0(Config-Ethernet0/0/1)#switchport mode trunkS0(Config-Ethernet0/0/1)# interface ethernet 0/0/2S0(Config-Ethernet0/0/2)# switchport mode trunkS0(Config-Ethernet0/0/2)# interface ethernet 0/0/3S0(Config-Ethernet0/0/3)# switchport m
12、ode trunkS0(Config-Ethernet0/0/3)#exit配置telnetS0 (Config)#telnet-server enableS0(Config)#telnet-user XXgongsi password 0 444添加静态路由S0(Config)#route 0.0.0.0 0.0.0.0 10.0.0.2R1HDLC封装由于默认是hdlc封装,不需作配置PPP封装R1r#configR1(Config)#interface s2R1(Config-Serial2)#ppp authentication chap %LINEPROTO-5-UPDOWN: Li
13、ne protocol on Interface Serial2, changed state to UPR1(Config-Serial2)#ppp chap host rdyR1(Config-Serial2)#ppp chap password 0 123R1(Config-Serial2)#exitR1(Config)#user aaa password 0 123Router(Config)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2, changedstate to UPRouter(Config)#exitRou
14、ter#ping 200.100.100.101Sending 5 56-byte ICMP Echos to 200.100.100.2, timeout is 2 seconds.!Success rate is 100 percent (5/5), round-trip min/avg/max = 16/16/16 msFRM封装R1#configR1(Config)#interface serial 2R1(Config-Serial2)#ip address 200.100.100.100 255.255.255.0R1(Config-Serial2)#encapsulation f
15、rame-relayR1(Config-Serial2)#frame-relay local-dlci 21R1(Config-Serial2)#frame-relay intf-type dteR1(Config-Serial2)#frame-relay lmi-type ansi R1(Config-Serial2)#frame-relay map ip 200.100.100.101 17 broadcastR1#ping 200.100.100.101Sending 5 56-byte ICMP Echos to 200.100.100.101, timeout is 2 second
16、s.!Success rate is 100 percent (5/5),round-trip min/avg/max = 1/1/1 ms配置静态路由R1#configR1(Config)#ip route 0.0.0.0 0.0.0.0 200.100.100.101RIPR1#configR1(Config)#interface e0R1(Config-Ethernet0)#ip address 10.0.0.2 255.255.255.0R1(Config-Ethernet0)#no shutR1(Config-Ethernet0)#exitR1(Config)#interface s
17、2R1(Config-Serial2)#ip address 200.100.100.100 255.255.255.0R1(Config-Serial2)#no shutR1(Config-Serial2)#exitR1(Config)#router ripR1(Config-R1-Rip)#exitR1(Config)#interface ethernet 0R1(Config-Ethernet0)#ip rip workR1(Config-Ethernet0)#ip rip receive version v1R1(Config-Ethernet0)#exitR1(Config)#int
18、erface s2R1(Config-Serial2)#ip rip workR1(Config-Serial2)#ip rip receive version v1R1(Config-Serial2)#exitR1(Config)#exitR1#show ip routeCodes: C - connected, S - static, R - RIP derived, O - OSPF derived A - OSPF ASE, B - BGP derived, D - DVMRP derived Destination Mask Nexthop Interface PreferenceC
19、 10.0.0.2 255.255.255.255 0.0.0.0 Ethernet0 0C 127.0.0.0 255.0.0.0 0.0.0.0 Loopback 0C 127.0.0.1 255.255.255.255 0.0.0.0 Loopback 0C 200.100.100.0 255.255.255.0 0.0.0.0 Serial2 0C 200.100.100.100 255.255.255.255 0.0.0.0 Serial2 0R1#show ip routeCodes: C - connected, S - static, R - RIP derived, O -
20、OSPF derived A - OSPF ASE, B - BGP derived, D - DVMRP derived Destination Mask Nexthop Interface PreferenceC 10.0.0.2 255.255.255.255 0.0.0.0 Ethernet0 0R 30.0.0.0 255.0.0.0 200.100.100.101 Serial2 120C 127.0.0.0 255.0.0.0 0.0.0.0 Loopback 0C 127.0.0.1 255.255.255.255 0.0.0.0 Loopback 0C 200.100.100
21、.0 255.255.255.0 0.0.0.0 Serial2 0C 200.100.100.100 255.255.255.255 0.0.0.0 Serial2 0R1#ping 30.0.0.1Sending 5 56-byte ICMP Echos to 30.0.0.1, timeout is 2 seconds.!Success rate is 100 percent (5/5), round-trip min/avg/max = 16/16/16 msOSPF R1#configR1(Config)#in s2R1(Config-Serial2)#ip address 200.
22、100.100.100 255.255.255.0R1(Config-Serial2)#exitR1(Config)#interface ethernet 0R1(Config-Ethernet0)#ip address 10.0.0.2 255.255.255.0R1(Config-Ethernet0)#no shutR1(Config-Ethernet0)#exitR1(Config)#router ospfR1(Config-Router-Ospf)#network 200.100.100.100 255.255.255.0 area 0R1(Config-Router-Ospf)#ne
23、twork 30.0.0.2 255.255.255.0 area 0R1(Config-Router-Ospf)#exitR1(Config)#interface ethernet 0R1(Config-Ethernet0)#ip ospf enable area 0R1(Config-Ethernet0)#exitR1(Config)#interface serial 2R1(Config-Serial2)#ip ospf enable area 0R1(Config-Serial2)#exitR1(Config)#interface serial 2R1(Config-Serial2)#
24、ip address 200.100.100.100 255.255.255.0R1(Config-Serial2)#no shutR1(Config-Serial2)#exitR1(Config)#exitR1#show ip routeCodes: C - connected, S - static, R - RIP derived, O - OSPF derived A - OSPF ASE, B - BGP derived, D - DVMRP derived Destination Mask Nexthop Interface PreferenceC 10.0.0.2 255.255
25、.255.255 0.0.0.0 Ethernet0 0O 30.0.0.0 255.255.255.0 200.100.100.101 Serial2 110C 127.0.0.0 255.0.0.0 0.0.0.0 Loopback 0C 127.0.0.1 255.255.255.255 0.0.0.0 Loopback 0C 200.100.100.0 255.255.255.0 0.0.0.0 Serial2 0C 200.100.100.100 255.255.255.255 0.0.0.0 Serial2 0Router#ping 30.0.0.1Sending 5 56-byte ICMP Echos to 30.0.0.1, timeout is 2 seconds.!Success rate is 100 percent (5/5), round-trip min/avg/max = 16/16/16 ms测试成功