Sie sind auf Seite 1von 16

Introduction to Junos Software

Appendix A: Interface Configuration Examples

2010 Juniper Networks, Inc. All rights reserved. | www.juniper.net | Worldwide Education Services

Appendix Objectives
After successfully completing this appendix, you will be able to:
Describe the interface configuration hierarchy Configure various interface types Use configuration groups for interface-related configuration

2010 Juniper Networks, Inc. All rights reserved.

Worldwide Education Services

www.juniper.net | A-2

Agenda: Interface Configuration Examples


Review of the Interface Configuration Hierarchy Interface Configuration Examples Using Configuration Groups

2010 Juniper Networks, Inc. All rights reserved.

Worldwide Education Services

www.juniper.net | A-3

Review of Interface Properties (1 of 2)


Physical properties settings include:
Data Link Layer protocol Link speed and duplex Physical MTU

Logical properties settings include:


Protocol family:
inet inet6 iso mpls ethernet-switching

Addresses (IPv4 or IPv6 address and ISO NET address) Virtual circuits (VLAN tag, DLCI, and VPI or VCI)
2010 Juniper Networks, Inc. All rights reserved.

Worldwide Education Services

www.juniper.net | A-4

Review of Interface Properties (2 of 2)


Configure physical and logical interface properties at their respective levels:
interfaces { interface-name { physical-properties; [] unit unit-number { logical-properties; [] } } }

Configure physical properties under the interface-name

Configure logical properties under the unit-number

2010 Juniper Networks, Inc. All rights reserved.

Worldwide Education Services

www.juniper.net | A-6

Agenda: Interface Configuration Examples


Review of the Interface Configuration Hierarchy Interface Configuration Examples Using Configuration Groups

2010 Juniper Networks, Inc. All rights reserved.

Worldwide Education Services

www.juniper.net | A-7

Interface Configuration Examples (1 of 4)


Fast Ethernet interface configured as VLAN tagged interface with multiple logical units
fe-0/0/5 { description "Customers"; vlan-tagging; unit 100 { description "Prickly Pete's Plumbing"; vlan-id 100; family inet { address 172.20.100.1/24; } } unit 200 { description "Sassy Sue's Salon"; vlan-id 200; family inet { address 172.20.200.1/24; } } }

Serial interface configured with frame-relay encapsulation as DCE with multiple logical units
se-1/0/1 { description "Remote Branches"; encapsulation frame-relay; unit 102 { description "Kalamazoo, MI"; dlci 102; family inet { address 172.17.39.22/30; } } unit 202 { description "Winnemucca, NV"; dlci 202; family inet { address 172.17.55.22/30; } } }

2010 Juniper Networks, Inc. All rights reserved.

Worldwide Education Services

www.juniper.net | A-8

Interface Configuration Examples (2 of 4)


ATM interface configured with a single VCI SONET interface configured with point-to-point encapsulation and multiple protocol families
so-2/0/1 { description Peer Connection"; encapsulation ppp; unit 0 { description SanJose to Denver"; family inet { address 172.19.231.1/30; } family iso; family mpls; } }

at-0/2/0 { description Internet Connection"; atm-options { pic-type atm2; vpi 0; } unit 100 { description ISP YOYOMA"; vci 100; family inet { address 10.222.29.1/30; } } }

2010 Juniper Networks, Inc. All rights reserved.

Worldwide Education Services

www.juniper.net | A-9

Interface Configuration Examples (3 of 4)


ls-0/0/0 { unit 0 { family inet { address 172.18.37.5/30; } } } se-1/0/0 { serial-options { clocking-mode dce; } unit 0 { family mlppp { bundle ls-0/0/0.0; } } } se-1/0/1 { serial-options { clocking-mode dce; } unit 0 { family mlppp { bundle ls-0/0/0.0; } } }

Two serial interfaces bundled as a multilink PPP interface (configuration taken from host1-a)
Clocking mode = Internal (provides interface timing)

host1-a

host2-a

2010 Juniper Networks, Inc. All rights reserved.

Worldwide Education Services

www.juniper.net | A-10

Interface Configuration Examples (4 of 4)


Three interfaces configured for LAG [edit chassis] user@host# show aggregated-devices { ethernet { device-count 1; } }

Creates logical aggregated Ethernet interface (ae0)

[edit interfaces ae0] user@host# show aggregated-ether-options { lacp { passive; Requires LACP configuration on } the other side to use active mode } unit 0 { family ethernet-switching { port-mode trunk; vlan { members [ orange purple blue ]; } } }
2010 Juniper Networks, Inc. All rights reserved.

[edit interfaces] user@host# show ge-0/0/1 { gigether-options { 802.3ad ae0; } } ge-0/0/2 { gigether-options { 802.3ad ae0; } } fe-0/0/1 { fastether-options { 802.3ad ae0; } } Associates member links with LAG (ae0)
www.juniper.net | A-12

Worldwide Education Services

Agenda: Interface Configuration Examples


Review of the Interface Configuration Hierarchy Interface Configuration Examples Using Configuration Groups

2010 Juniper Networks, Inc. All rights reserved.

Worldwide Education Services

www.juniper.net | A-14

Overview of Configuration Groups


Groups of statements that you can apply to different sections of a configuration
Shortcut method of applying the same parameters to many parts of a configuration Target area of configuration inherits information from source of configuration data
Configured at [edit groups] hierarchy level

groups { <group-name>{ <configuration-statements>{ } } }

2010 Juniper Networks, Inc. All rights reserved.

Worldwide Education Services

www.juniper.net | A-15

Interface Group Example


Definition
[edit] user@host# show groups all-atm { interfaces { <at-*> { encapsulation atm-pvc; atm-options { vpi 0 maximum-vcs 200; } unit 100 { point-to-point; vci 0.100; } } } }

Application
[edit interfaces] user@host# show apply-groups all-atm; at-0/0/1 { unit 100 { family inet { address 172.18.101.1/30; } } }

2010 Juniper Networks, Inc. All rights reserved.

Worldwide Education Services

www.juniper.net | A-16

Displaying Inherited Configuration


[edit] user@host# show interfaces at-0/0/1 unit 100 { family inet { address 172.18.101.1/30; } } Use | display inheritance to show all inherited statements

[edit interfaces] user@host# show interfaces at-0/0/1 | display inheritance | except # encapsulation atm-pvc; atm-options { vpi 0 { maximum-vcs 200; } Use | except # to exclude comments } related to inherited statements unit 100 { point-to-point; vci 0.100; family inet { address 172.18.101.1/30; } }
Worldwide Education Services

2010 Juniper Networks, Inc. All rights reserved.

www.juniper.net | A-17

Summary
In this appendix, we:
Described the interface configuration hierarchy Configured various interface types Used configuration groups for interface-related configuration

2010 Juniper Networks, Inc. All rights reserved.

Worldwide Education Services

www.juniper.net | A-19

Worldwide Education Services

Das könnte Ihnen auch gefallen