juniper路由器

  • 格式:docx
  • 大小:321.68 KB
  • 文档页数:11

juniper路由器MX480、MX960

配置IP:

在路由器上配置端口IP地址,Cisco如果不划分子接口则直接在主接口下配置。而juniper路由器不管是否划分子接口,都需要采用unit子接口形式,只是通常没有划分vlan的时候采用unit 0来进行配置。ge-0/0/0 unit 3相当于Cisco的ge0/0/0.3子接口。

配置Loopback端口

set interface lo0 description description #配置端口描述

set interface lo0 unit 0 family inet address ip-address #配置IP地址

set interface lo0 unit 0 family iso address iso-address #配置ISO地址

说明:loopback的掩码是32位,如果配置中不输入掩码,则系统自动添加为32位。

set interfaces lo0 description “loopback 0”

set interfaces lo0 unit 0 family inet address 59.43.0.4/32

set interfaces lo0 unit 0 family iso address 86.4809.0010.0590.4300.0004.00

配置FE端口

set interface fe-0/0/1 description description #配置端口描述

set interface fe-0/0/1 mtu mtu-number #配置端口MTU

set interface fe-0/0/1 hold-time up ms down ms #配置端口up/down的damping时间

set interface fe-0/0/1 unit 0 family inet address ip-address #配置IP地址

set interface fe-0/0/1 unit 0 family iso #端口允许运行ISIS

set interface fe-0/0/1 speed 100m link-mode half-duplex #配置端口速率和端口模式

配置GE端口

set interface ge-0/0/1 description description #配置端口描述 set interface ge-0/0/1 mtu mtu-number #配置端口MTU

set interface ge-0/0/1 hold-time up ms down ms #配置端口up/down的damping时间

set interface ge-0/0/1 unit 0 family inet address ip-address #配置IP地址

set interface ge-0/0/1 unit 0 family iso #端口允许运行ISIS

set interface ge-0/0/1 link-mode full-duplex gigether-options no-auto-negotiation

#配置端口模式和非协商模式

set interfaces ge-3/0/0 description “to_BJ-BJ-JA-ZTE-RR-1”

set interfaces ge-3/0/0 mtu 9182

set interfaces ge-3/0/0 hold-time up 5000 down 0

set interfaces ge-3/0/0 unit 0 family inet address 59.43.17.65/30

set interfaces ge-3/0/0 unit 0 family iso

set interfaces ge-3/0/0 link-mode full-duplex gigether-options

commit synchronize

配置POS端口

set interface so-slot/pic/port description description #配置端口描述

set interface so-slot/pic/port mtu mtu-number #配置端口MTU

set interface so-slot/pic/port hold-time up ms down ms #配置端口up/down的damping时间

set interface so-slot/pic/port encapsultation ppp #配置端口封装为PPP

set interface so-slot/pic/port sonet-options fcs [32|16] #配置端口FCS的位数

set interface so-slot/pic/port sonet-options payload-scrambler #配置端口打开payload-scrambler

set interface so-slot/pic/port sonet-options rfc-2615

#配置端口FCS 32,打开payload-scrambler,C2字节为0x16

set interface so-slot/pic/port sonet-options fcs [32|16] #配置端口FCS的位数

set interface so-slot/pic/port unit 0 family inet address ip-address #配置IP地址

set interface so-slot/pic/port unit 0 family iso #端口允许运行ISIS

set interface so-slot/pic/port unit 0 family mpls #端口允许运行mpls

set interfaces so-0/0/0 description “to_SN-SIA-XHM-ZTE-A-1”

set interfaces so-0/0/0 mtu 9182

set interfaces so-0/0/0 hold-time up 5000 down 0

set interfaces so-0/0/0 encapsulation ppp

set interfaces so-0/0/0 sonet-options fcs 32

set interfaces so-0/0/0 sonet-options payload-scrambler

set interfaces so-0/0/0 sonet-options rfc-2615

set interfaces so-0/0/0 sonet-options fcs 32

set interfaces so-0/0/0 unit 0 family inet address 59.43.17.1/30

set interfaces so-0/0/0 unit 0 family iso

set interfaces so-0/0/0 unit 0 family mpls

commit synchronize

配置端口聚合

set chassis aggregated-devices ethernet device-count #定义聚合端口数量,juniper

最多支持128个聚合端口

set interfaces ge-2/0/0 gigether-options 802.3ad ae0 #将物理端口定义到聚合端口ae0上

set interfaces ge-2/0/1 gigether-options 802.3ad ae0 #将物理端口定义到聚合端口ae0上

set interfaces ge-2/0/2 gigether-options 802.3ad ae0 #将物理端口定义到聚合端口ae0上

set interfaces ae0 unit 0 family inet address 221.176.1.68/26 #设置聚合端口ae0的IP地址

开启系统ftp服务

命令:

#set system services ftp

#commit

说明:系统默认是没有打开ftp功能的,只有打开ftp服务之后才能从网络上ftp到路由器。

Juniper防火墙NS140/208/520/550/2000

配置IP:

设置端口速率和工作模式

JUNIPER安全设备的接口速率和双工模式均为自适应。接口能以三种不同模式运行,分别是 : 网络地址转换 (NAT)、路由和透明。如果绑定到第 3 层区段的接口具有 IP 地址,则可为该接口定义 NAT 或路由操作模式。绑定到第 2 层区段 (如预定义的 v1-trust、v1-untrust 和 v1-dmz,或用户定义的第 2 层区段 ) 的接口必须为透明模式。在配置接口时选择操作模式。

注意 : 尽管可以将绑定到任意第 3 层区段的接口的操作模式定义为 NAT,但是,安全设备只对通过该接口传递到 Untrust 区段的信息流执行 NAT。对于通往 Untrust 区段之外的其它任意区段的信息流,ScreenOS 不执行 NAT。还要注意,ScreenOS 允许您将 Untrust 区段接口设置为 NAT 模式,但是这样做并不会激活任何 NAT 操作。

主端口配置

配置连接内网接口参数

选择Network > Interfaces > Ethernet0/0 > Edit : 输入以下内容,单击OK

在Zone Name Trust ---------将Ethernet 0/0 设置成trust安全区域

IP Address / Net mask : 192.168.20.4 /29 ----------输入IP 地址

同时你还可以选择management servers (ping\telnet\web\ssh\snmp\ssl)