the following example displays all lines from the outport for the show config command in any mode beginning with the line before the first line that contains the word,ospf,and
including the 6 line after the first occurrence of the pattern:
[local]redback#show configuration |begin before 1 after 6 ospf
router ospf 64001
spf-timers 1 1
area 0.0.0.0
interface 10.100.11.10
area 0.0.0.11
interface 10.100.11.27
interface 10.100.11.49
_______________________________________________________________________________________________________________________________
the following example displays all lines in the current config file that contain the word port:
[local]redback#show config | include port
card ether-12-port 1
card oc12-4-port 2
card gegaether-4-port 3
___________________________________________________________________________________________________________________________________________
the following example specifies that the file name old_config.cfg be loaded when the system is reloaded or powered on:
[local]redback(config)#boot configurtion /flash/old_config.cfg
specifies default config
[local]redback(config)#defaulet boot configuration
___________________________________________________________________________________________________________________________________
the following example config a bridged interface and binds it to an existing bridge group isp1:
[local]redback(config-config)#context bridge
[local]redback(config-ctx)#interface if-isp1 bridge
[local]redback(config-if)#bridge name isp1
_______________________________________________________________________________________________________________________________________
the following example config a ppp password an ip address and a static and a static route and assigns a route
tag to the ip address and to the static route in the subsreber record named pppuser in the local context:
[local]redback(config)#context local
[local]redback(config-ctx)#subscreber name pppuser
[local]redback(config-sub)#ip address 10.1.3.30
[local]redback(config-sub)#ip subsverber-router 10.2.1.1/24
________________________________________________________________________________________________________________________________________
the following examle assigns the ip route 216.199.130.160 255.255.255.254 to the subscriber name samQ
[local]redback(config-ctx)#subscriber name samQ
[local]redback(config-sub)#ip address 10.1.2.3
[local]redback(config-sub)#ip subscriber route 216.199.130.160 255.255.255.224
________________________________________________________________________________________________________________________________________
the following example sets a maximum of two sessions for subscriber joe to use simultaneously:
[local]redback(config-ctx)#subscriber name joe
[local]redback(config-sub)#port-limit 2
________________________________________________________________________________________________________________________________________
the following example assigns the ATM profile ubr to the named subscriber profile isp2:
[local]redback(config-ctx)#subscriber profile isp2
[local]redback(config-sub)#shaping-profile ubr
_________________________________________________________________________________________________________________________________________
config a POS OC-12S/STM-4c card in slot 3,enables the SONET path and alarm monitoring:
[local]redback(config)#card oc12-4-port 3
[local]redback(config-card)#sonet-eu
[local]redback(config-card)#exit
config a 4-port ATM oc-3c/STM-1c card in slot 4,and loads the HSVC SAR image:
[local]redback(config)#card atm-oc3-4-port 4
[local]redback(config-card)#hierarchical shaping
_________________________________________________________________________________________________________________________________________
use the atm scramble command on an ATM OC port,or the atm scramble-ds3 command on an ATM DS-3 port.
enables port listening mode for port 2 on the 4-port ATM OC-3c/STM-1c card in slot 3:
[local]redback(config)#port atm 3/2
[local]redback(config-port)#ccod-mode port-listen
__________________________________________________________________________________________________________________________________________
config port 1 on the ATM DS-3 card in slot 3 to ignore remote loopback requests:
[local]redback(config)#port atm 3/1
[local]redback(config-atm-ds3)#equipment-loopback network
_________________________________________________________________________________________________________________________________________
set the framing for an ATM DS-3 port to cbit-plcp:
[local]redback(config)#port atm 3/1
[local]redback(config-atm-ds3)#framing cbit-plcp
sets the framing for an ATM OC port to sdh:
[local]redback(config)#port atm 3/1
[local]redback(config-atm-oc)#framing sdh
______________________________________________________________________________________________________________
config clear-channel DS-3 channel 1 on the first constituent STS-1 on port 1 on the channelized OC-12 in slot
4 using all the defaults ,and set the encapsulation frame-relay
[local]redback(conifg)#port ds3 4/1:1
[local]redback(conifg-ds3)#description clear-channel ds3
[local]redback(conifg-ds3)#encapsulation frame-relay
[local]redback(conifg-ds3)#no shutdown
_______________________________________________________________________________________________________________
config a ds-0 channel group with time slots 7.9.11.13.15,no channelized E1 port 1 on the E1 card in slot 5 using
all the defaults
[local]redback(conifg)#port ds0s 5/1:7
[local]redback(conifg-ds0-group)#description ds-0 channel guoup
[local]redback(conifg-ds0-guoup)#timeslot 7,9,13,15
[local]redback(conifg-ds0-group)#no shutdown
__________________________________________________________________________________________________________________
inverts the polarity of all bits in the data stream on ds-1 channel 1 on ds-3 channel 1 on port of the channelized oc
-12 card in slot 3:
[local]redback(config)#port ds1 3/1:1:1
[local]redback(config-ds1)#invert-data
__________________________________________________________________________________________________________________
changes the channel operation of a ds-1 channel to a loopback state to verify remote link connectivity:
[local]redback(config)#port ds1 3/1:1
[local]redback(config-ds1)#loopback remote
___________________________________________________________________________________________________________________
enables the national bit for the E3 port 1 on the clear-channel E3 card in slot4:
[local]redback(config)#port e3 4/1
[local]redback(config-e3)#framing g751
[local]redback(config-e3)#national
_____________________________________________________________________________________________________________
selects a channelized E1 port on a channelized E1 card and creates an associated DS-0 channel guoup:
[local]redback(config)#card ch-e1ds0-24-port 1
[local]redback(config-card)#exit
!select the channelized e1 port on the channelized e1 card
[local]redback(config)#port e1 1/1
[local]redback(config-e1)#no shutdown
[local]redback(config-e1)#exit
___________________________________________________________________________________________________________
selects a channelized E1 channel on a port on an channelized STM-1 card and an associated DS-0 channel group
[local]redback(config)#card ch-stm1ds0-3-port 2
[local]redback(card)#exit
!select the channelized STM-1 port
[local]redback(config)#port channelized-stm1 2/1
[local]redback(config-stm1)#no shutdown
[local]redback(config-stm1)#exit
!create the channelized E1 channel on te channelized STM-1 port
[local]redback(config)#port e1 2/1:1
[local]redback(config-e1)#no shutdown
[local]redback(config-e1)#exit
!create the ds-0 channel guoup with a base time slot of 3
[local]redback(config)#port ds0s 2/1:1:3
[local]redback(config-ds0-group)#timeslot 3,7,9,12,15
[local]redback(config-ds0-group)#no shutdown
__________________________________________________________________________________________________________
enables encapsulation notification s globally and disables them locally for the ds-0 channel group on port
1 of a channelized E1 card:
[local]redback(config)snmp server enhance ifmib
[local]redback(config-snmp-server)#traps ifmib encaps
[local]redback(config-snmp-server)#exit
[local]redback(config)#port ds0s 5/1:7
[local]redback(config-ds0-group)#traps ifmib disabled
_________________________________________________________________________________________________________________________________
APS 相关配置
creates the APS group lab48 with revertive switching and a WTR of 10 minutes,configure the port on two OC-48C/STM-16C cards for the
group,and adds them to the group:
[local]redback(config)#aps group lab48
[local]redback(config-aps)#revert 10
[local]redback(config-aps)#exit
[local]redback(config)#port pos 2/1
[local]redback(config-port)#encapsulation chdlc
[local]redback(config-port)#aps working lab48
[local]redback(config-port)#bind interface if-lab48 local
[local]redback(config-port)#no shutdown
[local]redback(config-port)#exit
[local]redback(config)#port pos 3/1
[local]redback(config-port)#encapsulation chdlc
[local]redback(config-port)#aps protect lab48
[local]redback(config-port)#no shutdown
[local]redback(config-port)#exit
__________________________________________________________________________________________________________