在低于R76系统的版本中配置镜像口
2013-11-01 21:18
211 查看
附上之前做测试用的一个小案列吧,CP防火墙的资料网上挺少的,还大都是英文,最近几天看英文文档看的眼睛疼,唉~不习惯呀 跟中文比起来 英文字母看着也太小太费劲了,对于我这英语不好的人来说 还就得一个一个看,关键是一句话下来几十个单词,有用的没几个,可怜我的眼睛了。。。。。下面这个是俺自己稍微翻译了一下 大家凑合看吧 差不多就是这个意思 呵呵
1.先添加一个bridge和对应的接口
clish> add bridging group 1 interfaceeth3
(注: 每个bridge只能配置一个借口,如果需要使用多个镜像口,需要为每个镜像口配置相对应的bridge,不支持在一个bridge上面配置多个镜像口)
2.添加此接口到 /etc/monitor_mode (开启镜像模式)
可以创建一个表,例如 /etc/monitor_modefile.
在每一行输入要设置镜像的接口比如: eth3
或者直接在命令行界面输入clish>set interface eth3 monitor-mode on
3.更改权限 /etc/monitor_mode to read-only
[Expert@Gaia]# chmod 444 /etc/monitor_mode
[Expert@Gaia]# chattr +i /etc/monitor_mode
4.下发策略
5.开启hairpinning模式
Gaia 和Gaia以上版本需要在镜像接口开启"hairpining" 模式再能看到tcp流
[Expert@Gaia]#echo 1 > /sys/class/net/<bridgename>/brif/<interface for the bridge>/hairpin_mode
确定已经将此接口开启了镜像模式
To make this command survive a reboot:
Open the /etc/rc.d/rc.localscript in Vi editor. 1.
Add the following line before 'start' case ends, immediately after thetouch /var/lock/subsys/localline:
echo 1 > /sys/class/net/<bridge name>/brif/<interfacename>/hairpin_mode
保存更改并退出
在R76版本上配置镜像口
Gaia R76 系统版本支持自动配置接口镜像模式
通过命令行界面配置输入> set interface eth0 monitor-modeon
也可直接在WebUI界面配置:
Go to"Network Interfaces" tab. 1.
Select therequired interface and click "Edit". 2.
Go to"Ethernet" tab. 3.
Check the"Monitor Mode" checkbox and click "OK
本文出自 “一天进步一点点” 博客,请务必保留此出处http://liu1liu.blog.51cto.com/2948561/1318746
1.先添加一个bridge和对应的接口
clish> add bridging group 1 interfaceeth3
(注: 每个bridge只能配置一个借口,如果需要使用多个镜像口,需要为每个镜像口配置相对应的bridge,不支持在一个bridge上面配置多个镜像口)
2.添加此接口到 /etc/monitor_mode (开启镜像模式)
可以创建一个表,例如 /etc/monitor_modefile.
在每一行输入要设置镜像的接口比如: eth3
或者直接在命令行界面输入clish>set interface eth3 monitor-mode on
3.更改权限 /etc/monitor_mode to read-only
[Expert@Gaia]# chmod 444 /etc/monitor_mode
[Expert@Gaia]# chattr +i /etc/monitor_mode
4.下发策略
5.开启hairpinning模式
Gaia 和Gaia以上版本需要在镜像接口开启"hairpining" 模式再能看到tcp流
[Expert@Gaia]#echo 1 > /sys/class/net/<bridgename>/brif/<interface for the bridge>/hairpin_mode
确定已经将此接口开启了镜像模式
To make this command survive a reboot:
Open the /etc/rc.d/rc.localscript in Vi editor. 1.
Add the following line before 'start' case ends, immediately after thetouch /var/lock/subsys/localline:
echo 1 > /sys/class/net/<bridge name>/brif/<interfacename>/hairpin_mode
保存更改并退出
在R76版本上配置镜像口
Gaia R76 系统版本支持自动配置接口镜像模式
通过命令行界面配置输入> set interface eth0 monitor-modeon
也可直接在WebUI界面配置:
Go to"Network Interfaces" tab. 1.
Select therequired interface and click "Edit". 2.
Go to"Ethernet" tab. 3.
Check the"Monitor Mode" checkbox and click "OK
本文出自 “一天进步一点点” 博客,请务必保留此出处http://liu1liu.blog.51cto.com/2948561/1318746
相关文章推荐
- 素数打表(三种筛选法)
- curl 查看一个web站点的响应时间(rt)
- k-d tree算法的研究
- 给毕业生选择工作的六步建议
- STL系列之九 探索hash_set
- [CODE]UIUC同学Jia-Bin Huang收集的计算机视觉代码合集
- 进程和线程
- 待掌握3
- java笔记之字符串,字符串数组,List<String>的相互转换
- 清除windowns7的用户开机密码,加快电脑启动速度等
- 大神的博客地址
- winform窗体间传值
- php中不能加载php_mysql.dll、php_mysqli.dll的解决方法
- 上班族20~50岁职业生涯规划术
- 直接法(高斯)求解线性方程组
- Android常见颜色代码的xml资源文件
- 用Python实现gmail邮箱服务,实现两个邮箱之间的绑定(中)
- Unity3D 200个插件免费分享
- 水仙花之java与c++的战争======
- 23个设计模式之单例模式