foreword
The small and medium-sized network architecture solution. This is the campus network of our school designed by me. It has complete functions. As a course design, I think it can still be used. If it is used as a graduation project, you need to continue to add things. Show me below. Topology diagrams and messy code and test results. Visio diagrams, Cisco topology diagrams, wiring diagrams for specific classrooms, and specific documents are not included in this article. If you need them, you can add me. Only Cisco simulators are included in this article.
1. Related switch configuration
3. "Firewall" router configuration
5. Wireless network configuration
1. Test connectivity between campuses
2. DHCP automatically obtains IP status
1. Curriculum design catalog (this is the template given by the professor, if you write it yourself, you can refer to the content inside to supplement it)
1.1 Background of topic selection
2. System Design Principles and Realization Goals
2.1 Network system design principles
2.3 Key technical description of network design
3.2 Network system access design and security design
5. Network configuration design
5.1 Related switch configuration
5.3 "Firewall" router configuration
5.5 Configure wireless network
5.6 Automatic configuration of some host IPs in the area, test the dhcp server
7.1 Network connectivity test of each campus
2. Campus network topology
3. Network configuration (just refer to it, the general idea is this, the code is a bit messy)
1. Related switch configuration
核心交换机1
Switch>en
Switch#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname Core-SW1
Core-SW1(config)#vlan 10
Core-SW1(config-vlan)#vlan 20
Core-SW1(config-vlan)#vlan 30
Core-SW1(config-vlan)#vlan 40
Core-SW1(config-vlan)#exit
Core-SW1(config)#int vlan 10
Core-SW1(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up
Core-SW1(config-if)#ip address 192.168.10.254 255.255.255.0
Core-SW1(config-if)#standby 10 ip 192.168.10.252
Core-SW1(config-if)#standby 10 priority 120
Core-SW1(config-if)#standby 10 pree
Core-SW1(config-if)#standby 10 preempt
Core-SW1(config-if)#standby 10 track f0/1
Core-SW1(config-if)#standby 10 track f0/2
Core-SW1(config-if)#exit
Core-SW1(config)#int vlan 20
Core-SW1(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up
Core-SW1(config-if)#ip address 192.168.20.254 255.255.255.0
Core-SW1(config-if)#standby 20 ip 192.168.20.252
Core-SW1(config-if)#standby 20 priority 120
Core-SW1(config-if)#standby 20 preempt
Core-SW1(config-if)#standby 20 track f0/1
Core-SW1(config-if)#standby 20 track f0/2
Core-SW1(config-if)#exit
Core-SW1(config)#int vlan 30
Core-SW1(config-if)#
%LINK-5-CHANGED: Interface Vlan30, changed state to up
Core-SW1(config-if)#ip address 192.168.30.254 255.255.255.0
Core-SW1(config-if)#standby 30 ip 192.168.30.252
Core-SW1(config-if)#standby 30 track f0/1
Core-SW1(config-if)#standby 30 track f0/2
Core-SW1(config-if)#exit
Core-SW1(config)#int vlan 40
Core-SW1(config-if)#
%LINK-5-CHANGED: Interface Vlan40, changed state to up
Core-SW1(config-if)#ip address 192.168.40.254 255.255.255.0
Core-SW1(config-if)#standby 40 ip 192.168.40.252
Core-SW1(config-if)#standby 40 track f0/1
Core-SW1(config-if)#standby 40 track f0/2
Core-SW1(config-if)#exit
Core-SW1(config)#int f0/1
Core-SW1(config-if)#no sw
Core-SW1(config-if)#no switchport
Core-SW1(config-if)#ip address 192.168.4.2 255.255.255.0
Core-SW1(config-if)#no shu
Core-SW1(config-if)#no shutdown
Core-SW1(config-if)#exit
Core-SW1(config)#int f0/2
Core-SW1(config-if)#no switchport
Core-SW1(config-if)#ip address 192.168.6.2 255.255.255.0
Core-SW1(config-if)#no shutdown
Core-SW1(config-if)#exit
Core-SW1(config)#ip routing
Core-SW1(config)#int port-channel 1
Core-SW1(config-if)#swit
Core-SW1(config-if)#switchport tr
Core-SW1(config-if)#switchport trunk e
Core-SW1(config-if)#switchport trunk encapsulation d
Core-SW1(config-if)#switchport trunk encapsulation dot1q
Core-SW1(config-if)#sw
Core-SW1(config-if)#switchport m
Core-SW1(config-if)#switchport mode tr
Core-SW1(config-if)#switchport mode trunk
Core-SW1(config-if)#exit
Core-SW1(config)#int range f
Core-SW1(config)#int range fastEthernet 0/3-4
Core-SW1(config-if-range)#sw
Core-SW1(config-if-range)#switchport tr
Core-SW1(config-if-range)#switchport trunk e
Core-SW1(config-if-range)#switchport trunk encapsulation d
Core-SW1(config-if-range)#switchport trunk encapsulation dot1q
Core-SW1(config-if-range)#sw
Core-SW1(config-if-range)#switchport m
Core-SW1(config-if-range)#switchport mode t
Core-SW1(config-if-range)#switchport mode trunk
Core-SW1(config-if-range)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan30, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan40, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to up
Core-SW1(config-if-range)#channl
%HSRP-6-STATECHANGE: Vlan20 Grp 20 state Speak -> Standby
%HSRP-6-STATECHANGE: Vlan20 Grp 20 state Standby -> Active
%HSRP-6-STATECHANGE: Vlan30 Grp 30 state Speak -> Standby
%HSRP-6-STATECHANGE: Vlan10 Grp 10 state Speak -> Standby
%HSRP-6-STATECHANGE: Vlan10 Grp 10 state Standby -> Active
%HSRP-6-STATECHANGE: Vlan30 Grp 30 state Standby -> A
Core-SW1(config-if-range)#channel
%HSRP-6-STATECHANGE: Vlan40 Grp 40 state Speak -> Standby
-
%HSRP-6-STATECHANGE: Vlan40 Grp 40 state Standby -> Active
channel-g
Core-SW1(config-if-range)#channel
Core-SW1(config-if-range)#channel-g
Core-SW1(config-if-range)#channel-group 1 mode on
Core-SW1(config-if-range)#
%LINK-5-CHANGED: Interface Port-channel1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to up
Core-SW1(config-if-range)#
Core-SW1(config-if-range)#exit
Core-SW1(config)#spa
Core-SW1(config)#spanning-tree mode pvst
Core-SW1(config)#sp
Core-SW1(config)#spanning-tree vlan 10,20 root primary
Core-SW1(config)#sp
Core-SW1(config)#spanning-tree vlan 30,40 root se
Core-SW1(config)#spanning-tree vlan 30,40 root secondary
Core-SW1(config)#
核心交换机2
Switch>
Switch>en
Switch#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#ho
Switch(config)#hostname Core-SW2
Core-SW2(config)#vlan 10
Core-SW2(config-vlan)#vlan 20
Core-SW2(config-vlan)#vlan 30
Core-SW2(config-vlan)#vlan 40
Core-SW2(config-vlan)#exit
Core-SW2(config)#int vlan 10
Core-SW2(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up
Core-SW2(config-if)#ip address 192.168.10.253 255.255.255.0
Core-SW2(config-if)#standby 10 ip 192.168.10.252
Core-SW2(config-if)#standby 10 track f0/1
Core-SW2(config-if)#standby 10 track f0/2
%HSRP-6-STATECHANGE: Vlan10 Grp 10 state Speak -> Standby
%HSRP-6-STATECHANGE: Vlan10 Grp 10 state Standby -> Active
Core-SW2(config-if)#exit
Core-SW2(config)#int vlan 20
Core-SW2(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up
Core-SW2(config-if)#ip address 192.168.20.253 255.255.255.0
Core-SW2(config-if)#standby 20 ip 192.168.20.252
Core-SW2(config-if)#standby 20 track f0/1
Core-SW2(config-if)#standby 20 track f0/2
Core-SW2(config-if)#
%HSRP-6-STATECHANGE: Vlan20 Grp 20 state Speak -> Standby
Core-SW2(config-if)#exit
Core-SW2(config)#int vlan 30
Core-SW2(config-if)#
%LINK-5-CHANGED: Interface Vlan30, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan30, changed state to up
Core-SW2(config-if)#ip address 192.168.30.253 255.255.255.0
Core-SW2(config-if)#standby 30 ip 192.168.30.252
Core-SW2(config-if)#standby 30 priority 120
Core-SW2(config-if)#standby 30
%HSRP-6-STATECHANGE: Vlan30 Grp 30 state Speak -> Standby
%HSRP-6-STATECHANGE: Vlan30 Grp 30 state Standby -> Active
% Incomplete command.
Core-SW2(config-if)#standby 30 pr
Core-SW2(config-if)#standby 30 preempt
Core-SW2(config-if)#standby 30 track f0/1
Core-SW2(config-if)#standby 30 track f0/2
Core-SW2(config-if)#exit
Core-SW2(config)#
Core-SW2(config)#int vlan 40
Core-SW2(config-if)#
%LINK-5-CHANGED: Interface Vlan40, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan40, changed state to up
Core-SW2(config-if)#ip address 192.168.40.253 255.255.255.0
Core-SW2(config-if)#standby 40 ip 192.168.40.252
Core-SW2(config-if)#standby 40
%HSRP-6-STATECHANGE: Vlan40 Grp 40 state Speak -> Standby
% Incomplete command.
Core-SW2(config-if)#standby 40 priority 120
Core-SW2(config-if)#standby 40 preempt
Core-SW2(config-if)#
%HSRP-6-STATECHANGE: Vlan40 Grp 40 state Standby -> Active
Core-SW2(config-if)#standby 40 track f0/1
Core-SW2(config-if)#standby 40 track f0/2
Core-SW2(config-if)#exit
Core-SW2(config)#int f0/1
Core-SW2(config-if)#no switchport
Core-SW2(config-if)#ip address 192.168.5.2
% Incomplete command.
Core-SW2(config-if)#ip address 192.168.5.2 255.255.255.0
Core-SW2(config-if)#no shutdown
Core-SW2(config-if)#exit
Core-SW2(config)#int f0/2
Core-SW2(config-if)#no switchport
Core-SW2(config-if)#ip address 192.168.7.2 255.255.255.0
Core-SW2(config-if)#no shutdown
Core-SW2(config-if)#exit
Core-SW2(config)#ip routing
Core-SW2(config)#int port-channel 1
Core-SW2(config-if)#switchport trunk encapsulation dot1q
Core-SW2(config-if)#switchport mode trunk
Core-SW2(config-if)#exit
Core-SW2(config)#
Core-SW2(config)#int range fastEthernet 0/3-4
Core-SW2(config-if-range)#switchport trunk encapsulation dot1q
Core-SW2(config-if-range)#switchport mode trunk
Core-SW2(config-if-range)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to up
Core-SW2(config-if-range)#channel-group 1 mode on
Core-SW2(config-if-range)#
%LINK-5-CHANGED: Interface Port-channel1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to up
Core-SW2(config-if-range)#
%HSRP-6-STATECHANGE: Vlan10 Grp 10 state Speak -> Standby
%HSRP-6-STATECHANGE: Vlan20 Grp 20 state Standby -> Active
%HSRP-6-STATECHANGE: Vlan10 Grp 10 state Standby -> Active
Core-SW2(config-if-range)#
%HSRP-6-STATECHANGE: Vlan20 Grp 20 state Speak -> Standby
%HSRP-6-STATECHANGE: Vlan10 Grp 10 state Speak -> Standby
Core-SW2(config-if-range)#exit
Core-SW2(config)#spanning-tree mode pvst
Core-SW2(config)#spanning-tree vlan 10,20 root se
Core-SW2(config)#spanning-tree vlan 10,20 root secondary
Core-SW2(config)#spanning-tree vlan 30,40 root pri
Core-SW2(config)#spanning-tree vlan 30,40 root primary
Core-SW2(config)#
Core-SW1>en
Core-SW1#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Core-SW1(config)#int range r
Core-SW1(config)#int range f
Core-SW1(config)#int range fastEthernet 0/5-8
Core-SW1(config-if-range)#sw
Core-SW1(config-if-range)#switchport t
Core-SW1(config-if-range)#switchport trunk e
Core-SW1(config-if-range)#switchport trunk encapsulation
Core-SW1(config-if-range)#switchport trunk encapsulation dot1q
Core-SW1(config-if-range)#sw
Core-SW1(config-if-range)#switchport m
Core-SW1(config-if-range)#switchport mode t
Core-SW1(config-if-range)#switchport mode trunk
核心交换机1把下端口设置为trunk
Core-SW1(config-if-range)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/6, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/6, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/7, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/7, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/8, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/8, changed state to up
Core-SW1(config-if-range)#
核心交换机2把下端口设置为trunk
Core-SW2#
Core-SW2#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Core-SW2(config)#
Core-SW2(config)#int range fastEthernet 0/5-8
Core-SW2(config-if-range)#switchport trunk encapsulation dot1q
Core-SW2(config-if-range)#switchport mode trunk
Core-SW2(config-if-range)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/6, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/6, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/7, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/7, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/8, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/8, changed state to up
Core-SW2(config-if-range)#
汇聚交换机1端口聚合:
Switch>
Switch>en
Switch#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#ip routing
Switch(config)#int port-channel 1
Switch(config-if)#switchport trunk encapsulation dot1q
Switch(config-if)#switchport mode trunk
Switch(config-if)#exit
Switch(config)#int range fastEthernet 0/3-4
Switch(config-if-range)#switchport trunk encapsulation dot1q
Switch(config-if-range)#switchport mode trunk
Switch(config-if-range)#channel-group 1 mode on
Switch(config-if-range)#
%LINK-5-CHANGED: Interface Port-channel1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to up
汇聚交换机2端口聚合:
Switch>en
Switch#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#ip routing
Switch(config)#int port-channel 1
Switch(config-if)#switchport trunk encapsulation dot1q
Switch(config-if)#switchport mode trunk
Switch(config-if)#ex
Switch(config)#int range fastEthernet 0/3-4
Switch(config-if-range)#switchport trunk encapsulation dot1q
Switch(config-if-range)#switchport mode trunk
Switch(config-if-range)#channel-group 1 mode on
Switch(config-if-range)#
%LINK-5-CHANGED: Interface Port-channel1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to up
Switch(config-if-range)#
Sw1
Switch>
Switch>en
Switch#
Switch#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#h
Switch(config)#hostname sw1
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 r
sw1(config)#int range
sw1(config)#int range f
sw1(config)#int range fastEthernet 0/1-2
sw1(config-if-range)#s
sw1(config-if-range)#sw
sw1(config-if-range)#switchport m
sw1(config-if-range)#switchport mode acc
sw1(config-if-range)#switchport mode access
sw1(config-if-range)#%SPANTREE-2-RECV_PVID_ERR: Received 802.1Q BPDU on non trunk FastEthernet0/2 VLAN1.
%SPANTREE-2-BLOCK_PVID_LOCAL: Blocking FastEthernet0/2 on VLAN0001. Inconsistent port type.
%SPANTREE-2-RECV_PVID_ERR: Received 802.1Q BPDU on non trunk FastEthernet0/1 VLAN1.
%SPANTREE-2-BLOCK_PVID_LOCAL: Blocking FastEthernet0/1 on VLAN0001. Inconsistent port type.
sw1(config-if-range)#sw
sw1(config-if-range)#switchport mo
sw1(config-if-range)#switchport mode tr
sw1(config-if-range)#switchport mode trunk
sw1(config-if-range)#
%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
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
sw1(config-if-range)#exit
sw1(config)#int range fastEthernet 0/3-4
sw1(config-if-range)#switchport mode access
sw1(config-if-range)#sw
sw1(config-if-range)#switchport acc
sw1(config-if-range)#switchport access vlan 10
sw1(config-if-range)#
Sw2
Switch>en
Switch#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#vlan 20
Switch(config-vlan)#vlan 30
Switch(config-vlan)#vlan 40
Switch(config-vlan)#exit
Switch(config)#int ran
Switch(config)#int range f
Switch(config)#int range fastEthernet 0/1-2
Switch(config-if-range)#sw
Switch(config-if-range)#switchport m
Switch(config-if-range)#switchport mode ac
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#%SPANTREE-2-RECV_PVID_ERR: Received 802.1Q BPDU on non trunk FastEthernet0/2 VLAN1.
%SPANTREE-2-BLOCK_PVID_LOCAL: Blocking FastEthernet0/2 on VLAN0001. Inconsistent port type.
%SPANTREE-2-RECV_PVID_ERR: Received 802.1Q BPDU on non trunk FastEthernet0/1 VLAN1.
%SPANTREE-2-BLOCK_PVID_LOCAL: Blocking FastEthernet0/1 on VLAN0001. Inconsistent port type.
Switch(config-if-range)#sw
Switch(config-if-range)#switchport m
Switch(config-if-range)#switchport mode t
Switch(config-if-range)#switchport mode t
Switch(config-if-range)#switchport mode trunk
Switch(config-if-range)#
%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
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
Switch(config-if-range)#exit
Switch(config)#int
Switch(config)#int r
Switch(config)#int range f
Switch(config)#int range fastEthernet 0/3
Switch(config-if-range)#exit
Switch(config)#int f0/3
Switch(config-if)#swit
Switch(config-if)#switchport m
Switch(config-if)#switchport mode ac
Switch(config-if)#switchport mode access
Switch(config-if)#sw
Switch(config-if)#switchport
% Incomplete command.
Switch(config-if)#
Switch(config-if)#sw
Switch(config-if)#switchport ac
Switch(config-if)#switchport access vlan 20
Switch(config-if)#
Sw3
Switch>
Switch>EN
Switch#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname sw3
sw3(config)#vlan 10
sw3(config-vlan)#vlan 20
sw3(config-vlan)#vlan 30
sw3(config-vlan)#vlan 40
sw3(config-vlan)#exit
sw3(config)#int range fastEthernet 0/1-2
sw3(config-if-range)#switchport mode access
sw3(config-if-range)#%SPANTREE-2-RECV_PVID_ERR: Received 802.1Q BPDU on non trunk FastEthernet0/2 VLAN1.
%SPANTREE-2-BLOCK_PVID_LOCAL: Blocking FastEthernet0/2 on VLAN0001. Inconsistent port type.
%SPANTREE-2-RECV_PVID_ERR: Received 802.1Q BPDU on non trunk FastEthernet0/1 VLAN1.
%SPANTREE-2-BLOCK_PVID_LOCAL: Blocking FastEthernet0/1 on VLAN0001. Inconsistent port type.
sw3(config-if-range)#switchport mode trunk
sw3(config-if-range)#
%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
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
sw3(config-if-range)#
sw3(config-if-range)#exit
sw3(config)#int f
sw3(config)#int fastEthernet 0/3
sw3(config-if)#switchport mode access
sw3(config-if)#switchport access vlan 30
sw3(config-if)#
Sw4
Switch>en
Switch#
Switch#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#h
Switch(config)#hostname sw4
sw4(config)#vlan 10
sw4(config-vlan)#vlan 20
sw4(config-vlan)#vlan 30
sw4(config-vlan)#vlan 40
sw4(config-vlan)#int range fastEthernet 0/1-2
sw4(config-if-range)#switchport mode access
sw4(config-if-range)#%SPANTREE-2-RECV_PVID_ERR: Received 802.1Q BPDU on non trunk FastEthernet0/2 VLAN1.
%SPANTREE-2-BLOCK_PVID_LOCAL: Blocking FastEthernet0/2 on VLAN0001. Inconsistent port type.
%SPANTREE-2-RECV_PVID_ERR: Received 802.1Q BPDU on non trunk FastEthernet0/1 VLAN1.
%SPANTREE-2-BLOCK_PVID_LOCAL: Blocking FastEthernet0/1 on VLAN0001. Inconsistent port type.
sw4(config-if-range)#switchport mode trunk
sw4(config-if-range)#
%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
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
sw4(config-if-range)#exit
sw4(config)#
sw4(config)#int fastEthernet 0/3
sw4(config-if)#switchport mode access
sw4(config-if)#switchport access vlan 40
sw4(config-if)#
核心交换机1配置OSPF:
Core-SW1>
Core-SW1>en
Core-SW1#
Core-SW1#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Core-SW1(config)#router os
Core-SW1(config)#router ospf 10
Core-SW1(config-router)#net
Core-SW1(config-router)#network 192.168.10.0 0.0.0.255 area 0
Core-SW1(config-router)#network 192.168.20.0 0.0.0.255 area 0
Core-SW1(config-router)#network 192.168.30.0 0.0.0.255 area 0
^
% Invalid input detected at '^' marker.
Core-SW1(config-router)#new
Core-SW1(config-router)#net
Core-SW1(config-router)#network 192.168.30.0 0.0.0.255 area 0
Core-SW1(config-router)#network 192.168.40.0 0.0.0.255 area 0
Core-SW1(config-router)#network 192.168.4.0 0.0.0.255 area 0
Core-SW1(config-router)#network 192.168.6.0 0.0.0.255 area 0
Core-SW1(config-router)#
核心交换机2配置OSPF:
Core-SW2>
Core-SW2>en
Core-SW2#con
Core-SW2#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Core-SW2(config)#router ospf 20
Core-SW2(config-router)#net
Core-SW2(config-router)#network 192.168.10.0 0.0.0.255 area 0
Core-SW2(config-router)#
02:01:32: %OSPF-5-ADJCHG: Process 20, Nbr 192.168.40.254 on Vlan10 from LOADING to FULL, Loading Done
Core-SW2(config-router)#network 192.168.20.0 0.0.0.255 area 0
Core-SW2(config-router)#
02:02:27: %OSPF-5-ADJCHG: Process 20, Nbr 192.168.40.254 on Vlan20 from LOADING to FULL, Loading Done
Core-SW2(config-router)#network 192.168.30.0 0.0.0.255 area 0
Core-SW2(config-router)#network 192.168.
02:03:03: %OSPF-5-ADJCHG: Process 20, Nbr 192.168.40.254 on Vlan30 from LOADING to FULL, Loading Done
^
% Invalid input detected at '^' marker.
Core-SW2(config-router)#
Core-SW2(config-router)#network 192.168.40.0 0.0.0.255 area 0
Core-SW2(config-router)#
02:03:38: %OSPF-5-ADJCHG: Process 20, Nbr 192.168.40.254 on Vlan40 from LOADING to FULL, Loading Done
Core-SW2(config-router)#network 192.168.6.0 0.0.0.255 area 0
Core-SW2(config-router)#network 192.168.7.0 0.0.0.255 area 0
Core-SW2(config-router)#network 192.168.5.0 0.0.0.255 area 0
Core-SW2(config-router)#
2. Router configuration
核心路由器1
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hi
Router(config)#ho
Router(config)#hostname Core-Router1
Core-Router1(config)#inf f
Core-Router1(config)#int f1/0
Core-Router1(config-if)#ip ad
Core-Router1(config-if)#ip address 192.168.4.1 255.255.255.0
Core-Router1(config-if)#no s
Core-Router1(config-if)#no sh
Core-Router1(config-if)#no shutdown
Core-Router1(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
Core-Router1(config-if)#exit
Core-Router1(config)#int f1/1
Core-Router1(config-if)#ip add
Core-Router1(config-if)#ip address 192.168.5.1 255.255.255.0
Core-Router1(config-if)#no shu
Core-Router1(config-if)#no shutdown
Core-Router1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/1, changed state to up
Core-Router1(config-if)#exit
Core-Router1(config)#int f0/1
Core-Router1(config-if)#ip add
Core-Router1(config-if)#ip address 192.168.3.1 255.255.255.0
Core-Router1(config-if)#no sh
Core-Router1(config-if)#no shutdown
Core-Router1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
Core-Router1(config-if)#exit
Core-Router1(config)#int f0/0
Core-Router1(config-if)#ip add
Core-Router1(config-if)#ip address 192.168.1.2 255.255.255.0
Core-Router1(config-if)#no sh
Core-Router1(config-if)#no shutdown
Core-Router1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
Core-Router1(config-if)#
核心路由器2
Router>en
Router#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ho
Router(config)#hostname Core-Router2
Core-Router2(config)#int f1/0
Core-Router2(config-if)#ip add
Core-Router2(config-if)#ip address 192.168.7.1 255.255.255.0
Core-Router2(config-if)#no sh
Core-Router2(config-if)#no shutdown
Core-Router2(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
Core-Router2(config-if)#ex
Core-Router2(config)#
Core-Router2(config)#
Core-Router2(config)#int f1/1
Core-Router2(config-if)#ip add
Core-Router2(config-if)#ip address 192.168.6.1 255.255.255.0
Core-Router2(config-if)#no sh
Core-Router2(config-if)#no shutdown
Core-Router2(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/1, changed state to up
Core-Router2(config-if)#exit
Core-Router2(config)#
Core-Router2(config)#int f0/1
Core-Router2(config-if)#ip add
Core-Router2(config-if)#ip address 192.168.3.2 255.255.255.0
Core-Router2(config-if)#no shu
Core-Router2(config-if)#no shutdown
Core-Router2(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
Core-Router2(config-if)#exit
Core-Router2(config)#
Core-Router2(config)#int f0/0
Core-Router2(config-if)#ip ad
Core-Router2(config-if)#ip address 192.168.2.2 255.255.255.0
Core-Router2(config-if)#no s
Core-Router2(config-if)#no sh
Core-Router2(config-if)#no shutdown
Core-Router2(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
Core-Router2(config-if)#
出口路由器:
Router>en
Router#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ho
Router(config)#hostname CK-Router
CK-Router(config)#int f0/0
CK-Router(config-if)#ip add
CK-Router(config-if)#ip address 192.168.1.1 255.255.255.0
CK-Router(config-if)#no shu
CK-Router(config-if)#no shutdown
CK-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
CK-Router(config-if)#exit
CK-Router(config)#int f0/1
CK-Router(config-if)#ip add
CK-Router(config-if)#ip address 192.168.2.1 255.255.255.0
CK-Router(config-if)#no sh
CK-Router(config-if)#no shutdown
CK-Router(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
CK-Router(config-if)#exit
CK-Router(config)#int s0/0/0
CK-Router(config-if)#ip
CK-Router(config-if)#ip add
CK-Router(config-if)#ip address 200.10.1.1 255.255.255.240
CK-Router(config-if)#clock rate 64000
CK-Router(config-if)#no sh
CK-Router(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
CK-Router(config-if)#
CK-Router(config-if)#
核心路由器1ospf:
Core-Router1>en
Core-Router1#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Core-Router1(config)#router ospf 30
Core-Router1(config-router)#net
Core-Router1(config-router)#network 192.168.4.0 0.0.0.255 area 0
Core-Router1(config-router)#new
Core-Router1(config-router)#new
02:06:57: %OSPF-5-ADJCHG: Process 30, Nbr 192.168.40.254 on FastEthernet1/0 from LOADING to FULL, Loading Done
^
% Invalid input detected at '^' marker.
Core-Router1(config-router)#net
Core-Router1(config-router)#network 192.168.5.0 0.0.0.255 area 0
Core-Router1(config-router)#
02:07:36: %OSPF-5-ADJCHG: Process 30, Nbr 192.168.40.253 on FastEthernet1/1 from LOADING to FULL, Loading Done
Core-Router1(config-router)#net
Core-Router1(config-router)#network 192.168.3.0 0.0.0.255 area 0
Core-Router1(config-router)#net
Core-Router1(config-router)#network 192.168.1.0 0.0.0.255 area 0
Core-Router1(config-router)#
核心路由器2ospf:
Core-Router2>en
Core-Router2#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Core-Router2(config)#rou
Core-Router2(config)#router os
Core-Router2(config)#router ospf 40
Core-Router2(config-router)#net
Core-Router2(config-router)#network 192.168.2.0 0.0.0.255 area 0
Core-Router2(config-router)#
Core-Router2(config-router)#network 192.168.3.0 0.0.0.255 area 0
Core-Router2(config-router)#
02:11:10: %OSPF-5-ADJCHG: Process 40, Nbr 192.168.5.1 on FastEthernet0/1 from LOADING to FULL, Loading Done
Core-Router2(config-router)#network 192.168.6.0 0.0.0.255 area 0
Core-Router2(config-router)#
02:11:31: %OSPF-5-ADJCHG: Process 40, Nbr 192.168.40.254 on FastEthernet1/1 from LOADING to FULL, Loading Done
Core-Router2(config-router)#network 192.168.7.0 0.0.0.255 area 0
Core-Router2(config-router)#
02:12:12: %OSPF-5-ADJCHG: Process 40, Nbr 192.168.40.253 on FastEthernet1/0 from LOADING to FULL, Loading Done
出口路由器ospf:
CK-Router(config)#
CK-Router(config)#rou
CK-Router(config)#router os
CK-Router(config)#router ospf 50
CK-Router(config-router)#net
CK-Router(config-router)#network 192.168.1.0 0.0.0.255 area 0
CK-Router(config-router)#
02:04:57: %OSPF-5-ADJCHG: Process 50, Nbr 192.168.5.1 on FastEthernet0/0 from LOADING to FULL, Loading Done
CK-Router(config-router)#network 192.168.2.0 0.0.0.255 area 0
CK-Router(config-router)#
02:05:18: %OSPF-5-ADJCHG: Process 50, Nbr 192.168.7.1 on FastEthernet0/1 from LOADING to FULL, Loading Done
CK-Router(config-router)#
Isp配置
Router>en
Router#
Router#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ho
Router(config)#hostname
% Incomplete command.
Router(config)#ho
Router(config)#hostname ISP-Router
ISP-Router(config)#int s0/0/0
ISP-Router(config-if)#
ISP-Router(config-if)#ip add
ISP-Router(config-if)#ip address 200.10.1.2 255.255.255.240
ISP-Router(config-if)#no sh
ISP-Router(config-if)#no shutdown
ISP-Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
ISP-Router(config-if)#int fo
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
^
% Invalid input detected at '^' marker.
ISP-Router(config-if)#int f0/0
ISP-Router(config-if)#ip add
ISP-Router(config-if)#ip address 100.10.1.1 255.255.255.240
ISP-Router(config-if)#no sh
ISP-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
ISP-Router(config-if)#
3. "Firewall" router configuration
出口路由器配置NAT、ACL:
Router>en
Router#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ho
Router(config)#hostname CK-Router
CK-Router(config)#int f0/0
CK-Router(config-if)#ip add
CK-Router(config-if)#ip address 192.168.1.1 255.255.255.0
CK-Router(config-if)#no shu
CK-Router(config-if)#no shutdown
CK-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
CK-Router(config-if)#exit
CK-Router(config)#int f0/1
CK-Router(config-if)#ip add
CK-Router(config-if)#ip address 192.168.2.1 255.255.255.0
CK-Router(config-if)#no sh
CK-Router(config-if)#no shutdown
CK-Router(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
CK-Router(config-if)#exit
CK-Router(config)#int s0/0/0
CK-Router(config-if)#ip
CK-Router(config-if)#ip add
CK-Router(config-if)#ip address 200.10.1.1 255.255.255.240
CK-Router(config-if)#clock rate 64000
CK-Router(config-if)#no sh
CK-Router(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
CK-Router(config-if)#
CK-Router(config-if)#exit
CK-Router(config)#
CK-Router(config)#rou
CK-Router(config)#router os
CK-Router(config)#router ospf 50
CK-Router(config-router)#net
CK-Router(config-router)#network 192.168.1.0 0.0.0.255 area 0
CK-Router(config-router)#
02:04:57: %OSPF-5-ADJCHG: Process 50, Nbr 192.168.5.1 on FastEthernet0/0 from LOADING to FULL, Loading Done
CK-Router(config-router)#network 192.168.2.0 0.0.0.255 area 0
CK-Router(config-router)#
02:05:18: %OSPF-5-ADJCHG: Process 50, Nbr 192.168.7.1 on FastEthernet0/1 from LOADING to FULL, Loading Done
CK-Router(config-router)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
CK-Router(config-router)#exit
CK-Router(config)#int ra
CK-Router(config)#int range fa
CK-Router(config)#int range fastEthernet 0/0-1
CK-Router(config-if-range)#ip nat in
CK-Router(config-if-range)#ip nat inside
CK-Router(config-if-range)#exit
CK-Router(config)#int s0/0/0
CK-Router(config-if)#ip nat out
CK-Router(config-if)#ip nat outside
CK-Router(config-if)#exit
CK-Router(config)#ip route 0.0.0.0 0.0.0.0 200.10.1.2
CK-Router(config)#router os
CK-Router(config)#router ospf 50
CK-Router(config-router)#de
CK-Router(config-router)#default-information or
CK-Router(config-router)#default-information originate
CK-Router(config-router)#exit
CK-Router(config)#ip nat pool DZC 200.10.1.3 200.10.1.6 netmask 255.255.255.240
CK-Router(config)#acces
CK-Router(config)#access-list 1 per
CK-Router(config)#access-list 1 permit 192.168.0.0 0.0.255.255
CK-Router(config)#ip nat in
CK-Router(config)#ip nat inside sou
CK-Router(config)#ip nat inside source list 1 pool DZC
CK-Router(config)#
4. Server configuration
5. Wireless network configuration
6.DHCP configuration
核心交换机1DHCP:
Core-SW1>
Core-SW1>en
Core-SW1>en
Core-SW1#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Core-SW1(config)#int
Core-SW1(config)#interface vlan
Core-SW1(config)#interface vlan 20
Core-SW1(config-if)#ip ad
Core-SW1(config-if)#ip address 192.168.20.254
% Incomplete command.
Core-SW1(config-if)#ip address 192.168.20.254 255.255.255.0
Core-SW1(config-if)#ex
Core-SW1(config-if)#exit
Core-SW1(config)#ise
Core-SW1(config)#se
Core-SW1(config)#service dh
Core-SW1(config)#service dhcp
Core-SW1(config)#ip dh
Core-SW1(config)#ip dhcp po
Core-SW1(config)#ip dhcp pool vlna
Core-SW1(config)#ip dhcp pool vlan
Core-SW1(config)#ip dhcp pool vlan20
Core-SW1(dhcp-config)#netw
Core-SW1(dhcp-config)#network 192.168.20.0 255.255.255.0
Core-SW1(dhcp-config)#de
Core-SW1(dhcp-config)#default-router 192.168.20.254
Core-SW1(dhcp-config)#dns
Core-SW1(dhcp-config)#dns-server 192.168.10.2
Core-SW1(dhcp-config)#ex
Core-SW1(dhcp-config)#exit
Core-SW1(config)#ip routing
Core-SW1(config)#end
Core-SW1#
%SYS-5-CONFIG_I: Configured from console by console
Core-SW1#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Core-SW1(config)#int vlan
Core-SW1(config)#int vlan 30
Core-SW1(config-if)#ip ad
Core-SW1(config-if)#ip address 192.168.30.254
% Incomplete command.
Core-SW1(config-if)#ip address 192.168.30.254 255.255.255.0
Core-SW1(config-if)#ex
Core-SW1(config-if)#exit
Core-SW1(config)#se
Core-SW1(config)#service dh
Core-SW1(config)#service dhcp
Core-SW1(config)#ip po
Core-SW1(config)#ip dh
Core-SW1(config)#ip dhcp po
Core-SW1(config)#ip dhcp pool vlan
Core-SW1(config)#ip dhcp pool vlan30
Core-SW1(dhcp-config)#netw
Core-SW1(dhcp-config)#network 192.168.30.0 255.255.255.0
Core-SW1(dhcp-config)#de
Core-SW1(dhcp-config)#default-router 192.168.30.254
Core-SW1(dhcp-config)#dns
Core-SW1(dhcp-config)#dns-server 192.168.10.2
Core-SW1(dhcp-config)#ex
Core-SW1(dhcp-config)#exit
Core-SW1(config)#ip routing
Core-SW1(config)#end
Core-SW1#
%SYS-5-CONFIG_I: Configured from console by console
Core-SW1#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Core-SW1(config)#int vlan
Core-SW1(config)#int vlan 40
Core-SW1(config-if)#ip ad
Core-SW1(config-if)#ip address 192.168.40
^
% Invalid input detected at '^' marker.
Core-SW1(config-if)#ip address 192.168.40.254 255.255.255.0
Core-SW1(config-if)#ex
Core-SW1(config-if)#exit
Core-SW1(config)#es
Core-SW1(config)#es
Core-SW1(config)#se
Core-SW1(config)#service dg
Core-SW1(config)#service dh
Core-SW1(config)#service dhcp
Core-SW1(config)#int vlna
Core-SW1(config)#int vlan
Core-SW1(config)#ip dh
Core-SW1(config)#ip dhcp po
Core-SW1(config)#ip dhcp pool vlan
Core-SW1(config)#ip dhcp pool vlan40
Core-SW1(dhcp-config)#netw
Core-SW1(dhcp-config)#network 192.168.40.0 255.255.255.0
Core-SW1(dhcp-config)#de
Core-SW1(dhcp-config)#default-router 192.168.40.254
Core-SW1(dhcp-config)#dns
Core-SW1(dhcp-config)#dns-server 192.168.10.2
Core-SW1(dhcp-config)#ex
Core-SW1(dhcp-config)#exit
Core-SW1(config)#ip rou
Core-SW1(config)#ip routing
Core-SW1(config)#end
Core-SW1#
%SYS-5-CONFIG_I: Configured from console by console
Core-SW1#
核心交换机2DHCP:
Core-SW2>en
Core-SW2#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Core-SW2(config)#interface vlan 20
Core-SW2(config-if)#ip address 192.168.20.254 255.255.255.0
Core-SW2(config-if)#
00:12:03: %OSPF-5-ADJCHG: Process 20, Nbr 192.168.40.254 on Vlan20 from FULL to DOWN, Neighbor Down: Interface down or detached
%IP-4-DUPADDR: Duplicate address 192.168.20.254 on Vlan20, sourced by 000C.8526.0302
%IP-4-DUPADDR: Duplicate address 192.168.20.254 on Vlan20, sourced by 000C.8526.0302
Core-SW2(config-if)#ip address 192.168.20.254 255.255.255.0
Core-SW2(config-if)#exit
Core-SW2(config)#service dhcp
Core-SW2(config)#ip dhcp pool vlan20
Core-SW2(dhcp-config)#network 192.168.20.0 255.255.255.0
Core-SW2(dhcp-config)#default-router 192.168.20.254
Core-SW2(dhcp-config)#dns-server 192.168.10.2
Core-SW2(dhcp-config)#exit
Core-SW2(config)#ip routing
Core-SW2(config)#end
Core-SW2#
%SYS-5-CONFIG_I: Configured from console by console
Core-SW2#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Core-SW2(config)#int vlan 30
Core-SW2(config-if)#ip address 192.168.30.254
% Incomplete command.
Core-SW2(config-if)#ip address 192.168.30.254 255.255.255.0
Core-SW2(config-if)#
00:15:28: %OSPF-5-ADJCHG: Process 20, Nbr 192.168.40.254 on Vlan30 from FULL to DOWN, Neighbor Down: Interface down or detached
%IP-4-DUPADDR: Duplicate address 192.168.30.254 on Vlan30, sourced by 000C.8526.0303
%IP-4-DUPADDR: Duplicate address 192.168.30.254 on Vlan30, sourced by 000C.8526.0303
Core-SW2(config-if)#ip address 192.168.30.254 255.255.255.0
Core-SW2(config-if)#exit
Core-SW2(config)#service dhcp
Core-SW2(config)#ip dhcp pool vlan30
Core-SW2(dhcp-config)#network 192.168.30.0 255.255.255.0
Core-SW2(dhcp-config)#default-router 192.168.30.254
Core-SW2(dhcp-config)#dns-server 192.168.10.2
Core-SW2(dhcp-config)#exit
Core-SW2(config)#ip routing
Core-SW2(config)#end
Core-SW2#
%SYS-5-CONFIG_I: Configured from console by console
Core-SW2#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Core-SW2(config)#int vlan 40
Core-SW2(config-if)#ip address 192.168.40
^
% Invalid input detected at '^' marker.
Core-SW2(config-if)#ip address 192.168.40.254 255.255.255.0
Core-SW2(config-if)#
00:16:57: %OSPF-5-ADJCHG: Process 20, Nbr 192.168.40.254 on Vlan40 from FULL to DOWN, Neighbor Down: Interface down or detached
%IP-4-DUPADDR: Duplicate address 192.168.40.254 on Vlan40, sourced by 000C.8526.0304
%IP-4-DUPADDR: Duplicate address 192.168.40.254 on Vlan40, sourced by 000C.8526.0304
Core-SW2(config-if)#ip address 192.168.40.254 255.255.255.0
Core-SW2(config-if)#exit
Core-SW2(config)#service dhcp
Core-SW2(config)#ip dhcp pool vlan40
Core-SW2(dhcp-config)#network 192.168.40.0 255.255.255.0
Core-SW2(dhcp-config)#default-router 192.168.40.254
Core-SW2(dhcp-config)#dns-server 192.168.10.2
Core-SW2(dhcp-config)#exit
Core-SW2(config)#ip routing
Core-SW2(config)#end
Core-SW2#
%SYS-5-CONFIG_I: Configured from console by console
Core-SW2#
7. DNS server configuration
8.FTP server configuration
4. Network test
1. Test connectivity between campuses
2. DHCP automatically obtains IP status
3. NAT protocol
4. Web service testing
5. DNS service test
Summarize
In this campus network planning and design, based on the three-level network structure of core switches, aggregation switches, and access switches, I redundant the core routers, core switches, and aggregation switches to achieve network redundancy at the hardware layer; The rapid spanning tree protocol is used to realize the redundancy of the link; the network segment is divided by Vlan, and the broadcast domain is isolated to avoid the occurrence of network storm; then, the link aggregation technology is used to bind the core switch ports to double the bandwidth; Configuring static routing not only realizes the function of routing selection, but also avoids routing records occupying the router memory due to dynamic learning, thereby affecting the efficiency of the router; at the same time, we also configure the NAT protocol on the router to realize address translation between the internal network and the external network. Avoid external network intrusion into the internal network; we also use the ACL protocol to achieve data selection and ensure the security of the internal network; finally configure the DHCP protocol, which not only saves ip resources, but also reduces the workload of the administrator. With the configuration of servers such as Web and DNS, teachers and students can meet basic Internet access requirements. Finally, the network delay and security issues at the border are my shortcomings, because homework is due at the end of the term, and some things are still not perfect.