摘要: floodlight中,添加防火墙规则,0表示最高优先级,数字越大,优先级越低;但是在StaticFlowPusher中写flow的时候,0表示最低优先级,数字越大,优先级越高,32767为最高。floodlight中,防火墙通配规则如下:10.0.0.1/8 --> 10.x.x.x10.0... 阅读全文
posted @ 2014-03-30 17:24 duanguyuan 阅读(254) 评论(0) 推荐(0) 编辑
摘要: flow1 = { "switch":"00:00:00:00:00:00:00:03", "name":"flow-mod-1", "cookie":"0", "priority":"1", "ether-type":"2048", #~ "ingress-po... 阅读全文
posted @ 2014-03-30 16:45 duanguyuan 阅读(613) 评论(0) 推荐(0) 编辑
摘要: how to update virtual host's IP in mininet?I got it! do like this:mininet> py h1.setIP('10.0.0.3/24')mininet> py h2.setIP('10.0.0.4/24')mininet> h1 ping h2PING 10.0.0.4(10.0.0.4)56(84) bytes of data.64 bytes from10.0.0.4: icmp_req=1 ttl=64 time=2.38 msOn Sunday, March 30 阅读全文
posted @ 2014-03-30 16:06 duanguyuan 阅读(3358) 评论(0) 推荐(0) 编辑
摘要: 示例代码:public void test() { String address = "11.12.13.14:800"; System.out.println(address.split("\\.").length); String[] num = address.split("\\."); for (int i = 0; i < num.length; i++) { System.out.println(num[i]); } }用双斜杠的原因:“.”在正则表达式中匹配任意字符,为了匹配“.”含... 阅读全文
posted @ 2014-03-30 00:22 duanguyuan 阅读(1344) 评论(0) 推荐(1) 编辑