1、网络拓扑:设计的总公司还有两个出口:电信(R_Tele)和联通(R_Uni),一个驻外办事处(R_Part)。电信(R_Tele),提供外网连接,实现nat转换和流量控制联通(R_Uni)实现与驻外办事处(R_Part)VPN连接。汇聚层(L3Switch)实现DHCP。详细配置:核心交换机Core_A:version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname Core_Aboot-start-mark
2、erboot-end-markerno aaa new-modelmemory-size iomem 5ip cefno ip domain lookupip domain name lab.localinterface Loopback0 ip address 5.5.5.5 255.255.255.0interface Port-channel1interface FastEthernet0/0 no switchport ip address 172.16.59.1 255.255.255.0interface FastEthernet0/1 ip address 172.16.55.2
3、 255.255.255.0interface FastEthernet0/2 ip address 172.16.58.2 255.255.255.0interface FastEthernet0/3 ip address 172.16.61.1 255.255.255.0interface FastEthernet0/4 ip address 172.16.63.1 255.255.255.0interface FastEthernet0/5 ip address 172.16.53.2 255.255.255.0interface FastEthernet0/6interface Fas
4、tEthernet0/7interface FastEthernet0/8interface FastEthernet0/9interface FastEthernet0/10interface FastEthernet0/11interface FastEthernet0/12interface FastEthernet0/13interface FastEthernet0/14interface FastEthernet0/15interface Vlan1 no ip address shutdowninterface Vlan101 ip address 172.16.200.1 25
5、5.255.255.0router ospf 100 log-adjacency-changes network 172.16.53.0 0.0.0.255 area 0 network 172.16.55.0 0.0.0.255 area 0 network 172.16.58.0 0.0.0.255 area 0 network 172.16.59.0 0.0.0.255 area 0 network 172.16.61.0 0.0.0.255 area 0 network 172.16.63.0 0.0.0.255 area 0 network 172.16.200.0 0.0.0.25
6、5 area 0no ip http serverno ip http secure-serverip route 0.0.0.0 0.0.0.0 172.16.61.2ip route 0.0.0.0 0.0.0.0 172.16.63.2 115control-planeline con 0 exec-timeout 0 0 privilege level 15 logging synchronousline aux 0line vty 0 4 loginend核心交换机Core_B:hostname Core_B ip address 4.4.4.4 255.255.255.0 ip a
7、ddress 172.16.59.2 255.255.255.0 ip address 172.16.56.2 255.255.255.0 ip address 172.16.57.2 255.255.255.0 ip address 172.16.60.1 255.255.255.0 ip address 172.16.64.1 255.255.255.0 ip address 172.16.54.2 255.255.255.0 network 172.16.54.0 0.0.0.255 area 0 network 172.16.56.0 0.0.0.255 area 0 network
8、172.16.57.0 0.0.0.255 area 0 network 172.16.60.0 0.0.0.255 area 0 network 172.16.64.0 0.0.0.255 area 0router ospf 10ip route 0.0.0.0 0.0.0.0 172.16.64.2ip route 0.0.0.0 0.0.0.0 172.16.60.2 115End汇聚层配置:L3Switch_1:hostname L3Switch_1no ip dhcp use vrf connectedip dhcp pool DHCP_120 network 172.16.12.0
9、 255.255.255.0 default-router 172.16.12.1 dns-server 172.16.200.11 ip dhcp pool DHCP_160 network 172.16.16.0 255.255.255.0 default-router 172.16.16.1 ip address 1.1.1.1 255.255.255.0 ip address 172.16.55.1 255.255.255.0 ip address 172.16.57.1 255.255.255.0 switchport mode trunkinterface Vlan120 ip a
10、ddress 172.16.12.1 255.255.255.0interface Vlan160 ip address 172.16.16.1 255.255.255.0 network 172.16.12.0 0.0.0.255 area 0 network 172.16.16.0 0.0.0.255 area 0dial-peer cor customL3Switch_2:hostname L3Switch_2ip dhcp pool DHCP_10 network 172.16.1.0 255.255.255.0 default-router 172.16.1.1 ip dhcp po
11、ol DHCP_40 network 172.16.4.0 255.255.255.0 default-router 172.16.4.1 ip address 2.2.2.2 255.255.255.0 ip address 172.16.56.1 255.255.255.0 ip address 172.16.58.1 255.255.255.0interface Vlan10 ip address 172.16.1.1 255.255.255.0interface Vlan40 ip address 172.16.4.1 255.255.255.0 network 172.16.1.0
12、0.0.0.255 area 0 network 172.16.4.0 0.0.0.255 area 0ip route 0.0.0.0 0.0.0.0 172.16.60.2L3Switch_3:hostname L3Switch_3ip dhcp pool DHCP_80 network 172.16.8.0 255.255.255.0 default-router 172.16.8.1 ip dhcp pool DHCP_100 network 172.16.10.0 255.255.255.0 default-router 172.16.10.1 ip address 3.3.3.3 255.255.255.0 ip address 172.16.53.1 255.255.255.0 ip address 172.16.54.1 255.255.255.0interface Vlan80 ip address 172.16.8.1 255.255.255.0interface Vlan100 ip address 172.16.10.1 255.255.255.0 network 172.16.8.0 0.0.0.255 area 0 network 172.16.10.0 0.0.0.255 area 0 n
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1