木头虫在家

  • 系统
  • 网络
  • 技术
  • 安全
  • 运维
  • 应用
木头虫在家
蜘蛛网
  1. 首页
  2. 网络
  3. 正文

Juniper EX系列交换机基础配置文件

2023年3月13日 437点热度 0人点赞 0条评论

System配置

set system host-name access-switch01
set system time-zone Asia/Shanghai
set system name-server 223.5.5.5
set system name-server 223.6.6.6
set system root-authentication encrypted-password “$.security/”
set system login user admin uid 2000
set system login user admin class super-user
set system login user admin authentication encrypted-password “security/”

# 生产环境不建议开  telnet,web
set system services ssh
set system services telnet
set system services web-management https system-generated-certificate
set system services web-management https interface all
set system auto-snapshot

# 日志部分
set system syslog user * any emergency
set system syslog file messages any notice
set system syslog file messages authorization info
set system syslog file interactive-commands interactive-commands any

# 配置NTP服务
set system ntp boot-server 203.107.6.88
set system ntp server 203.107.6.88

# 接入设备一般没有单独的管理网,忽略掉带外口的告警
set chassis alarm management-ethernet link-down ignore
set chassis alarm ethernet link-down ignore

接口部分

# 以Juniper EX2220-48 为例 ge-0/0/0-47为接入电口 ge-0/1/0-3 为光口

# 接入端口
set interfaces interface-range Access member-range ge-0/0/0 to ge-0/0/47
set interfaces interface-range Access unit 0 family ethernet-switching port-mode access
set interfaces interface-range Access unit 0 family ethernet-switching vlan members vlan2
set interfaces interface-range Access unit 0 family ethernet-switching filter input Access_ACL

# 上联光口
set interfaces ge-0/1/0 unit 0 family ethernet-switching port-mode trunk
set interfaces ge-0/1/0 unit 0 family ethernet-switching vlan members vlan2

# 三层接口
set interfaces vlan unit 2 family inet address 172.16.2.253/24
set vlans vlan2 vlan-id 2
set vlans vlan2 l3-interface vlan.2

ACL过滤规则

# 接入端口ACL
set firewall family ethernet-switching Access_ACL term 1 from protocol udp
set firewall family ethernet-switching Access_ACL term 1 from destination-port 1434
set firewall family ethernet-switching Access_ACL term 1 from destination-port 1433
set firewall family ethernet-switching Access_ACL term 1 from destination-port netbios-ns
set firewall family ethernet-switching Access_ACL term 1 from destination-port netbios-dgm
set firewall family ethernet-switching Access_ACL term 1 from destination-port 139
set firewall family ethernet-switching Access_ACL term 1 from destination-port netbios-ssn
set firewall family ethernet-switching Access_ACL term 1 from destination-port 5355
set firewall family ethernet-switching Access_ACL term 1 then discard
set firewall family ethernet-switching Access_ACL term 2 from protocol tcp
set firewall family ethernet-switching Access_ACL term 2 from destination-port 135
set firewall family ethernet-switching Access_ACL term 2 from destination-port 139
set firewall family ethernet-switching Access_ACL term 2 from destination-port 445
set firewall family ethernet-switching Access_ACL term 2 then discard
set firewall family ethernet-switching Access_ACL term Default then accept

# 管理ACL 仅 172.16.254.0/24 可以ssh管理设备
set firewall family inet filter RE_FILTER term 1 from source-address 172.16.254.0/24
set firewall family inet filter RE_FILTER term 1 from protocol tcp
set firewall family inet filter RE_FILTER term 1 from destination-port ssh
set firewall family inet filter RE_FILTER term 1 then count allow.ssh
set firewall family inet filter RE_FILTER term 1 then accept
set firewall family inet filter RE_FILTER term 2 from protocol tcp
set firewall family inet filter RE_FILTER term 2 from destination-port ssh
set firewall family inet filter RE_FILTER term 2 then count discard.ssh
set firewall family inet filter RE_FILTER term 2 then discard
set firewall family inet filter RE_FILTER term Default then accept

set interfaces lo0 unit 0 family inet filter input RE_FILTER

DHCP-Snooping 广播风暴控制

set ethernet-switching-options secure-access-port interface ge-0/1/0.0 dhcp-trusted
set ethernet-switching-options secure-access-port vlan vlan2 arp-inspection
set ethernet-switching-options secure-access-port vlan vlan2 examine-dhcp
set ethernet-switching-options secure-access-port vlan vlan2 ip-source-guard
set ethernet-switching-options port-error-disable disable-timeout 600
set ethernet-switching-options storm-control interface all
set ethernet-switching-options bpdu-block interface Access 

其他项目

snmp,igmp 生成树 静态路由

set snmp community public authorization read-only
set routing-options static route 0.0.0.0/0 next-hop 172.16.2.254
set protocols igmp-snooping vlan all
set protocols rstp bridge-priority 60k
set protocols rstp interface allport Access
set protocols lldp interface all
set protocols lldp-med interface all

 

Views: 28
标签: juniper
最后更新:2023年3月13日

admin

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >
分类
  • 值的推
  • 域名主机
  • 安全
  • 应用
  • 技术
  • 未分类
  • 系统
  • 网络
  • 运维
最新 热点 随机
最新 热点 随机
共享文件夹后访问出现引用的账号当前已锁定,且可能无法登录 功能发现打印提供程序dll已停止工作 中国音乐地图之听见安徽 张雪峰报志愿逻辑及核心观点 AnolisOS8 Linux系统OpenSSH漏洞升级到最新版OpenSSH9 Win11共享打印机错误提示0x00000bc4的解决办法 Mysql数据库ibtmp1文件过大原因及解决办法 ucloud香港云主机 Windows 11访问局域网共享文件时出现报错 “出现了扩展错误”解决办法 4s店修理工秘密,车开到报废,这几种东西不必换
fail2ban服务器手动解绑ip及添加黑白名单IP namesilo 2019年1美元域名注册续费转移最新优惠码 Juniper SRX通用配置手册 海康威视臻全彩监控摄像头选购指导 Chrome浏览器“Adobe Flash Player 因过期而遭到阻止”的解决方法 系统蓝屏错误代码0x00000109的修复方案 Win10 开始菜单 保存的目录位置 Windows 无法加载这个硬件的设备驱动程序。驱动程序可能已损坏或不见了。 (代码 39) windows7无法连接打印机,错误0x00000002 Win10蓝屏BAD_POOL_CALLER解决办法

COPYRIGHT © 2025 blog.qmun.com. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

浙ICP备11036795号