IPS跨交换机的VLAN Pair测试

简介:

1.测试拓扑:

2.基本配置:
R1:

R1#vlan database 
R1(vlan)#vlan 30
VLAN 30 added:
    Name: VLAN0030
R1(vlan)#vlan 40
VLAN 40 added:
    Name: VLAN0040
R1(vlan)#exit

R1(config)#int f0/5
R1(config-if)#switchport mode access 
R1(config-if)#switchport access vlan 40

R1(config)#int range fastEthernet 0/14 - 15
R1(config-if-range)#switchport mode trunk
R2:
R2#vlan database 
R2(vlan)#vlan 30
VLAN 30 added:
    Name: VLAN0030
R2(vlan)#vlan 40
VLAN 40 added:
    Name: VLAN0040
R2(vlan)#exit

R2(config)#int f0/3
R2(config-if)#sw mode acc
R2(config-if)#sw acc vlan 30
R2(config-if)#int f0/4
R2(config-if)#sw mo acc
R2(config-if)#sw acc vlan 40
R2(config-if)#int f0/15
R2(config-if)#sw mode trunk
R3:
R3(config)#int f1/0
R3(config-if)#ip add 10.1.1.3 255.255.255.0
R3(config-if)#no sh
R4:
R4(config)#int f1/0
R4(config-if)#ip add 10.1.1.4 255.255.255.0
R4(config-if)#no sh
R5:
R5(config)#int f1/0
R5(config-if)#ip add 10.1.1.5 255.255.255.0
R5(config-if)#no sh
R5#ping 10.1.1.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.4, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 20/34/72 ms

3.IPS配置:
A.激活监控接口:
  
B.创建VLAN Pair:
 
C.接口指派sensor:
  
4.效果测试:
A.R3能ping不同VLAN的R4、R5

R3#ping 10.1.1.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.4, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 20/85/216 ms
R3#ping 10.1.1.5

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.5, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 24/45/92 ms

B.大量的ping操作会触发IPS事件:
R3#ping 10.1.1.4 repeat 100

Type escape sequence to abort.
Sending 100, 100-byte ICMP Echos to 10.1.1.4, timeout is 2 seconds:
!.!!!!!.!!!!!.!!!!!.!!!!!.!!!!!.!!!!!.!!!!!.!!!!!.!!!!!.!!!!!.!!!!!.!!
!!!.!!!!!.!!!!!.!!!!!.!!!!!.!!
Success rate is 83 percent (83/100), round-trip min/avg/max = 12/57/416 ms
R3#

 
evIdsAlert: eventId=1185793501059155071  vendor=Cisco  severity=informational  
  originator:   
    hostId: ips4215  
    appName: sensorApp  
    appInstanceId: 340  
  time: 2012年8月18日 下午05时07分35秒  offset=0  timeZone=UTC  
  signature:   description=ICMP Echo Request  id=2004  version=S1  
    subsigId: 0  
  interfaceGroup:   
  vlan: 30  
  participants:   
    attacker:   
      addr: 10.1.1.3  locality=OUT  
    target:   
      addr: 10.1.1.4  locality=OUT  
  actions:   
    deniedAttackerServicePair: true  
  riskRatingValue: 25  
  interface: ge0_1  
  protocol: icmp  
evIdsAlert: eventId=1185793501059155072  vendor=Cisco  severity=informational  
  originator:   
    hostId: ips4215  
    appName: sensorApp  
    appInstanceId: 340  
  time: 2012年8月18日 下午05时07分37秒  offset=0  timeZone=UTC  
  signature:   description=ICMP Echo Reply  id=2000  version=S1  
    subsigId: 0  
  interfaceGroup:   
  vlan: 40  
  participants:   
    attacker:   
      addr: 10.1.1.4  locality=OUT  
    target:   
      addr: 10.1.1.3  locality=OUT  
  riskRatingValue: 25  
  interface: ge0_1  
  protocol: icmp
 




本文转自 碧云天 51CTO博客,原文链接:http://blog.51cto.com/333234/966467,如需转载请自行联系原作者

相关文章
|
7月前
|
网络虚拟化 网络架构
交换机与路由器技术-09-虚拟局域网VLAN
交换机与路由器技术-09-虚拟局域网VLAN
47 0
|
安全 网络安全 网络虚拟化
华为ensp模拟器实现通信安全(交换机配置vlan)
华为ensp模拟器,实现vlan隔离,将不同的交换机接口放入不同的vlan步骤以及实现原理, 交换机的access接口与trunk接口的功能以及实现步骤
华为ensp模拟器实现通信安全(交换机配置vlan)
|
网络虚拟化
华为交换机批量加入 Vlan 方法
华为交换机单独加入vlan太麻烦,思科有批量加入vlan的方法,华为也有。要求 1~6口划分到vlan2,6~12口划分到vlan3,13~18口划分到vlan4,19~24口划分到vlan5.25,~26 加入trunk.
3101 0
|
6月前
|
网络虚拟化
【HCIA】08.交换机基础和VLAN
【HCIA】08.交换机基础和VLAN
35 0
|
6月前
|
算法 网络虚拟化 C语言
【Cisco Packet Tracer】交换机划分Vlan实验
文章目录 一、前期准备 二、实验要求 三、搭建局域网 四、配置pc端的ip 五、配置VLAN 六、设置端口模式trunk 七、PING检验是否通路
|
7月前
|
网络架构
交换机与路由器技术-11-VLAN Trunk
交换机与路由器技术-11-VLAN Trunk
36 0
|
9月前
|
网络虚拟化
交换机VLAN实验
交换机VLAN实验
|
10月前
|
网络协议 网络虚拟化 网络架构
交换机的工作原理以及搭建局域网划分VLAN
上篇文章了解了OSI以及TCP/IP结构,这篇文章将分享网络中的交换机的工作原理以及怎么搭建一个局域网,划分虚拟局域网实现主机之间的访问隔离,因为在工作中我们不可能买多个交换机来实现主机之间的访问隔离,所以需要划分VLAN虚拟局域网来实现。
177 0
|
11月前
|
监控 网络虚拟化
三层交换机实现VLAN间路由通信
三层交换机实现VLAN间路由通信
109 2
|
网络虚拟化 iOS开发
计算机网络实验(思科模拟器Cisco Packet Tracer)——交换机配置以及虚拟局域网VLAN
计算机网络实验(思科模拟器Cisco Packet Tracer)——交换机配置以及虚拟局域网VLAN
计算机网络实验(思科模拟器Cisco Packet Tracer)——交换机配置以及虚拟局域网VLAN