企业三层架构配置实例Word格式.docx
《企业三层架构配置实例Word格式.docx》由会员分享,可在线阅读,更多相关《企业三层架构配置实例Word格式.docx(14页珍藏版)》请在冰点文库上搜索。
!
interfaceLoopback0
ipaddress1.1.1.1255.255.255.0
interfaceFastEthernet0/0
ipaddress100.1.1.10255.255.255.0
duplexauto
speedauto
router2配置:
Currentconfiguration:
979bytes
version12.4
noservicetimestampslogdatetimemsec
noservicetimestampsdebugdatetimemsec
noservicepassword-encryption
ipaddress100.1.1.1255.255.255.0
ipnatoutside
interfaceFastEthernet0/1
ipaddress10.0.1.1255.255.255.0
ipnatinside
interfaceFastEthernet1/0
ipaddress10.0.2.1255.255.255.0
routerospf110
router-id1.1.1.1
log-adjacency-changes
network10.0.0.00.255.255.255area0
default-informationoriginate
ipnatinsidesourcelist1interfaceFastEthernet0/0overload
iproute0.0.0.00.0.0.0100.1.1.10
access-list1permit10.0.0.00.255.255.255
Router1配置:
835bytes
ipaddress10.0.2.2255.255.255.0
ipaddress10.0.6.2255.255.255.0
ipaddress10.0.4.2255.255.255.0
router-id3.3.3.3
Router0配置:
757bytes
ipaddress10.0.1.2255.255.255.0
ipaddress10.0.3.2255.255.255.0
ipaddress10.0.5.2255.255.255.0
router-id2.2.2.2
switch0(左边)配置:
Switch#showrun
2507bytes
version12.2
hostnameSwitch
ipdhcpexcluded-address10.0.7.110.0.7.99
ipdhcpexcluded-address10.0.8.110.0.8.99
ipdhcppoolvlan10
network10.0.7.0255.255.255.0
default-router10.0.7.254
dns-server8.8.8.8
ipdhcppoolvlan20
network10.0.8.0255.255.255.0
default-router10.0.8.254
iprouting
spanning-treemodepvst
spanning-treevlan10priority24576
spanning-treevlan20priority28672
interfacePort-channel1
switchporttrunkencapsulationdot1q
switchportmodetrunk
noswitchport
ipaddress10.0.3.3255.255.255.0
interfaceFastEthernet0/2
switchporttrunkallowedvlan10,20
interfaceFastEthernet0/3
interfaceFastEthernet0/4
channel-group1modeon
interfaceFastEthernet0/5
interfaceFastEthernet0/6
ipaddress10.0.4.3255.255.255.0
ipospfcost10
interfaceVlan10
ipaddress10.0.7.1255.255.255.0
standbyversion2
standby1ip10.0.7.254
standby1priority110
standby1preempt
standby1trackFastEthernet0/6
interfaceVlan20
ipaddress10.0.8.1255.255.255.0
standby1ip10.0.8.254
router-id4.4.4.4
switch1(右边):
2266bytes
ipdhcpexcluded-address10.0.8.110.0.8.254
spanning-treevlan20priority24576
spanning-treevlan10priority28672
ipaddress10.0.6.3255.255.255.0
ipaddress10.0.5.3255.255.255.0
ipaddress10.0.7.2255.255.255.0
ipaddress10.0.8.2255.255.255.0
standby1trackFastEthernet0/1
router-id5.5.5.5
二层sw0(左边)配置:
1193bytes
switchportaccessvlan10
switchportmodeaccess
spanning-treeportfast
switchportaccessvlan20
二层sw1(右边)配置:
测试结果: