Enero 13, 2012 | Por vlan138 | # Enlace permanente
Ambiente:
Corporativo o Pyme , sucede que en algunas PC´s que pensamos que se logueo una sola persona, pero nos sorprenderiamos de lo que sucede a veces.
Para saber quien/es estan o estuvieron logueados en la PC que estamos diagnosticando, podemos hacer lo siguiente, logueados como admin local, con user privilegios de admin, o mejor aun, haciendo RunAs (esta opcion aparece al dar boton derecho al icono de CMD por ejemplo y “ejecutar como”)
OPcion 1: Inicio-ejecutar-taskmgr–presionamos enter
nos aparece el taskmanager, vamos a la ultima pestaña “Usuarios” y vemos quin/es estan logueados, si hay alguien aparte de nosotros, lo “bajamos” haciendo boton derecho sobre el user y “cerrar sesion”, si ponemos “desconectar” la sesion quedara activa asi que mejor cerramos sesion.
Lo mismo logramos haciendo Ctrl+Alt+Del y elejimos “administrador de tareas”
Opcion 2: vamos al icono de MiPc, o Equipo segun la version de WIn le damos boton derecho, elejimos “administrar”, Carpetas compartidas, Sesiones y ahi aparece el user que esta colgado de nuestra pc
Opcion 3: Inicio -ejecutar-cmd-enter
Con las herramientgas psstools previamnete instaladas, le damos a
psloggedon y nos informa de sesiones
con logonsessions nos da un completo informe de sesiones, ID, etc
tambien podemos hacer un
query sesions
C:\Windows\system32>query session
o un
C:\Windows\system32>query session /server:nombredemipc
y nos da similar a psloggedon
tomamos nota del NUMERO de sesion que queremos bajar
ahora para “bajar” el/los users/sesiones, hacemos un reset (sesion)
C:\Windows\system32>reset session 2 /server:nombre de mi pc
en este caso baje la sesion numero 2
Eso es todo
Junio 28, 2010 | Por vlan138 | # Enlace permanente
Las redes se conectan mediante equipos de telecomunicaciones conocidos como equipos de interconexión
Breviiiiisima reseña de equipos de Internetworking:
REPETIDOR
Opera sólo en la Capa Física del modelo OSI (capa 1). Permite sólo extender la cobertura física de una red. Un repetidor regenera una señal a niveles más óptimos. Basicamente, cuando un repetidor recibe una señal muy debil o corrompida, crea una copia bit por bit de la señal original y la reenvia
La posición de un repetidor es vital, éste debe poner antes de que la señal se debilite. En el caso de una red local (LAN) la cobertura máxima del cable UTP es 100 metros; entonces el repetidor debe ponerse unos metros antes de esta distancia y poner extender la distancia otros 100 metros o más.
Existen también regeneradores ópticos conocidos como EDFA (Erbium-Doped Fiber Amplifier) los cuales permiten extender la distancia de un haz de luz sobre una fibra óptica hasta 125 millas.
HUB (CONCENTRADOR)
Dispositivo de capa física que interconecta físicamente otros dispositivos (computadoras, impresoras, servidores, switchs, etc) en topología estrella. En post anteriores vimos que no es lo mejor tener HUB ya que no hacen un uso optimo del ancho de banda ya que reenvian todo el trafico a cada port, en vez de enviarlo al segmento correspondiente, o sea, “inundan” todo el medio
Existen hubs pasivos o hubs activos.
Los pasivos sólo interconectan dispositivos, mientras que los hubs activos además regeneran las señales recibidas, como si fuera un repetidor multipuesto.
BRIDGE (PUENTE)
Operan tanto en la Capa Física como en la de Enlace de Datos del modelo de referencia OSI.
Los puentes pueden dividir una red muy grande en pequeños segmentos. Pero también pueden unir dos redes separadas
Como un puente opera en la capa de enlace de datos, dá acceso a todas las direcciones físicas a todas las estaciones conectadas a él. Cuando una trama entra a un puente, el puente no sólo regenera la señal, sino también verifica la dirección del nodo destino y la reenvía la nueva copia sólo al segmento al cual la dirección pertenece.
Un puente también es capaz de conectar dos LANs que usan diferente protocolo (Ethernet y Token Ring).
NO confundir con Gateway, ya que estos operan en capas superiores del modelo OSI
SWITCH (CONMUTADOR DE PAQUETES) MI Favorito!!
Los switches son otro dispositivo de interconexión de capa 2 (ojo!!hay multilayer capa 3 y 4, pero inicialmente eran capa2) que puede ser usado para preservar el ancho de banda en la red al utilizar la segmentación. Los switches son usados para reenviar paquetes a un segmento particular utilizando el direccionamiento de hardware MAC (como los puentes). Debido a que los switches son basados en hardware, estos pueden conmutar paquetes más rápido que un puente.
Todos tenemos switches en nuestro trabajo y hasta hogar. El Router que seguro tenes en tu casa es ademas multipuesto 4/5/8 bocas (tiene un switch adentro), asi que ademas de hacer de router, hace de switch ya que conectas las PC/noteboos/IPPhones a el y se comuncian entre ellos optimizando el ancho de banda. (O en tu casa no tenes las PC conectadas a un router, quizas WI FI que , a su vez, conecta al cablemodem de tu proveedor de Internet?)
ROUTER (ENRUTADOR)
Los enrutadores operan en la capa de red (así como Enlace de Datos y capa física) del modelo OSI. Los enrutadores organizan una red grande en términos de segmentos lógicos. Cada segmento de red es asignado a una dirección así que cada paquete tiene tanto dirección destino como dirección fuente.
Los enrutadores son más inteligentes que los puentes, no sólo construyen tablas de enrutamiento, sino que además utilizan algoritmos para determinar la mejor ruta posible para una transmisión en particular. .
Como vimos mas arriba, los routers hogareños vienen con switch dentro.
Los SOHO o medianos, tambien traen conexión para LAN interna multipuesto, ademas de funciones avanzadas de NAT, VPN (algunos), acceso remoto (remote hands/Management), filtro de ports, port forwarding, etc.
GATEWAY (PASARELA o PROXY SERVERS)
Según Wikipedia
“Un gateway (puerta de enlace) es un dispositivo, con frecuencia un ordenador, que permite interconectar redes con protocoloes y arquitecturas diferentes a todos los niveles de comunicación. Su propósito es traducir la información del protocolo utilizado en una red al protocolo usado en la red de destino.”
Seguimos….
Los gateways, pasarelas o proxy servers son computadoras que están corriendo una aplicación o software. Los gateways trabajan en las capas superiores del modelo OSI (transporte, sesión, presentación y aplicación).
Este software es capaz de realizar una infinidad de tareas: conversión de protocolos para proveer la comunicación de dos plataformas distintas (e.g SNA de IBM con una LAN de PCs). También los gateways suelen ser servidores que corren software de seguridad como firewall; correo electrónico (SNMP, POP3); servidores de web (HTTP/1.1); servidores de dominios de nombre (DNS), etc.
Y en VoIP pueden ser MGC (Media Gateway Controller) , como generalmente se asocia a un softswitch
ACCESS POINT (PUNTO DE ACCESO)
Un punto de acceso es un dispositivo inalámbrico que funciona en la capa de enlace de datos del modelo OSI. Es parecido a un switch (pero inalambrico) que le da acceso a todos los nodos conectados a él. El medio de comunicación es el aire en las bandas de frecuencia del espectro disperso (2.4 GHz y 5 GHz).
Existen varias tecnologias, pero las mas importantes son las IEEE 802.11, IEEE 802.11b (Wi-Fi) y la IEEE 802.11a.
DSU/CSU (modem digital)
El DSU/CSU (Data Service Unit/Channel Service Unit) o mejor conocido como DTU (Data Terminal Unit) es un equipo de interconexión que opera en la capa de Enlace de Datos. Un DSU/CSU es básicamente un modem digital que enlaza dos o más redes que tengan servicios digitales tales como E0s, E1/T1s, Frame Relay, etc. Un CSU provee además acondicionamiento y equalización de la línea, así como pruebas de loopback. Un DSU (el cual puede contener las características de un CSU) convierte las señales de datos de un equipo DTE [Data Terminal Equipment] (una computadora) en señales digitales bipolares requeridas en la red digital, realiza la sincronización de relojes y regenera la señal.
Y que es DTE/DCE? Y CPE?
Una WAN tiene un dispositivo DTE en un extremo y un dispositivo DCE en el otro.
• El CPE (Customer Premise Equipment ) es un router y tambien lo es el DTE. Pero puede ser una computadora o impresora o fax.
• EL DCE es un modem o CSU/DSU que convierte los datos de usuario del DTE en una forma para transmitir via WAN.
Los DTE se comunican con los DCE.
DTE Equipo de terminal de datos
Extremo del dispositivo del usuario en el enlace WAN
DCE Equipo de comunicaciones de datos
Extremo de la instalación de comunicaciones del proveedor WAN
Responsable de proporcionar señal de temporización
Poniendo todo junto (DSU/CSU DTE/DCE)
Un DSU data service unit, tambien llamado digital service unit, es un equipo terminador de telecomunicaciones que transforma señal digital entre las compañias telefonicas y equipos locales (DTE, por ejemplo, un router) a traves del CSU (Channel Service Unit), y a la inversa (desde el DTE hacia el DSU.
Soporta tanto punto a punto como multipunto.
Una DSU posee dos o mas ports, un WAN y uno o mas ports DTE.
El objetivo del DSU es tranmitir info serial sincronizada entre el port WAN y el/los ports DTE
Del lado WAN, el DSU via CSU interfasea (bueno, no hay una palabra castellana mas cercana) con un carrier digital DS!, DS3 (T1, T3)
Del lado DTE, el DSU brinda lineas de control, timing, e interfase electrica y fisica.
Y el DCE seria nuestro ISP o telco
Por ultimo, el DCE es generalmente el DSU/CSU
Marzo 29, 2010 | Por vlan138 | # Enlace permanente
Voy a copiar la version en ingles del documento ya que su traduccion no aporta nada dado que nos manejaremos siempre en ingles al hacer una translation rule
Note: La sintaxis usada a lo largo de este doc es:
• rule precedence /match pattern/ /replacement pattern/
Note: / — / delimits the whole number.
This document is not restricted to specific software and hardware versions.
Conventions
Refer to Cisco Technical Tips Conventions for more information on document conventions.
Simple Match and Replace
Example 1
This example replaces the first occurrence of the number “123″ with “456″.
voice translation-rule 1
rule 1 /123/ /456/
These are test voice translation-rule examples:
router#test voice translation-rule 1 123
Matched with rule 1
Original number: 123 Translated number: 456
router#test voice translation-rule 1 1234
Matched with rule 1
Original number: 1234 Translated number: 4564
router#test voice translation-rule 1 6123
Matched with rule 1
Original number: 6123 Translated number: 6456
router#test voice translation-rule 1 6123123
Matched with rule 1
Original number: 6123123 Translated number: 6456123
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
In this example, the rule matches the first occurrence of the number that contains the pattern “123″ anywhere
in the number. Specifically, you can use the start and end of number indicators. The Example 2 and Example 3 sections show this.
Example 2
This example shows how to replace any occurrence of “123″ at the start of a number with “456″.
voice translation-rule 1
rule 1 /^123/ /456/
These are test voice translation-rule examples.
router#test voice translation-rule 1 123
Matched with rule 1
Original number: 123 Translated number: 456
router#test voice translation-rule 1 1234
Matched with rule 1
Original number: 1234 Translated number: 4564
router#test voice translation-rule 1 6123
6123 Didn’t match with any of rules
Example 3
If you want only the match of an exact number, specify both the start and end number indicators:
voice translation-rule 1
rule 1 /^123$/ /456/
router#test voice translation-rule 1 123
Matched with rule 1
Original number: 123 Translated number: 456
router#test voice translation-rule 1 1234
1234 Didn’t match with any of rules
router#test voice translation-rule 1 6123
6123 Didn’t match with any of rules
Pattern Match with Wildcards
These tables define wildcard and wildcard combinations and show some examples.
Any single digit – . (punto)
Any specific character – 0 to 9,*,#
Any range or sequence of characters – [0-9]
Modifier match none or more occurrences – * (asterisco)
Modifier match one or more occurrences – +(signo mas)
Modifier match none or one occurrence – ?(signo interrogacion)
Any digit followed by none or more
ocurrences. This is effectively anything,
including null. – .* (punto asterisco)
Any digit followed by one or more
ocurrences. This is effectively anything,
except null. – .+ (punto mas)
No digits, null – ^$ (exponencial signo pesos)
Example 1
This example replaces any five-digit number that begins with “40″ with the number “6666000″.
voice translation-rule 1
rule 1 /^40…/ /6666000/
router#test voice translation-rule 1 40123
Matched with rule 1
Original number: 40123 Translated number: 6666000
Example 2
This example replaces all numbers with “5554000″.
voice translation-rule 2
rule 1 /.*/ /5554000/
router#test voice translation-rule 2 123
Matched with rule 1
Original number: 123 Translated number: 5554000
router#test voice translation-rule 2 86573
Matched with rule 1
Original number: 86573 Translated number: 5554000
router#test voice translation-rule 2 “”
Matched with rule 1
Original number: Translated number: 5554000
Example 3
This example replaces all numbers, except null, with “5554000″.
voice translation-rule 2
rule 1 /.+/ /5554000/
router#test voice translation-rule 2 123
Matched with rule 1
Original number: 123 Translated number: 5554000
router#test voice translation-rule 2 “”
Didn’t match with any of rules
Example 4
This example replaces any number that starts with a combination of zeros (0, 00, and so forth) with “909″.
voice translation-rule 5
rule 1 /^0+/ /909/
router#test voice translation-rule 5 0123456
Matched with rule 1
Original number: 0123456 Translated number: 909123456
router#test voice translation-rule 5 00123456
Matched with rule 1
Original number: 00123456 Translated number: 909123456
router#test voice translation-rule 5 000123456
Matched with rule 1
Original number: 000123456 Translated number: 909123456
router#test voice translation-rule 5 123456
123456 Didn’t match with any of rules
Number Slice
You can use number slice when you need to copy parts of a matched number across to the replacement
number. You slice the matched number into sets that you can keep or ignore.
Character
Description
\ In the match pattern, indicates where to slice up the
number.
\ In the replacement pattern, indicates where to copy
the sets to keep.
( )
Indicates which sets in the matched number to keep.
Character Usage
Description
(a\)
Keep expression “a”.
b\
Ignore expression “b”.
\1 Copy the first set into the replacement
number.
Generic Example
This example provides a general explanation.
/ (x\) y\ (z\) / /w\1\2/
Split the matched number into three sets of x, y, and z. The backward slash (\) indicates the places to slice up
the number. The brackets () indicate which sets you want to reuse in the replacement pattern. The w represents
additional digits to insert into the replacement number.
• Set 1 becomes expression x.
• Set 2 becomes expression z.
• Expression y is ignored.
The replacement number is a concatenated number: wxz.
Specific Example
This example provides further detail:
voice translation-rule 1
rule 1 /^\(12\)3\(45\)$/ /6\1\2/
• Set 1: 12
• Set 2: 45
• Ignore: 3
router#test voice translation-rule 1 12345
Matched with rule 1
Original number: 12345 Translated number: 61245
Number Type and Plan
You can restrict matches to particular number or plan types. Also, you can alter the replacement plan or type.
Example 1
In this example, if a number starts with “4″ and the type is “national”, the rule adds “90″ as a prefix. If the
type is “international”, the rule adds “900″ as the prefix.
voice translation-rule 7
rule 1 /^4/ /904/ type national national
rule 2 /^4/ /9004/ type international international
router#test voice translation-rule 7 493456567 type national
Matched with rule 1
Original number: 493456567 Translated number: 90493456567
Original number type: national Translated number type: national
Original number plan: none Translated number plan: none
router#test voice translation-rule 7 493456567 type international
Matched with rule 2
Original number: 493456567 Translated number: 900493456567
Original number type: international Translated number type: international
Original number plan: none Translated number plan: none
This is useful when telephone companies (Telcos) remove access codes on national and international
numbers. You can add the correct prefix with the number type as a basis.
Example 2
This example changes the number type and plan.
voice translation-rule 8
rule 1 /^2\(…$\)/ /01779345\1/ type unknown national plan unknown isdn
This rule matches any four-digit number that starts with “2″. The rule removes the “2″, adds the number
“01779345″ as a prefix, and sets the plan to “isdn” and the type to “national”.
router#test voice translation-rule 8 2001 type unknown plan unknown
Matched with rule 1
Original number: 2001 Translated number: 01779345001
Original number type: unknown Translated number type: national
Original number plan: unknown Translated number plan: isdn
Reject Calls
Use the reject keyword to reject calls that match. This example rejects all calls that start with “234″.
rule 1 reject /^234/
router#test voice translation-rule 10 1234
1234 Didn’t match with any of rules
router#test voice translation-rule 10 2345
blocked on rule 1
Apply Rules
Voice Translation Rules are applied to Voice Translation Profiles. These profiles are then applied to dial peers
or voice ports. Profiles can be applied to VoIP or POTS dial peers or voice ports, and can be applied to
inbound or outbound calls. A profile can translate Called, Calling, or Redirecting numbers.
voice translation-rule 3
rule 1 /123/ /456/
voice translation-profile profile1
translate calling 3
dial-peer voice 10 pots
translation-profile outgoing profile1
Mas ejemplos:
Truncate Numbers Down to the Last Two Digits
rule 1 /^.*\(..\)/ /\1/
This is a number divided into one set and one ignored statement.
• Ignored: ^.* None or more digits from the beginning of number
Set 1: .. two digits
The replacement statement specifies Set 1. This rule copies the last two digits of the number.
router#test voice translation-rule 9 12345
Matched with rule 1
Original number: 12345 Translated number: 45
router#test voice translation-rule 9 123456
Matched with rule 1
Original number: 123456 Translated number: 56
Remove Unwanted Digits in a Number
This example is useful because certain Telcos have been known to insert hypens into calling party numbers.
Since this is against standards, it causes the calling party number to be ignored. The Telco sends the calling
numbers in two formats, with one hypen and sometimes with two. Two rules are required in the voice
translation rule. Additionally, the first format can have five or six digit numbers after the hypen. You can
match both of these conditions using one rule with the ‘?’ character (match none or one occurrence).
Notes on special characters:
• The hyphen character is used to indicate a range in a match pattern, for example [0-9]. In order to
indicate in this rule that you want to match on the hypen character, it is necessary to use the ‘\’
character to escape its meaning. This is because the hyphen character is a special character. The ‘\-’
characters really means hyphen. The trailing ‘\’ indicates that the number is sliced here.
• If you type ? directly, IOS thinks it is a request for help. You must type Control-V then ?.
voice translation-rule 12
rule 1 /^\(01…\)\-\(……?$\)/ /\1\2/
rule 2 /^\(0[12]..\)\-\(…\)\-\(….$\)/ /\1\2\3/
Rule 1: The number is sliced into three sequences, with two sets to be kept.
• Set 1: 01…
Ignore: -
Set 2: …… or …..
Rule 2: The number is sliced into five sequences with three sets to be kept.
• Set 1: 0[12]..
Ignore: -
Set 2: …
Ignore: -
Set 3: ….
router#test voice translation-rule 12 “01208-333444″
Matched with rule 1
Original number: 01208-333444 Translated number: 01208333444
router#test voice translation-rule 12 “01208-72345″
Matched with rule 1
Original number: 01208-72345 Translated number: 0120872345
router#test voice translation-rule 12 “0161-333-4444″
Matched with rule 2
Original number: 0161-333-4444 Translated number: 01613334444
router#test voice translation-rule 12 “0208-123-4567″
Matched with rule 2
Original number: 0208-123-4567 Translated number: 02081234567
Gracias