Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Example: Configuring Zones for a User Logical System

    This example shows how to configure zones for a user logical system.

    Requirements

    Before you begin:

    Overview

    This example configures the ls-product-design user logical system shown in Example: Creating User Logical Systems, Their Administrators, Their Users, and an Interconnect Logical System.

    This example creates the zones and address books described in Table 1.

    Table 1: User Logical System Zone and Address Book Configuration

    Feature

    Name

    Configuration Parameters

    Zones

    ls-product-design-trust

    • Bind to interface ge-0/0/5.1.
    • TCP reset enabled.

    ls-product-design-untrust

    • Bind to interface lt-0/0/0.3.

    Address books

    product-design-internal

    • Address product-designers: 12.1.1.0/24
    • Attach to zone ls-product-design-trust

    product-design-external

    • Address marketing: 13.1.1.0/24
    • Address accounting: 14.1.1.0/24
    • Address others: 12.12.1.0/24
    • Address set otherlsys: marketing, accounting
    • Attach to zone ls-product-design-untrust

    Configuration

    CLI Quick Configuration

    To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

    set security address-book product-design-internal address product-designers 12.1.1.0/24 set security address-book product-design-internal attach zone ls-product-design-trust set security address-book product-design-external address marketing 13.1.1.0/24 set security address-book product-design-external address accounting 14.1.1.0/24 set security address-book product-design-external address others 12.12.1.0/24 set security address-book product-design-external address-set otherlsys address marketing set security address-book product-design-external address-set otherlsys address accounting set security address-book product-design-external attach zone ls-product-design-untrust set security zones security-zone ls-product-design-trust tcp-rst set security zones security-zone ls-product-design-trust interfaces ge-0/0/5.1 set security zones security-zone ls-product-design-untrust interfaces lt-0/0/0.3

    Step-by-Step Procedure

    The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode in the Junos OS CLI User Guide PDF Document.

    To configure zones in a user logical system:

    1. Log in to the user logical system as the logical system administrator and enter configuration mode.
      lsdesignadmin1@host:ls-product-design> configurelsdesignadmin1@host:ls-product-design#
    2. Configure a security zone and assign it to an interface.
      [edit security zones]lsdesignadmin1@host:ls-product-design# set security-zone ls-product-design-trust interfaces ge-0/0/5.1
    3. Configure the TCP-Reset parameter for the zone.
      [edit security zones security-zone ls-product-design-trust]lsdesignadmin1@host:ls-product-design# set tcp-rst
    4. Configure a security zone and assign it to an interface.
      [edit security zones]lsdesignadmin1@host:ls-product-design# set security-zone ls-product-design-untrust interfaces lt-0/0/0.3
    5. Create global address book entries.
      [edit security]lsdesignadmin1@host:ls-product-design# set address-book product-design-internal address product-designers 12.1.1.0/24lsdesignadmin1@host:ls-product-design# set address-book product-design-external address marketing 13.1.1.0/24lsdesignadmin1@host:ls-product-design# set address-book product-design-external address accounting 14.1.1.0/24lsdesignadmin1@host:ls-product-design# set address-book product-design-external address others 12.12.1.0/24lsdesignadmin1@host:ls-product-design# set address-book product-design-external address-set otherlsys address marketinglsdesignadmin1@host:ls-product-design# set address-book product-design-external address-set otherlsys address accounting
    6. Attach address books to zones.
      [edit security]lsdesignadmin1@host:ls-product-design# set address-book product-design-internal attach zone ls-product-design-trustlsdesignadmin1@host:ls-product-design# set address-book product-design-external attach zone ls-product-design-untrust

    Results

    From configuration mode, confirm your configuration by entering the show security zones command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

    lsdesignadmin1@host:ls-product-design# show securityaddress-book {product-design-internal {address product-designers 12.1.1.0/24;attach {zone ls-product-design-trust;}}product-design-external {address marketing 13.1.1.0/24;address accounting 14.1.1.0/24;address others 12.12.1.0/24;address-set otherlsys {address marketing;address accounting;}attach {zone ls-product-design-untrust;}}}zones {security-zone ls-product-design-trust {tcp-rst;interfaces {ge-0/0/5.1;}}security-zone ls-product-design-untrust {interfaces {lt-0/0/0.3;}}}

    If you are done configuring the device, enter commit from configuration mode.

    Published: 2012-06-29