Skip to content

Instantly share code, notes, and snippets.

@athom
Created January 11, 2011 03:55
Show Gist options
  • Save athom/773992 to your computer and use it in GitHub Desktop.
Save athom/773992 to your computer and use it in GitHub Desktop.
TW_IP=10.56.127.245
OAM_MASK=28
CP_MASK=29
UP_MASK=29
HTTPDPlat_IP=10.69.9.10
HCLBRG_IP=10.69.9.18
MGW_IPNIURG0=10.69.9.28
CP_GW_IP=10.69.9.17
UP_GW_IP=10.69.9.25
TDM_PIU_INDEX=15
TDM_PORT_INDEX=0
TDM_AMC_INDEX=3
TDM_CGR_NAME=nsn
SET_NUMBER=0
#license
echo "LicenseAdminState=0" > /etc/license_config.ini
fsclish -c "add networking address dedicated /HTTPDPlat iface eth4 ip-address $HTTPDPlat_IP/$OAM_MASK"
fsclish -c "add networking address dedicated /MGW_HCLBRG-0 iface eth2 ip-address $HCLBRG_IP/$CP_MASK"
fsclish -c "add networking address dedicated /MGW_IPNIURG-0 iface eth_sfp1 ip-address $MGW_IPNIURG0/$UP_MASK"
fsclish -c "set routing node CLA-0 static-route $TW_IP/32 nexthop gateway address $CP_GW_IP on"
fsclish -c "set routing node IPN-0 static-route $TW_IP/32 nexthop gateway address $UP_GW_IP on"
echo "show CP GW"
fsclish -c "show routing node CLA-0 static-route config all"
echo "show UP GW"
fsclish -c "show routing node IPN-0 static-route config all"
echo "show network address"
fsclish -c "show networking address"
echo "ping TW"
ping -I $HCLBRG_IP $TW_IP -c 3
#ping -I eht2 $TW_IP
#setting e164
fsclish -c "set mgw common service-endpoint-address e164 123456789"
#add TDM circuitgroup
fsclish -c "add tdm sdh set chassis-index 1 piu-index $TDM_PIU_INDEX port-index $TDM_PORT_INDEX amc-index $TDM_AMC_INDEX"
fsclish -c "add tdm sdh pgr wo-index 0 sp-index 128"
fsclish -c "add tdm pdh letgr set-index 0"
fsclish -c "set tdm sdh set lineloop line off set-index 0"
fsclish -c "add tdm circuitgroup ncgr $TDM_CGR_NAME spe vmgw"
fsclish -c "add tdm crct ncgr $TDM_CGR_NAME crct-pcm 0 crct-tsl 1-31"
fsclish -c "set tdm crct-state admin-state unlocked crct-pcm 0 crct-tsl 1-31"
#show state
fsclish -c "show tdm circuitgroup crct ncgr $TDM_CGR_NAME"
#syn
fsclish -c "add mgw synchronization inputreference port set-$SET_NUMBER"
fsclish -c "set mgw synchronization inputreference port set-$SET_NUMBE priority 12 forceql 2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment