QoS policy-map
Inviato: mer 14 lug , 2010 12:50 pm
Salve, dovrei dare una percentuale di banda solo al voip. Ho configurato una policy-map ma nn risultano pacchetti analizzati.
di seguito la configurazione del router.( il voip funziona con l'adattatore ata pap2t linksys).
Building configuration...
Current configuration : 3561 bytes
!
! Last configuration change at 11:52:39 CDT Wed Jul 14 2010
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname Wind-inf
!
boot-start-marker
boot-end-marker
!
logging buffered 4096 debugging
enable password 7 050A0A0A325F4706415D
!
no aaa new-model
memory-size iomem 25
clock timezone UTC 1
clock summer-time CDT recurring
ip cef
!
!
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.x.x 192.168.x.x
ip dhcp excluded-address 192.168.x.x
!
ip dhcp pool LAN
network 192.168.x.x 255.255.255.240
default-router 192.168.x.x
dns-server 193.70.x.x
!
!
ip name-server 193.70.x.x
ip name-server 193.70.x.x
ip ddns update method xxxxxxxxxxxxx
HTTP
add https://xxxxxxx:[email protected]. ... h>&myip=<a>
interval maximum 0 1 0 0
!
!
!
!
!
!
!
!
class-map match-all VoIP
match access-group 100
!
!
policy-map VoIP
class VoIP
bandwidth percent 20
!
!
!
!
!
interface ATM0
no ip address
ip route-cache flow
no atm ilmi-keepalive
dsl operating-mode auto
pvc 8/35
encapsulation aal5mux ppp dialer
dialer pool-member 1
!
!
interface Ethernet0
no ip address
ip nat inside
ip virtual-reassembly
shutdown
half-duplex
!
interface FastEthernet0
description LAN
ip address 192.168.x.x 255.255.255.240
ip nat inside
ip virtual-reassembly
ip route-cache flow
load-interval 30
speed auto
!
interface Dialer0
description interfaccia Internet
bandwidth 5000
ip ddns update hostname xxxx.dyndns.org
ip ddns update windinfostrada
ip address negotiated
ip mtu 1492
ip nat outside
ip virtual-reassembly
encapsulation ppp
ip route-cache flow
ip tcp adjust-mss 1452
load-interval 30
dialer pool 1
ppp chap hostname xxxxx
ppp chap password 7 03055F060F01
service-policy output VoIP
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 Dialer0
ip flow-export source FastEthernet0
ip flow-export version 5
ip flow-export destination 192.168.x.x 9996
!
no ip http server
no ip http secure-server
ip nat inside source list 1 interface Dialer0 overload
ip nat inside source static tcp 192.168.x.x 5060 interface Dialer0 5060
ip nat inside source static udp 192.168.x.x 5060 interface Dialer0 5060
ip nat inside source static udp 192.168.x.x 3478 interface Dialer0 3478
ip nat inside source static tcp 192.168.x.x 3478 interface Dialer0 3478
ip nat inside source static tcp 192.168.x.x 81 interface Dialer0 81
ip nat inside source static tcp 192.168..x.x 80 interface Dialer0 80
ip nat inside source static tcp 192.168.x.x 8080 interface Dialer0 8080
!
access-list 1 permit 192.168.x.x 0.0.0.15
access-list 100 permit udp host 192.168.x.x any
dialer-list 1 protocol ip list 1
snmp-server community public RW
snmp-server ifindex persist
!
control-plane
!
banner motd ^CCC
\\\|///
\\ - - //
( @ @ )
-----------------oOOo-(_)-oOOo---------------
Cisco Systems 1721 - Adsl 7 Mega
>> Ogni accesso non autorizzato e' vietato <<
.oooO
---------------- ( )-- Oooo. ---------------
\ ( ( )
\_) ) /
(_/
^C
!
line con 0
line aux 0
line vty 0 4
password 7 030752180500
login
!
ntp clock-period 17179981
ntp server 193.204.114.232
ntp server 193.204.114.233
end
il nat sulle porte 5060 e 3478 è riferito alle porte del linksys , come anke l' ACL 100.
di seguito la configurazione del router.( il voip funziona con l'adattatore ata pap2t linksys).
Building configuration...
Current configuration : 3561 bytes
!
! Last configuration change at 11:52:39 CDT Wed Jul 14 2010
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname Wind-inf
!
boot-start-marker
boot-end-marker
!
logging buffered 4096 debugging
enable password 7 050A0A0A325F4706415D
!
no aaa new-model
memory-size iomem 25
clock timezone UTC 1
clock summer-time CDT recurring
ip cef
!
!
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.x.x 192.168.x.x
ip dhcp excluded-address 192.168.x.x
!
ip dhcp pool LAN
network 192.168.x.x 255.255.255.240
default-router 192.168.x.x
dns-server 193.70.x.x
!
!
ip name-server 193.70.x.x
ip name-server 193.70.x.x
ip ddns update method xxxxxxxxxxxxx
HTTP
add https://xxxxxxx:[email protected]. ... h>&myip=<a>
interval maximum 0 1 0 0
!
!
!
!
!
!
!
!
class-map match-all VoIP
match access-group 100
!
!
policy-map VoIP
class VoIP
bandwidth percent 20
!
!
!
!
!
interface ATM0
no ip address
ip route-cache flow
no atm ilmi-keepalive
dsl operating-mode auto
pvc 8/35
encapsulation aal5mux ppp dialer
dialer pool-member 1
!
!
interface Ethernet0
no ip address
ip nat inside
ip virtual-reassembly
shutdown
half-duplex
!
interface FastEthernet0
description LAN
ip address 192.168.x.x 255.255.255.240
ip nat inside
ip virtual-reassembly
ip route-cache flow
load-interval 30
speed auto
!
interface Dialer0
description interfaccia Internet
bandwidth 5000
ip ddns update hostname xxxx.dyndns.org
ip ddns update windinfostrada
ip address negotiated
ip mtu 1492
ip nat outside
ip virtual-reassembly
encapsulation ppp
ip route-cache flow
ip tcp adjust-mss 1452
load-interval 30
dialer pool 1
ppp chap hostname xxxxx
ppp chap password 7 03055F060F01
service-policy output VoIP
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 Dialer0
ip flow-export source FastEthernet0
ip flow-export version 5
ip flow-export destination 192.168.x.x 9996
!
no ip http server
no ip http secure-server
ip nat inside source list 1 interface Dialer0 overload
ip nat inside source static tcp 192.168.x.x 5060 interface Dialer0 5060
ip nat inside source static udp 192.168.x.x 5060 interface Dialer0 5060
ip nat inside source static udp 192.168.x.x 3478 interface Dialer0 3478
ip nat inside source static tcp 192.168.x.x 3478 interface Dialer0 3478
ip nat inside source static tcp 192.168.x.x 81 interface Dialer0 81
ip nat inside source static tcp 192.168..x.x 80 interface Dialer0 80
ip nat inside source static tcp 192.168.x.x 8080 interface Dialer0 8080
!
access-list 1 permit 192.168.x.x 0.0.0.15
access-list 100 permit udp host 192.168.x.x any
dialer-list 1 protocol ip list 1
snmp-server community public RW
snmp-server ifindex persist
!
control-plane
!
banner motd ^CCC
\\\|///
\\ - - //
( @ @ )
-----------------oOOo-(_)-oOOo---------------
Cisco Systems 1721 - Adsl 7 Mega
>> Ogni accesso non autorizzato e' vietato <<
.oooO
---------------- ( )-- Oooo. ---------------
\ ( ( )
\_) ) /
(_/
^C
!
line con 0
line aux 0
line vty 0 4
password 7 030752180500
login
!
ntp clock-period 17179981
ntp server 193.204.114.232
ntp server 193.204.114.233
end
il nat sulle porte 5060 e 3478 è riferito alle porte del linksys , come anke l' ACL 100.