Config Mansouen Final
Config Mansouen Final
exit all
configure
#--------------------------------------------------
echo "System Configuration"
#--------------------------------------------------
system
name "Mansouen"
location "OST_293"
cellular
pdn-profile 1 create
apn "hmctrial"
exit
pdn-profile 2 create
apn "orange"
exit
exit
management-interface
yang-modules
no nokia-combined-modules
nokia-submodules
exit
exit
snmp
shutdown
exit
time
ntp
no authentication-check
no shutdown
exit
sntp
shutdown
exit
zone WCA 01
exit
thresholds
rmon
alarm 1000 variable-oid tmnxCellPortRsrp.35684352 interval 2
rising-event 111 rising-threshold -85 falling-event 110 falling-threshold -90
alarm 1001 variable-oid tmnxCellPortRssi.35684352 interval 2
rising-event 121 rising-threshold -85 falling-event 120 falling-threshold -95
event 110 trap description "RSRP drops below -90"
event 111 trap description "RSRP rises above -85"
event 120 trap description "RSSI drops below -95"
event 121 trap description "RSSI rises above -85"
exit
exit
script-control
script "Collect_Modem_Logs_from_CLI"
location "cf3:/Collect_Modem_Logs_from_CLI.sh"
no shutdown
exit
script-policy "Collect_Modem_Logs_from_CLI"
results "/null"
script "Collect_Modem_Logs_from_CLI"
no shutdown
exit
exit
exit
#--------------------------------------------------
echo "System Security Configuration"
#--------------------------------------------------
system
security
snmp
access group "SNMPv3" security-model usm security-level privacy
read "iso" write "iso" notify "iso"
exit
dist-cpu-protection
policy "_default-access-policy" create
exit
policy "_default-network-policy" create
exit
exit
exit
exit
#--------------------------------------------------
echo "Log Configuration"
#--------------------------------------------------
log
exit
#--------------------------------------------------
echo "Card Configuration"
#--------------------------------------------------
card 1
card-type iom-sar-hmc
mda 1
mda-type i2-cellular
cellular
down-recovery-criteria bgp
exit
no shutdown
exit
mda 2
mda-type i3-10/100eth-tx
no shutdown
exit
mda 3
mda-type i2-sdi
no shutdown
exit
no shutdown
exit
#--------------------------------------------------
echo "Port Configuration"
#--------------------------------------------------
port 1/1/1
cellular
pdn
pdn-profile 1
exit
exit
no shutdown
exit
port 1/1/2
shutdown
exit
port 1/2/1
ethernet
encap-type dot1q
exit
no shutdown
exit
port 1/2/2
ethernet
mode network
exit
no shutdown
exit
port 1/2/3
shutdown
ethernet
exit
exit
port 1/3/1
shutdown
exit
port 1/3/2
shutdown
exit
#--------------------------------------------------
echo "Management Router Configuration"
#--------------------------------------------------
router management
exit
#--------------------------------------------------
echo "Router (Network Side) Configuration"
#--------------------------------------------------
router Base
interface "lte" pdn
port 1/1/1
unnumbered "system"
ip-mtu 1500
no shutdown
exit
interface "system"
address 172.27.108.13/32
no shutdown
exit
interface "toPC"
address 10.10.10.1/24
port 1/2/2
allow-directed-broadcasts
no shutdown
exit
autonomous-system 65100
#--------------------------------------------------
echo "Static Route Configuration"
#--------------------------------------------------
static-route-entry 0.0.0.0/0
next-hop "lte"
no shutdown
exit
exit
exit
#--------------------------------------------------
echo "Service Configuration"
#--------------------------------------------------
service
customer 1 name "1" create
description "Default customer"
exit
vprn 20 name "20" customer 1 create
interface "toSBTS_Mansouen-2G" create
exit
exit
vprn 30 name "30" customer 1 create
interface "toSBTS_Mansouen-3G" create
exit
exit
vprn 40 name "40" customer 1 create
interface "toSBTS-Mansouen_OAM" create
exit
exit
vprn 20 name "20" customer 1 create
description "2G-service"
interface "toSBTS_Mansouen-2G" create
description "2G-service"
address 172.30.250.209/30
sap 1/2/1:1879 create
exit
exit
bgp-ipvpn
mpls
auto-bind-tunnel
resolution-filter
gre
exit
resolution filter
exit
route-distinguisher 65100:20
vrf-target target:65100:20
no shutdown
exit
exit
no shutdown
exit
vprn 30 name "30" customer 1 create
interface "toSBTS_Mansouen-3G" create
address 172.30.250.77/30
sap 1/2/1:1881 create
exit
exit
bgp-ipvpn
mpls
auto-bind-tunnel
resolution-filter
gre
exit
resolution filter
exit
route-distinguisher 65100:30
vrf-target target:65100:30
no shutdown
exit
exit
no shutdown
exit
vprn 40 name "40" customer 1 create
interface "toSBTS-Mansouen_OAM" create
address 172.30.247.177/30
sap 1/2/1:1882 create
exit
exit
bgp-ipvpn
mpls
auto-bind-tunnel
resolution-filter
gre
exit
resolution filter
exit
route-distinguisher 65100:40
vrf-target target:65100:40
no shutdown
exit
exit
no shutdown
exit
exit
#--------------------------------------------------
echo "Router (Service Side) Configuration"
#--------------------------------------------------
router Base
interface "lte" pdn
exit
#--------------------------------------------------
echo "BGP Configuration"
#--------------------------------------------------
bgp
min-route-advertisement 1
rapid-withdrawal
rapid-update vpn-ipv4 l2-vpn
group "VSR-1"
family vpn-ipv4 l2-vpn
type internal
neighbor 172.27.108.240
exit
exit
no shutdown
exit
exit
#--------------------------------------------------
echo "Source IP Address Configuration"
#--------------------------------------------------
system
security
source-address
application snmptrap "lte"
exit
exit
exit
#--------------------------------------------------
echo "Log all events for service vprn Configuration"
#--------------------------------------------------
log
exit
exit all