Advertisement
Guest User

Untitled

a guest
Jun 29th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. a = (match(switch=1, dstip=IPAddr('10.0.0.1')) >> fwd(4))
  2. a = a + (match(switch=1, dstip=IPAddr('10.0.0.2')) >> fwd(5))
  3. a = a + (match(switch=1, srcip=IPAddr('10.0.0.1'), dstip=IPAddr('10.0.0.3')) >> fwd(1))
  4. a = a + (match(switch=1, srcip=IPAddr('10.0.0.1'), dstip=IPAddr('10.0.0.4')) >> fwd(1))
  5. a = a + (match(switch=1, scrip=IPAddr('10.0.0.2'), dstip=IPAddr('10.0.0.3')) >> fwd(3))
  6. a = a + (match(switch=1, scrip=IPAddr('10.0.0.2'), dstip=IPAddr('10.0.0.4')) >> fwd(3))
  7.  
  8. #switch2
  9. a = a + (match(switch=2, inport=1) >> fwd(2))
  10. a = a + (match(switch=2, inport=2) >> fwd(1))
  11.  
  12. #switch4
  13. a = a + (match(switch=4, dstip=IPAddr('10.0.0.1')) >> fwd(2))
  14. a = a + (match(switch=4, dstip=IPAddr('10.0.0.2')) >> fwd(1))
  15. a = a + (match(switch=4, dstip=IPAddr('10.0.0.3')) >> fwd(4))
  16. a = a + (match(switch=4, dstip=IPAddr('10.0.0.4')) >> fwd(5))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement