Está en la página 1de 3

----------------------------------------------------------------------------configuracion al switch

creamos las primeras dos vlans


vlan 1
name datos
vlan 2
name voz
----------------------------------------asinaremos un rango al puerto del switch
interface range fastethernet0/1-2
switchport mode accces
switchport acces vlan 1
switchport voice vlan 2

la de voz
la de datos

----------------------------------------establecemos el modo troncal


interface faste0/24
switchpor mode trunk
end
-----------------------------------------

router
levantamos la interfas que esta conectado al router
enable
configure terminal
interfas fastethernet0/0
no shutdown
-----------------aplicamos el DHCP para datos y voz
ip dhcp pool datos
network 192.168.1.0 255.255.255.0
default-router 192.168.1.254
option 150 ip 192.168.1.254
exit
ip dhcp pool voz
network 192.168.2.0 255.255.255.0
default-router 192.168.2.254
option 150 ip 192.168.2.254
exit
-------------------------------------------creamos las subinterfases para vlan 1 y vlan 2

interfas fastethernet0/0.1
encapsulation dot1q 1
ip addres 192.168.1.254 255.255.255.0
exit
interfas fastethernet0/0.2
encapsulation dot1q 2
ip addres 192.168.2.254 255.255.255.0
exit
-----------------------------------configuracion de la telefonia ip
telephony-service
max-dn 2
max-ephones 2
ip source address 192.168.2.254 port 2000
auto assign 1 to 2
exit
---------------------------------------------agregaremos los telefonos y extencion
ephone-dn 1
number 1111
exit
ephone-dn 2
number 2222
--------------------------------------conexion de router a router con cable cruzado
router 1
interfa fast0/1
ip addres 192.168.5.1 255.255.255.0
no shutdown
damos comunicacion modo RIP
show ip interface brietf
router rip
network..................las que aparecen agregaremos
dial-peer voice 1 voip
destination-pattern 1112
session target ipv4:192.168.5.2
dial-peer voice 2 voip
destination-pattern 2223
session target ipv4:192.168.5.2

También podría gustarte