[Contents] [Prev] [Next] [Index] [Report an Error]

Complete Configuration Example

The following example contains the commands used to configure ANCP. You can customize and use this example in your own network.

You can copy the text into a text editor and modify it (removing all prompts and changing values) for immediate use or save the modified example as a script (.scr) file. Script files allow you to execute commands as though they were entered at the terminal. For information about creating and executing script files, see Command Line Interface in JUNOSe System Basics Configuration Guide.

!Configure an OIF map
host1(config)#ip igmp oif-map OIFMAP atm 2/0.101 232.1.1.1 10.1.1.1
host1(config)#ip igmp oif-map OIFMAP atm 2/0.102 232.1.1.2 10.1.1.2
!Define ANCP parameters
host1(config)#l2c
host1(config-l2c)#session-timeout 15
!Enable ANCP to listen to OIF mapping events from IGMP in this virtual router
host1(config)#l2c ip oif
!Create a listening TCP socket in the virtual router
host1(config)#l2c ip listen
!Define ANCP neighbor parameters.
host1(config-l2c)#neighbor ACCESS_NODE_1
host1(config-l2c-neighbor)#id 09af.15bc.3156
!Configure ANCP multicast labels on the corresponding outgoing interfaces
host1(config)#interface atm 2/0.101
host1(config-interface)#ip igmp version passive
host1(config-interface)#l2c peer-attachment-id “ in_multicast_port_3”
host1(config)#interface atm 2/0.102
host1(config-interface)#ip igmp version passive
host1(config-interface)#l2c peer-attachment-id “ in_multicast_port_5”
!Configure ANCP output labels, neighbor information, and apply OIF map
host1(config)#interface atm 2/0.11
host1(config-interface)#ip igmp apply-oif-map OIFMAP
host1(config-interface)#l2c end-user-id “ out_subscriber_port_6” neighbor ACCESS_NODE_1
host1(config)#interface atm 2/0.12
host1(config-interface)#ip igmp apply-oif-map OIFMAP
host1(config-interface)#l2c end-user-id “ out_subscriber_port_7” neighbor ACCESS_NODE_1

[Contents] [Prev] [Next] [Index] [Report an Error]