工程实例

简介:


工程实例


声明:这里的配置是采用 dynamips 做的,因为本人机器性能有限,所以是分开配置的, SW1 SW2 先一起配置, SW3 SW4 一起配置。(以前曾试过一次开 7 台,除了跑起来有点慢外,其他没什么,自从换了 2.8 版本后,有时候开 3 台就会蓝屏,不知道为什么!!郁闷!)

要求上面已经说得很明确了,现在只把 show run 复制过来。
SW1#show run
Building configuration...
 
Current configuration : 1936 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SW1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!        
!
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree vlan 1 priority 8192
spanning-tree vlan 3 priority 8192
spanning-tree vlan 5 priority 8192
!
!
!
!
!
!
interface Port-channel1
 switchport mode trunk
!
interface FastEthernet0/0
!
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
!        
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
 switchport mode trunk
 channel-group 1 mode on
!
interface FastEthernet0/15
 switchport mode trunk
 channel-group 1 mode on
!
interface Vlan1
 ip address 172.16.1.254 255.255.255.0
 standby 2 ip 172.16.1.1
 standby 2 priority 200
 standby 2 preempt
 standby 2 track FastEthernet0/1 180
!
interface Vlan2
 ip address 172.16.2.254 255.255.255.0
 standby 1 ip 172.16.2.1
 standby 1 priority 50
 standby 1 preempt
!
interface Vlan3
 ip address 172.16.3.254 255.255.255.0
 standby 3 ip 172.16.3.1
 standby 3 priority 200
 standby 3 preempt
 standby 3 track FastEthernet0/1 180
!
interface Vlan4
 ip address 172.16.4.254 255.255.255.0
 standby 4 ip 172.16.4.1
 standby 4 priority 50
 standby 4 preempt
!
interface Vlan5
 ip address 172.16.5.254 255.255.255.0
 standby 5 ip 172.16.5.1
 standby 5 priority 200
 standby 5 preempt
 standby 5 track FastEthernet0/1 180

!
ip http server
no ip http secure-server
!
!
!
mac-address-table static  0000.0c 07.ac02 interface FastEthernet0/15 vlan 1
mac-address-table static  0000.0c 07.ac03 interface FastEthernet0/15 vlan 3
mac-address-table static  0000.0c 07.ac05 interface FastEthernet0/15 vlan 5
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
!        
!
End
 
 
SW2#show run
Building configuration...
 
Current configuration : 1636 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SW2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree vlan 2 priority 8192
spanning-tree vlan 4 priority 8192
!
!
!
!
!
!
interface Port-channel1
 switchport mode trunk
!
interface FastEthernet0/0
!
interface FastEthernet0/1
 switchport mode trunk
!
interface FastEthernet0/2
 switchport mode trunk
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!        
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
 switchport mode trunk
 channel-group 1 mode on
!
interface FastEthernet0/15
 switchport mode trunk
 channel-group 1 mode on
!
interface Vlan1
 ip address 172.16.1.253 255.255.255.0
 standby 2 ip 172.16.1.1
 standby 2 priority 50
 standby 2 preempt
!         
interface Vlan2
 ip address 172.16.2.253 255.255.255.0
 standby 1 ip 172.16.2.1
 standby 1 priority 200
 standby 1 preempt
 standby 1 track FastEthernet0/1 180
!
interface Vlan3
 ip address 172.16.3.253 255.255.255.0
 standby 3 ip 172.16.3.1
 standby 3 priority 50
 standby 3 preempt
!
interface Vlan4
 ip address 172.16.4.253 255.255.255.0
 standby 4 ip 172.16.4.1
 standby 4 priority 200
 standby 4 preempt
 standby 4 track FastEthernet0/1 180
!
interface Vlan5
 ip address 172.16.5.253 255.255.255.0
 standby 5 ip 172.16.5.1
 standby 5 priority 50
 standby 5 preempt

!
ip http server
no ip http secure-server
!
!
!        
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
!
!
End
 
SW3#show run
Building configuration...
 
Current configuration : 1090 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SW3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!        
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
!
interface FastEthernet0/1
 switchport mode trunk
 spanning-tree vlan 2 cost 20
 spanning-tree vlan 4 cost 20
!
interface FastEthernet0/2
 switchport mode trunk
 spanning-tree vlan 1 cost 20
 spanning-tree vlan 3 cost 20
 spanning-tree vlan 5 cost 20
!
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 FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface Vlan1
 no ip address
!
ip http server
no ip http secure-server
!
!
!
!
!
control-plane
!        
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
 login
!
!
End
 
 
SW4#show run
Building configuration...
 
Current configuration : 1090 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SW4
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!        
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
!
interface FastEthernet0/1
 switchport mode trunk
 spanning-tree vlan 1 cost 20
 spanning-tree vlan 3 cost 20
 spanning-tree vlan 5 cost 20
!
interface FastEthernet0/2
 switchport mode trunk
 spanning-tree vlan 2 cost 20
 spanning-tree vlan 4 cost 20 
!
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 FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface Vlan1
 no ip address
!
ip http server
no ip http secure-server
!
!
!
!
!
control-plane
!        
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
 login
!
!
end


 
 
附加的 show 命令验证:
SW1#show standby brief
                     P indicates configured to preempt.
                     |
Interface   Grp Prio P State    Active          Standby         Virtual IP    
Vl1         2   200  P Active   local           172.16.1.253    172.16.1.1    
Vl2         1   50     Standby  172.16.2.253    local           172.16.2.1    
Vl3         3   200  P Active   local           172.16.3.253    172.16.3.1    
Vl4         4   50     Standby  172.16.4.253    local           172.16.4.1    
Vl5         5   200  P Active   local           172.16.5.253    172.16.5.1    
 
 
 
SW1#show spanning-tree root brief
 
                                       Root Hello Max  Fwd
Vlan                   Root ID          Cost   Time    Age   Delay    Root   Port
---------------- -------------------- ----- ---- ---- -----  ----------------
VLAN1             8192 cc00.0890.0000     0    2   20    15  This bridge is root
VLAN2             8192 cc 00.01f 4.0001    12    2   20    15  Port-channel1     
VLAN3             8192 cc00.0890.0002     0    2   20    15  This bridge is root
VLAN4             8192 cc 00.01f 4.0003    12    2   20    15  Port-channel1     
VLAN5             8192 cc00.0890.0004     0    2   20    15  This bridge is root
 
 
SW2#show standby brief
                     P indicates configured to preempt.
                     |
Interface   Grp Prio P State    Active          Standby         Virtual IP    
Vl1         2   50     Standby  172.16.1.254    local           172.16.1.1    
Vl2         1   200  P Active   local           172.16.2.254    172.16.2.1    
Vl3         3   50     Standby  172.16.3.254    local           172.16.3.1    
Vl4         4   200  P Active   local           172.16.4.254    172.16.4.1    
Vl5         5   50     Standby  172.16.5.254    local           172.16.5.1    
 
 
 
 
SW2#show spanning-tree root brief
 
                                       Root Hello Max  Fwd
Vlan                   Root ID          Cost   Time    Age   Delay    Root   Port
---------------- -------------------- ----- ---- ---- -----  ----------------
VLAN1             8192 cc00.0890.0000    12    2   20    15  Port-channel1     
VLAN2             8192 cc 00.01f 4.0001     0    2   20    15  This bridge is root
VLAN3             8192 cc00.0890.0002    12    2   20    15  Port-channel1     
VLAN4             8192 cc 00.01f 4.0003     0    2   20    15  This bridge is root
VLAN5             8192 cc00.0890.0004    12    2   20    15  Port-channel1 

SW3#show spanning-tree root brief
 
                                       Root Hello Max  Fwd
Vlan                   Root ID          Cost   Time    Age   Delay    Root   Port
---------------- -------------------- ----- ---- ---- -----  ----------------
VLAN1             8192 cc 00.0f 44.0000    19    2   20    15  FastEthernet0/1   
VLAN2             8192 cc 00.0a 8c .0001    19    2   20    15  FastEthernet0/2   
VLAN3             8192 cc 00.0f 44.0002    19    2   20    15  FastEthernet0/1   
VLAN4             8192 cc 00.0a 8c .0003    19    2   20    15  FastEthernet0/2   
VLAN5             8192 cc 00.0f 44.0004    19    2   20    15  FastEthernet0/1   
 
 
SW4#show spanning-tree root brief
 
                                       Root Hello Max  Fwd
Vlan                   Root ID          Cost   Time    Age   Delay    Root   Port
---------------- -------------------- ----- ---- ---- -----  ----------------
VLAN1             8192 cc 00.0f 44.0000    19    2   20    15  FastEthernet0/2   
VLAN2             8192 cc 00.0a 8c .0001    19    2   20    15  FastEthernet0/1   
VLAN3             8192 cc 00.0f 44.0002    19    2   20    15  FastEthernet0/2   
VLAN4             8192 cc 00.0a 8c .0003    19    2   20    15  FastEthernet0/1   
VLAN5             8192 cc 00.0f 44.0004    19    2   20    15  FastEthernet0/2   

SW3#show spanning-tree brief 

VLAN1
  Spanning tree enabled protocol ieee
  Root ID    Priority    8192
             Address     cc00.0a78.0000
             Cost        19
             Port        2 (FastEthernet0/1)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32768
             Address     cc00.0cd0.0000
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 300

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/1      128.2    128    19 FWD     0  8192 cc00.0a78.0000 128.2  
FastEthernet0/2      128.3    128    20 BLK    12 32768 cc00.0c14.0000 128.3  

          
VLAN2
  Spanning tree enabled protocol ieee
  Root ID    Priority    8192
             Address     cc00.0c14.0001
             Cost        19
             Port        3 (FastEthernet0/2)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32768
             Address     cc00.0cd0.0001
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 300

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/1      128.2    128    20 BLK    12 32768 cc00.0a78.0001 128.2  
FastEthernet0/2      128.3    128    19 FWD     0  8192 cc00.0c14.0001 128.3  

          
VLAN3
  Spanning tree enabled protocol ieee
  Root ID    Priority    8192
             Address     cc00.0a78.0002
             Cost        19
             Port        2 (FastEthernet0/1)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32768
             Address     cc00.0cd0.0002
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 300

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/1      128.2    128    19 FWD     0  8192 cc00.0a78.0002 128.2  
FastEthernet0/2      128.3    128    20 BLK    12 32768 cc00.0c14.0002 128.3  

          
VLAN4
  Spanning tree enabled protocol ieee
  Root ID    Priority    8192
             Address     cc00.0c14.0003
             Cost        19
             Port        3 (FastEthernet0/2)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32768
             Address     cc00.0cd0.0003
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 300

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/1      128.2    128    20 BLK    12 32768 cc00.0a78.0003 128.2  
FastEthernet0/2      128.3    128    19 FWD     0  8192 cc00.0c14.0003 128.3  

          
VLAN5
  Spanning tree enabled protocol ieee
  Root ID    Priority    8192
             Address     cc00.0a78.0004
             Cost        19
             Port        2 (FastEthernet0/1)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32768
             Address     cc00.0cd0.0004
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 300

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/1      128.2    128    19 FWD     0  8192 cc00.0a78.0004 128.2  
FastEthernet0/2      128.3    128    20 BLK    12 32768 cc00.0c14.0004 128.3

SW4#show spanning-tree brief 

VLAN1
  Spanning tree enabled protocol ieee
  Root ID    Priority    8192
             Address     cc00.0a78.0000
             Cost        19
             Port        3 (FastEthernet0/2)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32768
             Address     cc00.0cb0.0000
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 300

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/1      128.2    128    20 BLK    12 32768 cc00.0c14.0000 128.2  
FastEthernet0/2      128.3    128    19 FWD     0  8192 cc00.0a78.0000 128.3  

          
VLAN2
  Spanning tree enabled protocol ieee
  Root ID    Priority    8192
             Address     cc00.0c14.0001
             Cost        19
             Port        2 (FastEthernet0/1)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32768
             Address     cc00.0cb0.0001
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 300

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/1      128.2    128    19 FWD     0  8192 cc00.0c14.0001 128.2  
FastEthernet0/2      128.3    128    20 BLK    12 32768 cc00.0a78.0001 128.3  

          
VLAN3
  Spanning tree enabled protocol ieee
  Root ID    Priority    8192
             Address     cc00.0a78.0002
             Cost        19
             Port        3 (FastEthernet0/2)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32768
             Address     cc00.0cb0.0002
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 300

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/1      128.2    128    20 BLK    12 32768 cc00.0c14.0002 128.2  
FastEthernet0/2      128.3    128    19 FWD     0  8192 cc00.0a78.0002 128.3  

          
VLAN4
  Spanning tree enabled protocol ieee
  Root ID    Priority    8192
             Address     cc00.0c14.0003
             Cost        19
             Port        2 (FastEthernet0/1)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32768
             Address     cc00.0cb0.0003
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 300

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/1      128.2    128    19 FWD     0  8192 cc00.0c14.0003 128.2  
FastEthernet0/2      128.3    128    20 BLK    12 32768 cc00.0a78.0003 128.3  

          
VLAN5
  Spanning tree enabled protocol ieee
  Root ID    Priority    8192
             Address     cc00.0a78.0004
             Cost        19
             Port        3 (FastEthernet0/2)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32768
             Address     cc00.0cb0.0004
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 300

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/1      128.2    128    20 BLK    12 32768 cc00.0c14.0004 128.2  
FastEthernet0/2      128.3    128    19 FWD     0  8192 cc00.0a78.0004 128.3  


以上为所有的配置,如果有不明白的地方可以留言告诉我。




















本文转自loveme2351CTO博客,原文链接:http://blog.51cto.com/loveme23/49896 ,如需转载请自行联系原作者

相关文章
|
5月前
|
Java
Java 项目工程搭建 --创建父工程
Java 项目工程搭建 --创建父工程
33 3
|
5月前
|
Java Maven 微服务
Java 项目工程搭建 --创建子模块(依赖父工程)
Java 项目工程搭建 --创建子模块(依赖父工程)
83 1
|
7月前
|
Java Maven Spring
创建Springboot工程的过程详细步骤
【6月更文挑战第17天】 创建Springboot工程涉及以下步骤: 1. 安装JDK和Maven并配置环境变量。 2. 在IDEA中新建项目,选择`Create from archetype`,选取`spring-boot-starter-parent`。 3. 输入项目名、包名和模块名,完成设置。 4. 生成的项目包含Springboot主类`Application`。 5. 添加所需功能,如控制器、服务和数据访问对象,使用Spring注解。 6. 运行`Application`启动项目。要深入学习,参考官方文档或在线教程。 ```
69 3
|
8月前
|
Java Maven
创建的项目
在`C:\MVN`目录下有一个名为`health`的Java应用程序项目,它的artifactId与项目名相同。项目包含一个自动生成的`pom.xml`文件,版本为4.0.0,指定groupId为`com.companyname.insurance`,artifactId为`health`,version为`1.0-SNAPSHOT`,打包类型为`jar`,并引用了JUnit 3.8.1作为测试依赖。编码格式为UTF-8。[40 characters]
|
缓存 API 开发工具
Unity——工程与资源
Unity——工程与资源
306 1
|
存储 JSON C++
VS配置新项目
VS配置新项目
|
项目管理 C++
VS2010一个解决方案下新建多个项目出现的问题和方法
VS2010一个解决方案下新建多个项目出现的问题和方法
271 0
VS2010一个解决方案下新建多个项目出现的问题和方法
|
XML JSON 分布式计算
工程搭建_创建|学习笔记
快速学习工程搭建_创建
工程搭建_创建|学习笔记
|
消息中间件 存储 Dubbo
项目工程初始化|学习笔记
快速学习项目工程初始化
106 0
项目工程初始化|学习笔记
|
存储 JSON 监控
1、工程搭建与配置
MongoDB是介于关系型和非关系型数据库之间的产品,nosql中最热门的数据库,存储数据是类似于JSON的bson格式的数据,可以存储复杂的数据类型,最大特点是它支持的查询语句非常强大
134 0