JUNOS supports container interfaces for APS on SONET links. Physical interfaces and logical interfaces remain up on switchover, and their APS parameters are auto-copied from the container interface to the member links. See Container Interfaces for more information.
Container interfaces support the following features:
To configure a container interface, you must first create the number of container devices that you require. You can create up to a maximum of 128 container interfaces per router using the device-count statement at the [edit chassis container-devices] hierarchy level. You can create more container interfaces later if required, up to 128 (total). The resulting container interfaces are designated sequentially from ci0 up to a maximum of ci127, depending on the device-count number specified. SONET interfaces can be assigned to any container interface cin.
To configure each container interface, you must assign two SONET interfaces (so-fpc/pic/port) using the container-list cin statement, and specify the member-interface-speed speed and container-options for each SONET interface.
Within each of the two SONET interfaces' container options, you must set one container-type as primary (corresponding to an APS working circuit) and the other as standby (corresponding to an APS protect circuit). For each SONET interface, you can also use the allow-configuration-override statement to allow the physical configuration of a member link to override the container configuration.
The following configuration steps are required:
- [edit chassis container-devices]
- user@host# set device-count number
- [edit interfaces]
- user@host# edit cin
- [edit interfaces cin]
- user@host# set encapsulation (cisco-hdlc |
ppp)
- [edit interfaces cin]
- user@host# set container-options container-type aps
- [edit interfaces cin]
- user@host# set interfaces cin container-options member-interface-type sonet
- [edit interfaces cin]
- user@host# set interfaces cin container-options member-interface-type sonet member-interface-speed speed
- [edit interfaces cin]
- user@host# set interfaces cin unit number family inet address ip-address/mask
For example, setting so-0/0/0 as the primary and so-0/0/1 as the standby SONET interfaces for container interface ci0:
- [edit]
- user@host#edit interfaces so-0/0/0 # Enter config mode for interface so-0/0/0
- [edit interfaces so-0/0/0]
- user@host#set container-options container-list
ci0 primary # Set so-0/0/0 as APS primary interface
- [edit interfaces so-0/0/0]
- user@host#top
- [edit]
- user@host#edit interfaces so-0/0/1 # Enter config mode for interface so-0/0/1
- [edit interfaces so-0/0/1]
- user@host#set container-options container-list
ci0 standby # Set so-0/0/1 as APS standby interface
Optionally, you can set the allow-configuration-override statement to allow the physical configuration of a member link to override the container configuration:
- [edit interfaces so-0/0/1]
- user@host#set container-options container-list
ci0 standby allow-configuration-override
Example Container Interface Configuration
The following snippet is an example container interface configuration:
- [edit chassis]
-
container-devices {
- device-count 1;
- }
- [edit interfaces]
- so-1/0/2 {
-
-
container-options {
-
container-list ci0;
- primary;
- }
- }
- so-1/0/3 {
-
-
container-options {
-
container-list ci0;
- standby;
- }
- }
- ci0 {
-
encapsulation cisco-hdlc;
-
-
container-options {
-
-
container-type aps {
-
-
member-interface-type sonet {
-
member-interface-speed mixed;
- }
- }
- }
-
- unit 0 {
-
- family inet {
- address 192.168.11.1/24;
- }
- }
- }
You can run the show aps command to display the APS container interface configuration, as follows:
user@host> show aps
Interface Group Circuit Intf state ci0 CONTAINER_ci0 Container enabled, up so-1/2/2 MEMBER_OF_ci0 Working enabled, up so-1/2/3 MEMBER_OF_ci0 Protect disabled, up