一、实验目的
 
熟练构建小型区域网络
 
 
二、实验设备
 
 
Cisco 2811 路由器 6台、cisco 3650 交换机 6台、cisco 2960 交换机7台、pc机8台、服务器6台、数据线缆若干
 
三、实验拓扑
 
  
 
 
四、实验步骤
 
R1:
 
 
ip dhcp excluded-address 192.168.0.200 192.168.0.210
ip dhcp excluded-address 192.168.10.200 192.168.10.210
ip dhcp excluded-address 192.168.20.200 192.168.20.210
ip dhcp excluded-address 192.168.30.200 192.168.30.210
 
ip dhcp pool vlan100
 network 192.168.10.0 255.255.255.0
 default-router 192.168.10.1
 dns-server 192.168.0.1
ip dhcp pool vlan200
 network 192.168.20.0 255.255.255.0
 default-router 192.168.20.1
 dns-server 192.168.0.1
ip dhcp pool vlan300
 network 192.168.30.0 255.255.255.0
 default-router 192.168.30.1
 dns-server 192.168.0.1
 
interface FastEthernet0/1
 no ip address
 duplex auto
 speed auto
 
interface FastEthernet0/1.10
 encapsulation dot1Q 10
 ip address 192.168.10.1 255.255.255.0
 ip nat inside
 
interface FastEthernet0/1.20
 encapsulation dot1Q 20
 ip address 192.168.20.1 255.255.255.0
 ip nat inside
 
interface FastEthernet0/1.30
 encapsulation dot1Q 30
 ip address 192.168.30.1 255.255.255.0
 ip nat inside
 
interface FastEthernet0/1.99
 encapsulation dot1Q 99
 ip address 192.168.0.254 255.255.255.0
 ip nat inside
 
interface Serial0/0/0
 ip address 12.1.1.1 255.255.255.0
 ip nat outside
 
ip nat pool quyu-A 12.1.1.5 12.1.1.200 netmask 255.255.255.0
ip nat inside source list 1 pool quyu-A
ip nat inside source static 192.168.0.2 12.1.1.3
ip classless
ip route 0.0.0.0 0.0.0.0 Serial0/0/0
!
!
access-list 1 permit 192.168.0.0 0.0.255.255
 
R2:
 
 
interface Serial0/0/0
 no ip address
 encapsulation frame-relay
 
interface Serial0/0/0.23 point-to-point
 ip address 10.1.1.1 255.255.255.0
 frame-relay interface-dlci 102
 
interface Serial0/0/0.24 point-to-point
 ip address 20.2.2.2 255.255.255.0
 frame-relay interface-dlci 103
 
interface Serial0/0/1
 ip address 12.1.1.2 255.255.255.0
 clock rate 64000
 
router ospf 110
 log-adjacency-changes
 network 10.1.1.0 0.0.0.255 area 0
 network 20.2.2.0 0.0.0.255 area 0
 network 12.1.1.0 0.0.0.255 area 0
 
R3:
 
 
interface Serial0/0/0
 ip address 10.1.1.2 255.255.255.0
 encapsulation frame-relay
 frame-relay interface-dlci 201
 ip ospf network point-to-point
 
interface Serial0/0/1
 ip address 23.2.2.2 255.255.255.0
 clock rate 64000
 
router ospf 110
 log-adjacency-changes
 network 10.1.1.0 0.0.0.255 area 0
 network 23.2.2.0 0.0.0.255 area 0
 
 
R4:
 
interface Serial0/0/0
 no ip address
 encapsulation frame-relay
 
interface Serial0/0/0.1 point-to-point
 ip address 20.2.2.3 255.255.255.0
 frame-relay interface-dlci 301
 
interface Serial0/0/1
 ip address 34.3.3.3 255.255.255.0
 clock rate 64000
 
router ospf 110
 network 20.2.2.0 0.0.0.255 area 0
 network 34.3.3.0 0.0.0.255 area 0
 
 
R5:
 
 
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
 
interface FastEthernet0/0.10
 encapsulation dot1Q 10
 ip address 200.102.192.1 255.255.255.0
 ip nat inside
 
interface FastEthernet0/0.20
 encapsulation dot1Q 20
 ip address 202.102.192.1 255.255.255.0
 ip nat inside
 
interface Serial0/0/0
 ip address 23.2.2.3 255.255.255.0
 ip nat outside
 
ip nat pool quyu-B 23.2.2.10 23.2.2.20 netmask 255.255.255.0
ip nat inside source list 1 pool quyu-B overload
ip nat inside source static 202.102.192.68 23.2.2.4
ip classless
ip route 0.0.0.0 0.0.0.0 23.2.2.2 151
!
!
access-list 1 permit 0.0.0.0 255.255.255.0
access-list 1 permit 0.0.0.0 255.255.0.0
 
 
R6:
 
interface FastEthernet0/0
 no ip address
 ip nat inside
 duplex auto
 speed auto
 
interface FastEthernet0/0.1
 no ip address
 
interface FastEthernet0/0.10
 encapsulation dot1Q 10
 ip address 192.168.10.1 255.255.255.0
 ip nat inside
 
interface FastEthernet0/0.20
 encapsulation dot1Q 20
 ip address 192.168.20.1 255.255.255.0
 ip nat inside
 
ip nat inside source list 1 interface Serial0/0/0 overload
ip nat inside source static 192.168.10.2 34.3.3.5
ip classless
ip route 0.0.0.0 0.0.0.0 34.3.3.3 151
access-list 1 permit 192.168.0.0 0.0.255.255
 
 
3-sw-1:
 
spanning-tree vlan 99 priority 24576
interface FastEthernet0/1
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface FastEthernet0/2
 switchport access vlan 99
 switchport mode access
 spanning-tree portfast
 
interface FastEthernet0/3
 switchport access vlan 99
 switchport mode access
 spanning-tree portfast
 
interface FastEthernet0/10
 channel-group 1 mode on
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface FastEthernet0/11
 channel-group 1 mode on
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface FastEthernet0/12
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface FastEthernet0/13
 switchport trunk encapsulation dot1q
 switchport mode trunk
interface Port-channel 1
 switchport trunk encapsulation dot1q
 switchport mode trunk
interface Vlan10
 ip address 192.168.10.200 255.255.255.0
interface Vlan20
 ip address 192.168.20.200 255.255.255.0
interface Vlan30
 ip address 192.168.30.200 255.255.255.0
interface Vlan99
 ip address 192.168.0.200 255.255.255.0
 
 
3-sw-2:
 
Spanning-tree vlan 10 root pri
interface FastEthernet0/1
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface FastEthernet0/10
 channel-group 1 mode on
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface FastEthernet0/11
 channel-group 1 mode on
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface FastEthernet0/12
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface FastEthernet0/13
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface Port-channel 1
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface Vlan10
 ip address 192.168.10.201 255.255.255.0
 
interface Vlan20
 ip address 192.168.20.201 255.255.255.0
 
interface Vlan30
 ip address 192.168.30.201 255.255.255.0
 
interface Vlan99
 ip address 192.168.0.201 255.255.255.0
 
 
3-sw-3:
 
Spanning-tree vlan 20 root pri
interface FastEthernet0/1
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface FastEthernet0/2
switchport mode access
switchport access vlan 10
 
interface FastEthernet0/10
 channel-group 1 mode on
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface FastEthernet0/11
 channel-group 1 mode on
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface Vlan10
 ip address 192.168.10.200 255.255.255.0
 
interface Vlan20
 ip address 192.168.20.200 255.255.255.0
 
 
3-sw-4:
 
 
interface FastEthernet0/1
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface FastEthernet0/10
 channel-group 1 mode on
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface FastEthernet0/11
 channel-group 1 mode on
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface Port-channel 1
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface Vlan10
 ip address 192.168.10.201 255.255.255.0
 
interface Vlan20
 ip address 192.168.20.201 255.255.255.0
 
 
3-sw-5:
 
 
interface FastEthernet0/1
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface FastEthernet0/2
 switchport access vlan 10
 switchport mode access
 
interface FastEthernet0/10
 channel-group 1 mode on
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface FastEthernet0/11
 channel-group 1 mode on
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface Port-channel 1
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface Vlan10
 ip address 200.102.192.200 255.255.255.0
 
interface Vlan20
 ip address 202.102.192.200 255.255.255.0
 
 
3-sw-6:
 
 
interface FastEthernet0/2
 switchport access vlan 20
 switchport mode access
 
interface FastEthernet0/10
 channel-group 1 mode on
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface FastEthernet0/11
 channel-group 1 mode on
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
erface Port-channel 1
 switchport trunk encapsulation dot1q
 switchport mode trunk
 
interface Vlan10
 ip address 200.102.192.201 255.255.255.0
 
interface Vlan20
 ip address 202.102.192.201 255.255.255.0
 
 
2-sw1:
 
 
spanning-tree vlan 20 priority 24576
 
interface FastEthernet0/1
 switchport mode trunk
 
interface FastEthernet0/2
 switchport mode trunk
!
interface FastEthernet0/3
 switchport mode trunk
 
interface Vlan10
 ip address 192.168.10.202 255.255.255.0
 ip helper-address 192.168.10.1
 
interface Vlan20
 ip address 192.168.20.202 255.255.255.0
 ip helper-address 192.168.20.1
 
interface Vlan30
 ip address 192.168.30.202 255.255.255.0
 ip helper-address 192.168.30.1
 
interface Vlan99
 ip address 192.168.0.202 255.255.255.0
 
 
2-sw2:
 
 
spanning-tree vlan 30 priority 24576
nterface FastEthernet0/2
 switchport mode trunk
 
interface FastEthernet0/3
 switchport mode trunk
 
interface Vlan10
 ip address 192.168.10.203 255.255.255.0
interface Vlan20
 ip address 192.168.20.203 255.255.255.0
 
interface Vlan30
 ip address 192.168.30.203 255.255.255.0
 
interface Vlan99
 ip address 192.168.0.203 255.255.255.0
 
 
 
其他交换机类似