• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Xin chào ! Nếu đây là lần đầu tiên bạn đến với diễn đàn, xin vui lòng danh ra một phút bấm vào đây để đăng kí và tham gia thảo luận cùng VnPro.

Announcement

Collapse
No announcement yet.

cấu hình mẫu router backbone (frame relay, PSTN)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • cấu hình mẫu router backbone (frame relay, PSTN)

    !

    ! Last configuration change at 03:04:56 UTC Fri Jul 11 2014

    ! NVRAM config last updated at 05:13:00 UTC Sat Jul 12 2014

    !

    version 12.4

    service timestamps
    debug datetime msec

    service timestamps log datetime msec

    no service password-encryption

    !

    hostname BB

    !

    boot-start-marker

    boot-end-marker

    !

    card type t1 0 1

    card type e1 0 2

    !

    no aaa new-model

    no network-clock-participate
    wic 0
    network-clock-participate
    wic 1
    network-clock-participate
    wic 2

    dot11
    syslog

    !

    !

    ip cef

    no ip dhcp use vrf connected

    !

    ip dhcp pool BB

    network 10.10.253.0 255.255.255.0

    option 150 ip 10.10.254.11

    default-router 10.10.253.1

    !

    !

    no ip domain lookup

    !

    multilink bundle-name authenticated

    frame-relay switching

    !

    isdn switch-type primary-ni

    !

    voice-card 0
    no dspfarm

    !

    !

    !

    voice service voip

    allow-connections h323 to h323

    allow-connections h323 to sip

    allow-connections sip to h323

    allow-connections sip to sip
    sip

    bind control source-interface FastEthernet0/1

    bind media source-interface FastEthernet0/1

    !

    !

    !

    voice class codec 1

    codec preference 1 g711ulaw

    codec preference 2 g729r8

    !

    !

    !

    !

    !

    !

    !

    !

    !

    !

    !

    !

    voice translation-rule 49

    rule 1 /^49\(894443...$\)/ /\1/

    !

    voice translation-rule 100

    rule 1 /^6131218$/ /1408\0/ type subscriber subscriber

    rule 2 /^4086131218$/ /1\0/ type national national

    rule 3 /^14086131218$/ /\0/ type international international

    rule 4 /^7764016$/ /1312\0/ type subscriber subscriber

    rule 5 /^3127764016$/ /1\0/ type national national

    rule 6 /^13127764016$/ /\0/ type international international

    rule 7 /^307128788$/ /49\0/ type national national

    rule 8 /^49307128788$/ /\0/ type international international

    rule 9 /^689220420$/ /\0/ type international international

    rule 10 /^8662258064$/ /1\0/ type national national

    rule 11 /^18662258064$/ /\0/ type international international

    rule 12 /^9[19][19]$/ /911/ type subscriber subscriber

    rule 13 /^8103321444$/ /18662258064/ type national national

    rule 14 /^18103321444$/ /18662258064/ type international international

    rule 15 // /1111/

    !

    voice translation-rule 200

    rule 1 /^2221...$/ /408\0/ type any subscriber plan any isdn

    rule 2 /^3332...$/ /312\0/ type any subscriber plan any isdn

    rule 3 /^894443...$/ /\0/ type any national plan any isdn

    rule 4 /^4082221...$/ /\0/ type any national plan any isdn

    rule 5 /^3123332...$/ /\0/ type any national plan any isdn

    rule 6 /^14082221...$/ /\0/ type any international plan any isdn

    rule 7 /^13123332...$/ /\0/ type any international plan any isdn

    rule 8 /^49\(894443...$\)/ /\1/ type any international plan any isdn

    !

    voice translation-rule 201
    rule 1 /^4930.*/ /\0/ type any international plan any isdn

    rule 2 /^30.*/ /\0/ type any international plan any isdn

    !

    !

    voice translation-profile GERMANY-SRST
    translate called 49

    !

    voice translation-profile TRANSLATE-CUCM-INBOUND

    translate calling 201

    translate called 200

    !

    voice translation-profile TRANSLATE-SITES-INBOUND

    translate called 100

    !

    !

    !

    !

    !

    !

    archive
    log config
    hidekeys

    !

    !

    !

    !

    controller T1 0/1/0

    framing esf

    clock source internal

    linecode b8zs

    cablelength long 0db

    pri-group timeslots 1-3,24

    description **VOICE T1 TO R1 0/0/0**

    !

    controller T1 0/1/1

    framing esf

    clock source internal

    linecode b8zs
    cablelength long 0db

    pri-group timeslots 1-3,24

    description **VOICE T1 TO R2 0/0/0**

    !

    controller E1 0/2/0

    clock source internal
    pri-group timeslots 1-3,16

    description **VOICE E1 TO R3 0/0/0**

    !

    pseudowire-class ethernet

    encapsulation l2tpv3

    ip local interface FastEthernet0/0.100

    !

    !

    !

    !

    !

    interface Loopback0
    ip address 10.10.4.4 255.255.255.255

    !

    interface FastEthernet0/0

    no ip address

    duplex auto
    s
    peed auto

    !

    interface FastEthernet0/0.100

    description *** HQ DATA VLAN ***

    encapsulation dot1Q 100

    ip address 10.10.100.2 255.255.255.0

    ip ospf mtu-ignore

    !

    interface FastEthernet0/0.199

    description *** PSTN VLAN ***

    encapsulation dot1Q 199

    ip address 10.10.253.1 255.255.255.0

    ip tcp adjust-mss 1360

    !

    interface FastEthernet0/1

    description TRUNK_TO_BB_L2VPN-Gi1/0/1

    no ip address

    duplex auto

    speed auto

    !

    interface FastEthernet0/1.113

    description SW1-Fa1/0/13_L2TP

    encapsulation dot1Q 113

    no ip redirects

    no ip unreachables

    no ip proxy-arp

    ip tcp adjust-mss 1350

    xconnect 192.168.14.1 113 pw-class ethernet

    !

    interface FastEthernet0/1.114

    description SW1-Fa1/0/14_L2TP

    encapsulation dot1Q 114

    no ip redirects

    no ip unreachables

    no ip proxy-arp

    ip tcp adjust-mss 1350

    xconnect 192.168.14.1 114 pw-class ethernet

    !

    interface FastEthernet0/1.115

    description SW1-Fa1/0/15_L2TP

    encapsulation dot1Q 115

    no ip redirects

    no ip unreachables

    no ip proxy-arp

    ip tcp adjust-mss 1350

    xconnect 192.168.14.1 115 pw-class ethernet

    !

    interface FastEthernet0/1.222

    description R2-Gi0/2/2_L2TP

    encapsulation dot1Q 222

    no ip redirects

    no ip unreachables

    no ip proxy-arp

    ip tcp adjust-mss 1350

    xconnect 192.168.14.1 222 pw-class ethernet

    !

    interface FastEthernet0/1.223

    description R2-Gi0/2/3_L2TP

    encapsulation dot1Q 223

    no ip redirects

    no ip unreachables

    no ip proxy-arp

    ip tcp adjust-mss 1350

    xconnect 192.168.14.1 223 pw-class ethernet

    !

    interface FastEthernet0/1.254

    encapsulation dot1Q 254

    ip address 10.10.254.254 255.255.255.0

    ip tcp adjust-mss 1360

    !

    interface FastEthernet0/1.322

    description R3-Gi0/2/2_L2TP

    encapsulation dot1Q 322

    no ip redirects

    no ip unreachables

    no ip proxy-arp

    ip tcp adjust-mss 1350

    xconnect 192.168.14.1 322 pw-class ethernet

    !

    interface FastEthernet0/1.323

    description R3-Gi0/2/3_L2TP

    encapsulation dot1Q 323

    no ip redirects

    no ip unreachables

    no ip proxy-arp

    ip tcp adjust-mss 1350

    xconnect 192.168.14.1 323 pw-class ethernet

    !

    interface Serial0/0/0

    no ip address

    clock rate 2016000

    !

    interface Serial0/0/1

    description ** SERIAL DATA CONNECTION TO R1 **

    no ip address

    encapsulation frame-relay IETF

    clock rate 2016000

    frame-relay lmi-type ansi

    frame-relay intf-type dce

    frame-relay route 102 interface Serial0/0/2 201

    frame-relay route 103 interface Serial0/0/3 301

    !

    interface Serial0/0/2

    description ** SERIAL DATA CONNECTION TO R2 **

    no ip address
    encapsulation frame-relay IETF

    clock rate 2016000

    frame-relay lmi-type ansi

    frame-relay intf-type dce

    frame-relay route 201 interface Serial0/0/1 102

    !

    interface Serial0/0/3

    description ** SERIAL DATA CONNECTION TO R3 **

    no ip address

    encapsulation frame-relay IETF

    clock rate 2016000

    frame-relay lmi-type ansi

    frame-relay intf-type dce

    frame-relay route 301 interface Serial0/0/1 103

    !

    interface Serial0/1/0:23

    no ip address

    encapsulation hdlc

    isdn switch-type primary-ni

    isdn protocol-emulate network

    isdn incoming-voice voice

    no cdp enable

    !

    interface Serial0/1/1:23

    no ip address

    encapsulation hdlc

    isdn switch-type primary-ni

    isdn protocol-emulate network

    isdn incoming-voice voice

    no cdp enable

    !

    interface Serial0/2/0:15

    no ip address

    encapsulation hdlc

    isdn switch-type primary-ni

    isdn protocol-emulate network

    isdn incoming-voice voice

    no cdp enable

    !

    interface GigabitEthernet1/0

    ip address 10.10.252.1 255.255.255.0

    !

    router ospf 1

    router-id 10.10.4.4

    log-adjacency-changes

    network 10.0.0.0 0.255.255.255 area 0

    !

    ip forward-protocol nd

    !

    !

    no ip http server

    no ip http secure-server

    !

    !

    !

    !

    !

    !

    !

    control-plane

    !

    !

    !

    voice-port 0/1/0:23

    !

    voice-port 0/2/0:15

    !

    voice-port 0/1/1:23

    !

    !

    !

    !

    !

    dial-peer voice 101 pots

    destination-pattern 2221...$

    port 0/1/0:23

    forward-digits all

    !

    dial-peer voice 102 pots

    destination-pattern 4082221...$

    port 0/1/0:23

    forward-digits all

    !

    dial-peer voice 103 pots

    destination-pattern 14082221...$

    port 0/1/0:23

    forward-digits all

    !

    dial-peer voice 201 pots

    destination-pattern 3332...$

    port 0/1/1:23

    forward-digits all

    !

    dial-peer voice 202 pots

    destination-pattern 3123332...

    port 0/1/1:23

    forward-digits all

    !

    dial-peer voice 203 pots

    destination-pattern 13123332...$

    port 0/1/1:23

    forward-digits all

    !

    dial-peer voice 301 pots

    destination-pattern 894443...$

    port 0/2/0:15

    forward-digits all

    !

    dial-peer voice 303 pots

    destination-pattern 49894443...$

    port 0/2/0:15

    forward-digits all

    !

    dial-peer voice 49 voip

    destination-pattern 49307128788$

    voice-class codec 1

    session protocol sipv2
    session target ipv4:10.10.254.11

    dtmf-relay sip-notify rtp-nte

    no vad

    !

    dial-peer voice 911 voip

    destination-pattern 911$

    voice-class codec 1

    session protocol sipv2

    session target ipv4:10.10.254.11

    dtmf-relay sip-notify rtp-nte

    no vad

    !

    dial-peer voice 1 pots

    translation-profile incoming TRANSLATE-SITES-INBOUND

    incoming called-number .

    direct-inward-dial

    !

    dial-peer voice 100 voip

    translation-profile incoming TRANSLATE-CUCM-INBOUND

    session protocol sipv2
    incoming called-number .

    dtmf-relay sip-notify rtp-nte

    no vad

    !

    dial-peer voice 408 voip

    destination-pattern 14086131218$

    voice-class codec 1

    session protocol sipv2

    session target ipv4:10.10.254.11

    dtmf-relay sip-notify rtp-nte

    no vad

    !

    dial-peer voice 312 voip

    destination-pattern 13127764016$

    voice-class codec 1

    session protocol sipv2

    session target ipv4:10.10.254.11

    dtmf-relay sip-notify rtp-nte

    no vad

    !

    dial-peer voice 999 voip

    destination-pattern 999$

    voice-class codec 1
    s
    ession protocol sipv2

    session target ipv4:10.10.254.11

    dtmf-relay sip-notify rtp-nte

    no vad

    !

    dial-peer voice 689 voip

    destination-pattern 689220420$

    voice-class codec 1

    session protocol sipv2

    session target ipv4:10.10.254.11

    dtmf-relay sip-notify rtp-nte

    no vad

    !

    dial-peer voice 866 voip

    destination-pattern 18662258064$

    voice-class codec 1

    session protocol sipv2

    session target ipv4:10.10.254.11

    dtmf-relay sip-notify rtp-nte

    no vad

    !

    dial-peer voice 1000 pots

    incoming called-number 4082221...$

    direct-inward-dial

    !

    dial-peer voice 1001 pots

    incoming called-number 14082221...$

    direct-inward-dial

    !

    dial-peer voice 1007 pots

    incoming called-number 2221...$

    direct-inward-dial

    !

    dial-peer voice 2000 pots

    incoming called-number 3123332...$

    direct-inward-dial

    !

    dial-peer voice 2001 pots

    incoming called-number 13123332...$

    direct-inward-dial

    !

    dial-peer voice 2007 pots

    incoming called-number 3332...$

    direct-inward-dial

    !

    dial-peer voice 3000 pots

    incoming called-number 894443...$

    direct-inward-dial

    !

    dial-peer voice 3001 pots

    translation-profile incoming GERMANY-SRST

    incoming called-number 49894443...$

    direct-inward-dial

    !

    !

    !

    !

    gatekeeper
    shutdown

    !

    !

    line con 0

    exec-timeout 0 0

    privilege level 15

    line aux 0

    line 66

    no activation-character

    no exec

    transport preferred none

    transport input all

    transport output lat pad telnet rlogin lapb-ta mop udptn v120 ssh

    line vty 0 4

    login

    !

    scheduler allocate 20000 1000

    ntp source FastEthernet0/1

    ntp master

    !

    end
    Đặng Quang Minh, CCIEx2#11897 (Enterprise Infrastructure, Wireless), DEVNET, CCSI#31417

    Email : dangquangminh@vnpro.org
    https://www.facebook.com/groups/vietprofessional/
Working...
X