网络方向实训-企业园区网络设计-Doing,,,
Posted Jucway
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了网络方向实训-企业园区网络设计-Doing,,,相关的知识,希望对你有一定的参考价值。
文章目录
网络实验课程设计
时间⏲ | 事件🌍 | 备注🇳🇦 |
---|---|---|
2022.06.15 | 前6个需求 | Jucw |
2022.06.16 | 需求7-11 | Jucw |
2022.06.16晚 | 需求12-16 | jucw |
直接将实验笔记导入博客导致部分图片链接失效,后续完成实验再修改;
网络拓扑
备注:设备的编号和指导书上的编号不一样;我搭建的时候是按照自己的顺序给设备编号;
公司A
公司B
INTERNET
路由器
R 1 路由器
Router>enable
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f0/0
Router(config-if)#ip address 24.1.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#int f0/1
Router(config-if)#ip address 12.1.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
Router(config-if)#exit
R2 路由器
Router>enable
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f0/0
Router(config-if)#ip address 10.1.1.2 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#int f0/1
Router(config-if)#ip address 24.1.1.2 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#int f1/0
Router(config-if)#ip address 34.1.1.2 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up
Router(config-if)#exit
Router(config)#exit
R3 路由器
Router(config)#hostname R3
R3(config)#int f0/0
R3(config-if)#ip address 34.1.1.3 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#
%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)#exit
R3(config)#int f0/1
R3(config-if)#ip address 13.1.1.3 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
R3(config-if)#exit
R3(config)#int f1/0
R3(config-if)#ip address 200.100.36.3 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up
R3(config-if)#exit
R4 路由器
Router(config)#hostname R4
R4(config)#int f0/0
R4(config-if)#ip address 12.1.1.4 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#
%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)#int f0/1
R4(config-if)#ip address 13.1.1.4 255.255.255
^
% Invalid input detected at '^' marker.
R4(config-if)#ip address 13.1.1.4 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
R4(config-if)#exit
R4(config)#int f1/0
R4(config-if)#ip address 192.168.1.4 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up
R4(config-if)#exit
R5路由器
R5(config)#int f0/0
R5(config-if)#ip address 202.100.36.5 255.255.255.0
R5(config-if)#no shutdown
R5(config-if)#
%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)#exit
R5(config)#int f0/1
R5(config-if)#ip address 202.100.68.5 255.255.255.0
R5(config-if)#no shutdown
R5(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
R5(config-if)#exit
R5(config)#int s
R5(config)#int serial 0/3/0
R5(config-if)#ip address 202.100.67.5 255.255.255.0
R5(config-if)#no shutdown
R6 路由器
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R6
R6(config)#int f0/0
R6(config-if)#ip address 202.100.78.6 255.255.255.0
R6(config-if)#no shutdown
R6(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
R6(config-if)#exit
R6(config)#int f0/1
R6(config-if)#ip address 202.100.3.6 255.255.255.0
R6(config-if)#no shutdown
R6(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
R6(config-if)#exit
R6(config)#int se
R6(config)#int serial 0/3/0
R6(config-if)#ip address 202.100.67.6 255.255.255.0
R6(config-if)#no shutdown
R6(config-if)#
%LINK-5-CHANGED: Interface Serial0/3/0, changed state to up
R6(config-if)#exit
R7 路由器
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R7
R7(config)#int f0/0
R7(config-if)#ip address 202.100.78.7 255.255.255.0
R7(config-if)#no shutdown
R7(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R7(config-if)#exit
R7(config)#int f0/1
R7(config-if)#ip address 202.100.89.7 255.255.255.0
R7(config-if)#no shutdown
R7(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
R7(config-if)#eixt
^
% Invalid input detected at '^' marker.
R7(config-if)#exit
R7(config)#int f1/0
R7(config-if)#ip address 202.100.58.7 255.255.255.0
R7(config-if)#no shutdown
R7(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up
R7(config-if)#exit
R7(config)#
R7(config)#exit
R8 路由器
R8(config)#int f0/0
R8(config-if)#ip address 202.100.68.8 255.255.255.0
R8(config-if)#no shutdown
R8(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R8(config-if)#exit
R8(config)#int f0/1
R8(config-if)#ip address 202.100.89.8 255.255.255.0
R8(config-if)#no sh
R8(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
R8(config-if)#exit
R8(config)#int f1/0
R8(config-if)#ip address 202.100.109.8 255.255.255.0
R8(config-if)#no sh
R9 路由器
Router(config)#hostname R9
R9(config)#int f0/0
R9(config-if)#ip address 202.100.109.9 255.255.255.0
R9(config-if)#no sh
R9(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R9(config-if)#exit
R9(config)#int f0/1
R9(config-if)#ip address 202.100.4.9 255.255.255.0
R9(config-if)#no sh
R10 路由器
Router(config)#hostname R10
R10(config)#int f0/1
R10(config-if)#ip add 202.100.58.10 255.255.255.0
R10(config-if)#no shutdown
R10(config)#int f0/0.3
R10(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.3, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.3, changed state to up
R10(config-subif)#en
R10(config-subif)#encapsulation d
R10(config-subif)#encapsulation dot1Q 30
R10(config-subif)#ip add 172.16.30.254 255.255.255.0
R10(config-subif)#exit
R10(config)#int f0/0.1
R10(config-subif)#en
R10(config-subif)#encapsulation d
R10(config-subif)#encapsulation dot1Q 10
R10(config-subif)#ip add 172.16.10.254 255.255.255.0
R10(config-subif)#exi
R10(config-subif)#exit
R10(config)#int f0/0.2
R10(config-subif)#en
R10(config-subif)#encapsulation di
R10(config-subif)#encapsulation d
R10(config-subif)#encapsulation dot1Q 20
R10(config-subif)#ip add 172.16.20.254 255.255.255.0
R10(config-subif)#exit
R10(config)#ip routing
交换机
三层交换机
SW1(config)#
SW1(config)#vlan 10
SW1(config-vlan)#vlan 20
SW1(config-vlan)#vlan 30
SW1(config-vlan)#vlan 40
SW1(config-vlan)#exit
SW1(config)#int vlan 10
SW1(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up
SW1(config-if)#ip add 192.168.10.254 255.255.255.0
SW1(config-if)#no sh
SW1(config-if)#int vlan 20
SW1(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up
SW1(config-if)#ip add 192.168.20.254 255.255.255.0
SW1(config-if)#no sh
SW1(config-if)#int vlan 30
SW1(config-if)#
%LINK-5-CHANGED: Interface Vlan30, changed state to up
SW1(config-if)#ip add 192.168.30.254 255.255.255.0
SW1(config-if)#no sh
SW1(config-if)#int vlan 40
SW1(config-if)#
%LINK-5-CHANGED: Interface Vlan40, changed state to up
SW1(config-if)#ip add 192.168.40.254 255.255.255.0
SW1(config-if)#no sh
SW1(config-if)#
SW1(config)#int range f0/1-3
SW1(config-if-range)#switchport trunk encapsulation dot1q
SW1(config-if-range)#switchport mode trunk
SW1(config-if-range)#switchport trunk allowed vlan all
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#int f0/4
SW1(config-if)#no sw
SW1(config-if)#no switchport
SW1(config-if)#ip add 192.168.1.1 255.255.255.0
SW1(config-if)#exit
SW1(config)#
SW1(config)#exit
SW1#
%SYS-5-CONFIG_I: Configured
SW1(config)#ip routing # 启动路由
查看路由
SW1#show ip route
二层交换机
SW 2
SW2(config)#vlan 10
SW2(config-vlan)#vlan 20
SW2(config-vlan)#
SW2(config-vlan)#int f0/3
SW2(config-if)#swit
SW2(config-if)#switchport mode tr
SW2(config-if)#switchport mode trunk
SW2(config-if)#sw
SW2(config-if)#switchport tr
SW2(config-if)#switchport trunk all
SW2(config-if)#switchport trunk allowed vl
SW2(config-if)#switchport trunk allowed vlan all
SW2(config-if)#int f0/1
SW2(config-if)#sw
SW2(config-if)#switchport mode access
SW2(config-if)#sw
SW2(config-if)#switchport acc
SW2(config-if)#switchport access vlan 10
SW2(config-if)#int f0/2
SW2(config-if)#sw
SW2(config-if)#switchport mode a
SW2(config-if)#switchport mode access
SW2(config-if)#sw
SW2(config-if)#switchport acc
SW2(config-if)#switchport access vlan 20
SW 3
Switch(config)#hostname SW3
SW3(config)#vlan 20
SW3(config-vlan)#vlan 30
SW3(config-vlan)#int f0/3
SW3(config-if)#sw
SW3(config-if)#switchport mode tr
SW3(config-if)#switchport mode trunk
SW3(config-if)#sw
SW3(config-if)#switchport tr
SW3(config-if)#switchport trunk all
SW3(config-if)#switchport trunk allowed vl
SW3(config-if)#switchport trunk allowed vlan all
SW3(config-if)#int f0/1
SW3(config-if)#sw
SW3(config-if)#switchport mode ac
SW3(config-if)#switchport mode access
SW3(config-if)#sw
SW3(config-if)#switchport acc
SW3(config-if)#switchport access vlan 20
SW3(config-if)#int f0/2
SW3(config-if网络方向实训-企业园区网络设计-Had Done