千家信息网

SRX240的透明模式

发表于:2026-10-31 作者:千家信息网编辑
千家信息网最后更新 2026年10月31日,Technorati 标签: srx,juniper,srx240第1步:准备工作如果是新机器无配置,可直接跳到第2步如果配置较多,建议初始化配置load factory-default / comm
千家信息网最后更新 2026年10月31日SRX240的透明模式Technorati 标签: srx,juniper,srx240


第1步:准备工作
如果是新机器无配置,可直接跳到第2步
如果配置较多,建议初始化配置load factory-default / commit命令可恢复到出厂缺省配置。
load factory-default
恢复出厂后,必须立刻设置ROOT帐号密码<默认密码至少6位数:字母加数字>
2.1.3 设置root用户口令
root# set system root-authentication plain-text-password
root# new password : root123
root# retype new password: root123
commit
//srx所有命令生效,都需要commit提交,建议每个命令提交下

第2步:启用透明模式
***由于web界面不支持透明模式管理,需要用超级终端先调试成透明模式***
set bridge-domains bd1 domain-type bridge
set bridge-domains bd1 vlan-id 3
set interfaces irb unit 0 family inet address 10.34.208.199/24
set bridge-domains bd1 routing-interface irb.0
//bd1是任意指定的桥域名

第3步:接口启用透明模式
***要删掉所有接口的unit 0,srx240 为ge-0/0/0~ge-0/0/15***
delete interfaces ge-0/0/10 unit 0
delete interfaces ge-0/0/11 unit 0
***将接口加入透明桥
set interfaces ge-0/0/0 unit 0 description L2-Untrust
set interfaces ge-0/0/0 unit 0 family bridge interface-mode trunk
set interfaces ge-0/0/0 unit 0 family bridge vlan-id-list 3
set interfaces ge-0/0/1 unit 0 description L2-Untrust
set interfaces ge-0/0/1 unit 0 family bridge interface-mode trunk
set interfaces ge-0/0/1 unit 0 family bridge vlan-id-list 3
set interfaces ge-0/0/2 unit 0 description L2-Trust
set interfaces ge-0/0/2 unit 0 family bridge interface-mode trunk
set interfaces ge-0/0/2 unit 0 family bridge vlan-id-list 3
set interfaces ge-0/0/3 unit 0 description L2-Trust
set interfaces ge-0/0/3 unit 0 family bridge interface-mode trunk
set interfaces ge-0/0/3 unit 0 family bridge vlan-id-list 3
//有提示重启表示透明模式生效
root#quit
root> request system reboot
//重启命令,注意在>模式下输入

第三步:配置接口
delete security zones security-zone untrust interfaces ge0/0/0.0
delete security zones security-zone trust interfaces vlan.0
//把要加入L2-Zone的接口从默认zone里面删除,一个接口只能属于一个zone
set security zones security-zone L2-Trust host-inbound-traffic system-services all
set security zones security-zone L2-Trust host-inbound-traffic protocols all
set security zones security-zone L2-Untrust host-inbound-traffic system-services ping
set security zones security-zone L2-Untrust host-inbound-traffic system-services http
set security zones security-zone L2-Untrust host-inbound-traffic system-services telnet
set security zones security-zone L2-Untrust interfaces ge-0/0/0.0
set security zones security-zone L2-Untrust interfaces ge-0/0/1.0
set security zones security-zone L2-Trust interfaces ge-0/0/2.0
set security zones security-zone L2-Trust interfaces ge-0/0/3.0

第四步:
set system services web-management http interface irb.0
//irb可以web管理
通过http://10.34.208.199
***irb.0管理口的ip,一般默认设置密码root/root123
web可以访问后,以下步骤都可以在web界面配置

第五步:加访问策略
set security policies from-zone L2-Trust to-zone L2-Untrust policy IN-OUT-PERMIT-ALL match source-address any
set security policies from-zone L2-Trust to-zone L2-Untrust policy IN-OUT-PERMIT-ALL match destination-address any
set security policies from-zone L2-Trust to-zone L2-Untrust policy IN-OUT-PERMIT-ALL match application any
set security policies from-zone L2-Trust to-zone L2-Untrust policy IN-OUT-PERMIT-ALL then permit
set security policies from-zone L2-Untrust to-zone L2-Trust policy OUT-IN-PERMIT-ALL match source-address any
set security policies from-zone L2-Untrust to-zone L2-Trust policy OUT-IN-PERMIT-ALL match destination-address any
set security policies from-zone L2-Untrust to-zone L2-Trust policy OUT-IN-PERMIT-ALL match application any
set security policies from-zone L2-Untrust to-zone L2-Trust policy OUT-IN-PERMIT-ALL then permit

set routing-options static route 0.0.0.0/0 next-hop x.x.x.x
//默认路由

模式 接口 配置 命令 管理 密码 建议 界面 口令 域名 机器 标签 步骤 用户 策略 终端 路由 帐号 准备 工作 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 喔噻互联网科技有限公司 汇久创客互联网科技 互联网女皇 腾讯科技 深圳卡尔迅互联网科技有限公司怎么样 互联网巨头投资的硬核科技 深圳市运趣互联网科技有限公司 团飞科技与伯堂互联网服务平台 来此购互联网科技有限公司 受益于互联网科技的高速发展 互联网为啥属于高科技 南平创想时代互联网科技有限公司 宜昌元轩互联网科技有限公司 搜狐科技互联网 阿里互联网科技企业 互联网金融科技名词解释 无锡工业互联网科技有限公司 神州科技互联网有限公司 保山浩联互联网科技有限公司 10位科技互联网大佬 互联网科技企业文化 互联网科技公司经营范围 互联网电商科技 疫情对互联网科技公司影响 狮子座互联网科技 鑫亿盛互联网科技 崇明区互联网教育科技售后服务 洛阳共同富裕互联网科技有限公司 华中科技大学互联网的牛人 互联网科技年终奖 全球科技与互联网公司市值变化
0