首页 > 其他分享 >juniper防火墙基本操作之 一

juniper防火墙基本操作之 一

时间:2022-08-27 20:55:43浏览次数:58  
标签:juniper show edit interfaces 防火墙 fe 基本操作 security root

root
cli
configure

show interfaces terse
show interfaces brief
show interfaces detail
show interfaces extensive

show interfaces detail | match fe-0/0/0

help reference security policies

root> help apropos arp ?
root> help apropos secu

clear security
Clear security information
clear security alarms
Clear (acknowledge) security alarms
clear security alarms all
Clear (acknowledge) all security alarms

root> configure ?
Possible completions:
<[Enter]> Execute this command 默认模式,大家一起改
batch Work in batch mode (commit happens in batch)
dynamic Work in dynamic database
exclusive Obtain exclusive lock (other users cannot make changes) 排除模式,只有我能改
private Work in private database (other's changes do not show) 只能看到自己的配置,提交后,别人改的不生效
| Pipe through a command

 

root# set interfaces fe-0/0/0.1 family inet address 1.1.1.1/24

[edit]
root#
edit]
root# show interfaces
fe-0/0/0 {
unit 1 {
family inet {
address 1.1.1.1/24;
}
}
}
fxp0 {
unit 0 {
family inet {
dhcp {
vendor-id Juniper-vmx-VM630A2B4FFD;
}
}
}
}

[edit]
root#

root# show interfaces fe-0/0/0.1 family inet
address 1.1.1.1/24;

 

 

 

 

 

 root# edit interfaces

 

 

 

 

 

 

 

 

 

 

 

 

 

 

root# edit interfaces fe-0/0/0.0

 

 

 

 

 

 

 

 

 

 

root# set interfaces fe-0/0/0 unit 1 family inet address 2.2.2.2/24

root# replace pattern fe-0/0/0 with fe-0/0/1

[edit]

root# edit interfaces fe-0/0/1

[edit interfaces fe-0/0/1]

root# show
unit 1 {
family inet {
address 2.2.2.2/24;
}
}

[edit interfaces fe-0/0/1]
root#

 

root# copy interfaces fe-0/0/1 to fe-0/0/2

 


root# edit interfaces fe-0/0/2

[edit interfaces fe-0/0/2]
root#

[edit interfaces fe-0/0/2]
root# show
unit 1 {
family inet {
address 2.2.2.2/24;
}
}

 

 

show security 

show security alarms

下面可以刷的配置:

 

 

 

 

 

 

 

 配置密码后才能提交:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

即需要10分钟内进行第二次提交commit,不然自动恢复到提交前的配置

标签:juniper,show,edit,interfaces,防火墙,fe,基本操作,security,root
From: https://www.cnblogs.com/linux-china/p/16631449.html

相关文章

  • Linux基本操作
    Linux介绍Linux的概述本文就不赘述了,如果想仔细了解的小伙伴可以百度Linux的历史。本文主要写linux的操作过程知识点。狂神的原文如下:https://mp.weixin.qq.com/s?__biz......
  • Linux基本操作
    Linux介绍Linux的概述本文就不赘述了,如果想仔细了解的小伙伴可以百度Linux的历史。本文主要写linux的操作过程知识点。狂神的原文如下:https://mp.weixin.qq.com/s?__biz......
  • 关闭和重启防火墙
    参考前言对于不同版本打开和关闭防火墙的命令是不一样的。centos1.查看防火墙的状态[xiaocer@localhost~]$firewall-cmd--state然后呢显示结果不是notrunning就......
  • Redis基本操作
    五大数据类型官方文档Redis是一个开放源代码(BSD许可)的内存中数据结构存储,用作数据库,缓存和消息代理。它支持数据结构,例如字符串,哈希,列表,集合,带范围查询的排序集合,位图......
  • centOS7 防火墙
    查看已经开放的端口:firewall-cmd--list-ports开启端口:firewall-cmd--zone=public--add-port=8080/tcp--permanent关闭端口:firewall-cmd--permanent--zone=pub......
  • CentOS7使用firewalld打开关闭防火墙与端口
    1、firewalld的基本使用    启动:systemctlstartfirewalld    关闭:systemctlstopfirewalld    查看状态:systemctlstatusfirewalld     开机......
  • 什么是栈?栈的基本操作
     什么是栈?栈(stack),它是一种运算受限的线性表,后进先出(LIFO)LIFO(lastinfirstout)表示就是后进入的元素,第一个弹出栈空间.类似于自动餐托盘,最后放上的托盘,......
  • Linux-->vi和vim编辑器的基本操作
    vim编辑器介绍vi或者vim就是对linux下的文本进行编辑的一种编辑器比如说a.cpp文件这种Linux会内置vi文本编辑器Vim可以简单的认为vi的增强版Linux是区分大小写的!用......
  • Elasticsearch基本操作
    索引操作创建索引PUT/user查询指定索引GET/user查询所有索引信息GET_cat/indices?v删除索引DELETE/user类型映射自动映射elasticsearch默认情况下会自......
  • Markdown基本操作
    Markdown学习标题:最多只支持6级标题CTRL+(1~6)表示1--6级标题一级标题二级标题三级标题四级标题五级标题六级标题  字体:1.两边1个星号为斜体2.两边2个星号......