SETTING UP IOS ROUTER AS DNS SERVER FOR CUCM AND CUC
ip dns server
ip dns primary test.com soa corp.test.com test@test.com
!
ip host CUCM1.corp.test.com 10.x.x.x
ip host CUC1.corp.test.com 10.x.x.x
This is a blog from a CCIE to share our knowledge to help others that have the same issues
Tuesday, March 27, 2018
Thursday, March 22, 2018
SIP SERVER GROUP FOR DIAL-PEERS
voice class server-group 1
ipv4 10.5.6.12 preference 1
ipv4 10.20.6.14 preference 2
ipv4 10.5.6.11 preference 3
!
voice class server-group 2
ipv4 10.20.6.14 preference 1
ipv4 10.5.6.12 preference 2
ipv4 10.5.6.11 preference 3
!
voice class sip-options-keepalive 1
voice class server-group 1
ipv4 10.5.6.12 preference 1
ipv4 10.20.6.14 preference 2
ipv4 10.5.6.11 preference 3
!
voice class server-group 2
ipv4 10.20.6.14 preference 1
ipv4 10.5.6.12 preference 2
ipv4 10.5.6.11 preference 3
!
voice class sip-options-keepalive 1
dial-peer voice xxxxxx voip
translation-profile outgoing CTL-OC2-TEST-DID
destination-pattern xxxxxxx.
session protocol sipv2
session transport udp
session server-group 1
voice-class codec 2911
voice-class sip options-keepalive profile 1
dtmf-relay rtp-nte sip-kpml
no vad
*******WHEN THE SERVER GROUP IS CHANGED IT WON'T CHANGE OPTIONS PROFILE'S SERVER ORDER, NEED TO REMOVE THE OPTIONS COMMAND FIRST AND THEN REENTER IT AGAIN********
CAOC2C01R02#sh voice class server-group
Voice class server-group: 1
AdminStatus: Up OperStatus: Up
Hunt-Scheme: preference Last returned server:
Description:
Total server entries: 3
Pref Type IP Address IP Port
---- ---- ---------- -------
1 ipv4 10.5.6.12
2 ipv4 10.20.6.14
3 ipv4 10.5.6.11
-------------------------------------
Voice class server-group: 2
AdminStatus: Up OperStatus: Up
Hunt-Scheme: preference Last returned server:
Description:
Total server entries: 3
Pref Type IP Address IP Port
---- ---- ---------- -------
1 ipv4 10.20.6.14
2 ipv4 10.5.6.12
3 ipv4 10.5.6.11
-------------------------------------
CAOC2C01R02#sh voice class sip
CAOC2C01R02#sh voice class sip-options-keepalive
Voice class sip-options-keepalive: 1 AdminStat: Up
Description: MONITOR SERVER-GROUP 1
Transport: system Sip Profiles: 0
Interval(seconds) Up: 60 Down: 30
Retry: 5
Peer Tag Server Group OOD SessID OOD Stat IfIndex
-------- ------------ ---------- -------- -------
949344 1 Active 18
Server Group: 1 OOD Stat: Active
OOD SessID OOD Stat
---------- --------
23 Active
24 Active
25 Active
OOD SessID: 23 OOD Stat: Active
Target: ipv4:10.5.6.12
Transport: system Sip Profiles: 0
OOD SessID: 24 OOD Stat: Active
Target: ipv4:10.20.6.14
Transport: system Sip Profiles: 0
OOD SessID: 25 OOD Stat: Active
Target: ipv4:10.5.6.11
Transport: system Sip Profiles: 0
------------------------------------------------------
Monday, March 19, 2018
IOS-XE GUESTSHELL PYTHON SAMPLE
TEST-3850#sh run | s event
event manager applet interface_shutdown authorization bypass
event syslog pattern "Interface Loopback55, changed state to administratively down"
action 0.0 cli command "en"
action 1.0 cli command "guestshell run python /flash/eem_script.py loopback55"
TEST-3850#more eem_script.py
import os
import sys,getopt
from datetime import datetime
import time
from cli import cli,clip
intf = sys.argv[1:]
intf = ''.join(intf[0])
if intf == 'loopback55':
cmd = "conf t; int loop55; no shut "
cli(cmd)
else:
cmd = "conf t; int %s; no shut " %intf
cli(cmd)
TEST-3850#sh run | s event
event manager applet interface_shutdown authorization bypass
event syslog pattern "Interface Loopback55, changed state to administratively down"
action 0.0 cli command "en"
action 1.0 cli command "guestshell run python /flash/eem_script.py loopback55"
TEST-3850#more eem_script.py
import os
import sys,getopt
from datetime import datetime
import time
from cli import cli,clip
intf = sys.argv[1:]
intf = ''.join(intf[0])
if intf == 'loopback55':
cmd = "conf t; int loop55; no shut "
cli(cmd)
else:
cmd = "conf t; int %s; no shut " %intf
cli(cmd)
========================
TEST-3850#conf t
Enter configuration commands, one per line. End with CNTL/Z.
TEST-3850(config)#int loo 55
TEST-3850(config-if)#shut
TEST-3850(config-if)#end
TEST-3850#sh int loo 55
Loopback55 is administratively down, line protocol is down
Hardware is Loopback
Internet address is 169.254.1.2/32
MTU 1514 bytes, BW 8000000 Kbit/sec, DLY 5000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation LOOPBACK, loopback not set
Keepalive set (10 sec)
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
TEST-3850#sh int loo 55
Loopback55 is administratively down, line protocol is down
Hardware is Loopback
Internet address is 169.254.1.2/32
MTU 1514 bytes, BW 8000000 Kbit/sec, DLY 5000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation LOOPBACK, loopback not set
Keepalive set (10 sec)
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
TEST-3850#sh int loo 55
Loopback55 is up, line protocol is up
Hardware is Loopback
Internet address is 169.254.1.2/32
MTU 1514 bytes, BW 8000000 Kbit/sec, DLY 5000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation LOOPBACK, loopback not set
Keepalive set (10 sec)
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
TEST-3850#sh log
Syslog logging: enabled (0 messages dropped, 1 messages rate-limited, 0 flushes, 0 overruns, xml disabled, filtering disabled)
No Active Message Discriminator.
No Inactive Message Discriminator.
Console logging: disabled
Monitor logging: level debugging, 0 messages logged, xml disabled,
filtering disabled
Buffer logging: level debugging, 105 messages logged, xml disabled,
filtering disabled
Exception Logging: size (4096 bytes)
Count and timestamp logging messages: disabled
File logging: disabled
Persistent logging: disabled
No active filter modules.
Trap logging: level informational, 107 message lines logged
Logging Source-Interface: VRF Name:
Log Buffer (99999 bytes):
*Mar 19 03:36:29.910: %SYS-5-CONFIG_I: Configured from console by console
*Mar 19 03:36:31.285: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback55, changed state to down
*Mar 19 03:36:31.286: %LINK-5-CHANGED: Interface Loopback55, changed state to administratively down
*Mar 19 03:36:39.795: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback55, changed state to up
*Mar 19 03:36:39.796: %LINK-3-UPDOWN: Interface Loopback55, changed state to up
TEST-3850#
Subscribe to:
Posts (Atom)