1、园区网络综合配置答案园区网络综合配置答案主要给出路由器和交换机的配置过程:(1) 路由器R-A!hostname Router-A!spanning-tree mode pvst!interface FastEthernet0/0 ip address 10.1.1.1 255.255.255.0 duplex auto speed auto!interface FastEthernet0/1 ip address 20.2.2.1 255.255.255.0 duplex auto speed auto!interface Serial1/0 no ip address clock rate
2、 2000000 shutdown!interface Serial1/1 no ip address clock rate 2000000 shutdown!interface Serial1/2 ip address 192.168.1.1 255.255.255.252 clock rate 64000!interface Serial1/3 no ip address clock rate 2000000 shutdown!interface Vlan1 no ip address shutdown!router rip version 2 network 10.0.0.0 netwo
3、rk 20.0.0.0 network 192.168.1.0 no auto-summary!ip classlessip route 0.0.0.0 0.0.0.0 192.168.1.2 !no cdp run!line con 0line vty 0 4 login!EndR-B!hostname Router-B!spanning-tree mode pvst!interface FastEthernet0/0 ip address 201.10.8.1 255.255.255.0 ip nat outside duplex auto speed auto!interface Fas
4、tEthernet0/1 no ip address duplex auto speed auto shutdown!interface Serial0/0/0 no ip address ipv6 ospf cost 781 clock rate 2000000 shutdown!interface Serial0/1/0 no ip address ipv6 ospf cost 781 clock rate 2000000 shutdown!interface Serial0/2/0 no ip address ipv6 ospf cost 781 clock rate 2000000 s
5、hutdown!interface Serial0/3/0 no ip address ipv6 ospf cost 781 clock rate 2000000 shutdown!interface Serial1/0 no ip address ipv6 ospf cost 781 clock rate 2000000 shutdown!interface Serial1/1 no ip address ipv6 ospf cost 781 clock rate 2000000 shutdown!interface Serial1/2 ip address 192.168.1.2 255.
6、255.255.0 ip nat inside ipv6 ospf cost 781!interface Serial1/3 no ip address ipv6 ospf cost 781 clock rate 2000000 shutdown!interface Vlan1 no ip address shutdown!router rip version 2 network 192.168.1.0 no auto-summary!ip nat pool internet 201.10.8.10 201.10.8.100 netmask 255.255.255.0ip nat inside
7、 source list 1 pool internetip classlessip route 0.0.0.0 0.0.0.0 201.10.8.2 !access-list 1 permit 192.168.10.0 0.0.0.255access-list 1 permit 192.168.20.0 0.0.0.255access-list 1 permit 192.168.30.0 0.0.0.255!no cdp run!line con 0line vty 0 4 login!EndR-INTERNET!hostname Router!spanning-tree mode pvst
8、interface Loopback0 ip address 202.1.1.1 255.255.255.0!interface FastEthernet0/0 ip address 201.10.8.2 255.255.255.0 duplex auto speed auto!interface FastEthernet0/1 no ip address duplex auto speed auto shutdown!interface Serial1/0 no ip address clock rate 2000000 shutdown!interface Serial1/1 no ip
9、address clock rate 2000000 shutdown!interface Serial1/2 no ip address clock rate 2000000 shutdown!interface Serial1/3 no ip address clock rate 2000000 shutdown!interface Vlan1 no ip address shutdown!ip classless!no cdp run!line con 0line vty 0 4 login!End(2) 交换机S-2-A!hostname Switch-2-A!spanning-tre
10、e mode rapid-pvst!interface FastEthernet0/1 switchport mode trunk!interface FastEthernet0/2 switchport mode trunk!interface FastEthernet0/3!interface FastEthernet0/4!interface FastEthernet0/5!interface FastEthernet0/6!interface FastEthernet0/7!interface FastEthernet0/8!interface FastEthernet0/9!inte
11、rface FastEthernet0/10!interface FastEthernet0/11 switchport access vlan 10!interface FastEthernet0/12 switchport access vlan 20!interface FastEthernet0/13 switchport access vlan 30!interface FastEthernet0/14!interface FastEthernet0/15!interface FastEthernet0/16!interface FastEthernet0/17!interface
12、FastEthernet0/18!interface FastEthernet0/19!interface FastEthernet0/20!interface FastEthernet0/21!interface FastEthernet0/22!interface FastEthernet0/23!interface FastEthernet0/24!interface GigabitEthernet1/1!interface GigabitEthernet1/2!interface Vlan1 no ip address shutdown!line con 0!line vty 0 4
13、loginline vty 5 15 login!endS-2-Bhostname Switch-2-B!spanning-tree mode rapid-pvst!interface FastEthernet0/1!interface FastEthernet0/2 switchport mode trunk!interface FastEthernet0/3!interface FastEthernet0/4 switchport mode trunk!interface FastEthernet0/5!interface FastEthernet0/6!interface FastEth
14、ernet0/7!interface FastEthernet0/8!interface FastEthernet0/9!interface FastEthernet0/10!interface FastEthernet0/11!interface FastEthernet0/12!interface FastEthernet0/13!interface FastEthernet0/14 switchport access vlan 10!interface FastEthernet0/15 switchport access vlan 20!interface FastEthernet0/1
15、6 switchport access vlan 30!interface FastEthernet0/17!interface FastEthernet0/18!interface FastEthernet0/19!interface FastEthernet0/20!interface FastEthernet0/21!interface FastEthernet0/22!interface FastEthernet0/23!interface FastEthernet0/24!interface GigabitEthernet1/1!interface GigabitEthernet1/
16、2!interface Vlan1 no ip address shutdown!line con 0!line vty 0 4 loginline vty 5 15 login!EndS-3-A!hostname Switch-3-Aip routingspanning-tree mode rapid-pvstspanning-tree vlan 10-30 priority 4096!interface FastEthernet0/1 no switchport ip address 10.1.1.2 255.255.255.0 duplex auto speed auto!interfa
17、ce FastEthernet0/2!interface FastEthernet0/3!interface FastEthernet0/4!interface FastEthernet0/5!interface FastEthernet0/6!interface FastEthernet0/7!interface FastEthernet0/8 switchport access vlan 10!interface FastEthernet0/9!interface FastEthernet0/10!interface FastEthernet0/11!interface FastEther
18、net0/12!interface FastEthernet0/13!interface FastEthernet0/14!interface FastEthernet0/15!interface FastEthernet0/16!interface FastEthernet0/17!interface FastEthernet0/18!interface FastEthernet0/19!interface FastEthernet0/20!interface FastEthernet0/21 channel-group 2 mode desirable duplex full speed
19、100!interface FastEthernet0/22 channel-group 2 mode desirable duplex full speed 100!interface FastEthernet0/23 channel-group 1 mode desirable duplex full speed 100!interface FastEthernet0/24 channel-group 1 mode desirable duplex full speed 100!interface GigabitEthernet0/1!interface GigabitEthernet0/
20、2!interface Port-channel 1!interface Port-channel 2!interface Vlan1 no ip address shutdown!interface Vlan10 ip address 192.168.10.1 255.255.255.0!interface Vlan20 ip address 192.168.20.1 255.255.255.0!interface Vlan30 ip address 192.168.30.1 255.255.255.0!router rip version 2 network 10.0.0.0 networ
21、k 192.168.10.0 network 192.168.20.0 network 192.168.30.0 no auto-summary!ip classlessip route 0.0.0.0 0.0.0.0 10.1.1.1 !line con 0line vty 0 4 login!EndS-3-B!hostname Switch-3-Bip routing!spanning-tree mode rapid-pvstspanning-tree vlan 10-30 priority 8192!interface FastEthernet0/1 no switchport ip a
22、ddress 20.2.2.2 255.255.255.0 duplex auto speed auto!interface FastEthernet0/2!interface FastEthernet0/3!interface FastEthernet0/4!interface FastEthernet0/5!interface FastEthernet0/6!interface FastEthernet0/7!interface FastEthernet0/8!interface FastEthernet0/9!interface FastEthernet0/10!interface Fa
23、stEthernet0/11!interface FastEthernet0/12!interface FastEthernet0/13!interface FastEthernet0/14!interface FastEthernet0/15!interface FastEthernet0/16!interface FastEthernet0/17!interface FastEthernet0/18!interface FastEthernet0/19!interface FastEthernet0/20!interface FastEthernet0/21 channel-group 2
24、 mode desirable duplex full speed 100!interface FastEthernet0/22 channel-group 2 mode desirable duplex full speed 100!interface FastEthernet0/23 channel-group 1 mode desirable duplex full speed 100!interface FastEthernet0/24 channel-group 1 mode desirable duplex full speed 100!interface GigabitEther
25、net0/1!interface GigabitEthernet0/2!interface Port-channel 1!interface Port-channel 2!interface Vlan1 no ip address shutdown!interface Vlan10 ip address 192.168.10.2 255.255.255.0!interface Vlan20 ip address 192.168.20.2 255.255.255.0!interface Vlan30 ip address 192.168.30.2 255.255.255.0!router rip version 2 network 20.0.0.0 network 192.168.10.0 network 192.168.20.0 network 192.168.30.0 no auto-summary!ip classlessip route 0.0.0.0 0.0.0.0 20.2.2.1 !line con 0line vty 0 4 login!end
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1