This article provides an example of configuring an interface and security zone on an SRX Series device.
For other topics, go to the SRX Getting Started main page.
Configure interfaces and security zones.
This section contains the following:
Junos uses the following interface naming conventions:
show interface terse
user@host> show interfaces terse Interface Admin Link Proto Local Remote ge-0/0/0 up up ge-0/0/0.0 up up inet 10.85.49.150/24 gr-0/0/0 up up ip-0/0/0 up up lsq-0/0/0 up up lt-0/0/0 up up mt-0/0/0 up up pd-0/0/0 up up pe-0/0/0 up up
Interface Type - Slot / Module / Port . Logical number For information about interface name syntax, see Interface Naming Conventions . For information about slot numbering for SRX Series devices, see Network Interfaces .
For example :
ge-0/0/0 = First onboard Gigabit Interface st0.0 = First Secure Tunnel Interface (VPN Tunnel) lo0 = First loopback interface
For example:
show interfaces ge-0/0/*
A security zone is a collection of interfaces that define a security boundary. Internal network interfaces may be assigned to a security zone named "trust," and external network interfaces may be assigned to a security zone named "untrust." Security policies are then used to control transit traffic between security zones. For more information about security zones, see Understanding Security Zones . Note: For SRX Branch devices, interfaces are assigned to a default security zone in the factory-default settings. See the device's Getting Started Guide for interface and zone assignments, as they vary by platform. The Getting Started Guide can be located as follows:
Restrictions:
Security policies are associated with zones. A packet’s incoming zone, as determined by the interface through which it arrived, and its outgoing zone, as determined by the forwarding lookup, together determine which policy is used for packets of the flow. For information about zones and policies, refer to Security Policies Feature Guide for Security Devices .
J-Web The following example configures a security zone with one interface:
CLI The following example configures a security zone with one interface:
user@host# set interfaces ge-0/0/1 unit 0 family inet address 192.168.20.2/24
user@host#
set interfaces ge-0/0/1 unit 0 family inet address 192.168.20.2/24
For more information about configuring an interface, see Technical Documentation .
user@host# set security zones security-zone trust
set security zones security-zone trust
user@host# set security zones security-zone trust interfaces ge-0/0/1.0
set security zones security-zone trust interfaces ge-0/0/1.0
For more information about configuring a security zone, see Technical Documentation .
user@host> show security zones user@host> show interfaces
user@host> show security zones user@host>
show interfaces
Configure the ge-0/0/1.0 interface with the IP address 192.168.20.2/24.
If a security zone name does not exist, configure a security zone:
Assign the ge-0/0/1.0 interface to the trust security zone.
To verify interface and security zone configuration, use the following operational commands:
show interfaces terse
show security zones
Interfaces
show interface
monitor interface
[edit interfaces] user@host# set traceoptions flag ? Possible completions: all Enable all configuration logging change-events Log changes that produce configuration events config-states Log the configuration state machine changes kernel Log configuration IPC messages to kernel kernel-detail Log details of configuration messages to kernel
A specific interface:
[edit interfaces ge-11/1/0] user@host# set traceoptions flag ? Possible completions: all Enable all interface trace flags event Trace interface events ipc Trace interface IPC messages media Trace interface media changes
For information about configuring traceoptions for debugging and trimming output, see KB16108 - SRX Getting Started -- Configuring Traceoptions for Debugging and Trimming Output [juniper.net] .
All interfaces:
Zones
[edit security] user@host# set traceoptions flag ? Possible completions: all Trace everything compilation Trace compilation events configuration Trace configuration events routing-socket Trace routing socket events
2020-04-17: Article reviewed for accuracy; minor changes done to steps in J-Web