說明:設定GRE Tunnel與語音
RO_B(config)#do sh run
Building configuration...
Current configuration : 2636 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname RO_B
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
介面設定之區域
interface Loopback1
ip address 2.2.2.2 255.255.255.255
!
interface Tunnel10
ip address 100.100.12.2 255.255.255.0
tunnel source Serial0/0
tunnel destination 10.140.1.2
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0
ip address 10.140.2.2 255.255.255.0
!
interface FastEthernet0/1
ip address 192.168.102.254 255.255.255.0
duplex auto
speed auto
!
interface Serial0/1
no ip address
shutdown
!
!
路由設定之區域
router eigrp 100
passive-interface FastEthernet0/1
network 100.100.12.2 0.0.0.0
network 192.168.102.254 0.0.0.0
auto-summary
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 10.140.2.1
ip route 192.168.101.0 255.255.255.0 100.100.12.1
!
!
ip http server
no ip http secure-server
!
!
control-plane
!
!
語音設定之區域
dial-peer voice 1000 voip 分機10xx的往1.1.1.1丟
destination-pattern 10..
session target ipv4:1.1.1.1
!
dial-peer voice 3000 voip 分機30xx的往3.3.3.3丟
destination-pattern 30..
session target ipv4:3.3.3.3
!
dial-peer voice 4000 voip 分機40xx的往4.4.4.4丟
destination-pattern 40..
session target ipv4:4.4.4.4
!
dial-peer voice 5000 voip 分機50xx的往192.168.105.254丟
destination-pattern 50..
session target ipv4:192.168.105.254
!
dial-peer voice 6000 voip 分機60xx的往192.168.106.254丟
destination-pattern 60..
session target ipv4:192.168.106.254
!
!
telephony-service 啟動語音服務
max-ephones 10 設定10隻ephone
max-dn 20 設定20個分機號碼
ip source-address 192.168.102.254 port 2000 設定語音來源和Port
auto assign 11 to 20 自動分派11到20給未派置的MAC用
url services 192.168.102.254 URL服務指定到192.168.102.254
create cnf-files version-stamp Jan 01 2002 00:00:00
max-conferences 4 gain -6
directory entry 1 1001 name Cater
!
!
ephone-dn 1 分機1號的號碼為2001
number 2001
!
!
ephone-dn 2 分機2號的號碼為2002
number 2002
!
!
ephone-dn 3 分機3號的號碼為2003
number 2003
!
!
ephone-dn 4 分機4號的號碼為2004
number 2004
!
!
ephone-dn 5 分機5號的號碼為2005
number 2005
!
!
ephone-dn 9 dual-line 分機9號的號碼為2009並所有ephone皆響
number 2009
!
!
ephone-dn 11 分機11號的號碼為2011
number 2011
!
!
ephone-dn 12 分機12號的號碼為2012
number 2012
!
!
ephone-dn 13 分機13號的號碼為2013
number 2013
!
!
ephone-dn 14 分機14號的號碼為2014
number 2014
!
!
ephone-dn 15 分機15號的號碼為2015
number 2015
!
!
ephone 1 MAC為0011.0A3E.0A7C的ephone設定到ephone1
mac-address 0011.0A3E.0A7C
type CIPC 型態是軟體式IP Phone
button 1:11 按鈕一為分機11(2011)
!
!
!
ephone 2 MAC為1111.2222.9999的ephone設定到ephone2
mac-address 1111.2222.9999
speed-dial 2 1001 label "cater" 設定快速播號為1001並標籤為Cater
button 1:1 2s3 5:9
上行說明:按鈕一為分機1(2001)、按鈕二為分機3(2003)並不會響、按鈕五為分機9(2009)
!
!
ephone 3 MAC為1111.2222.8888的ephone設定到ephone3
mac-address 1111.2222.8888
button 1:2 2s4 5:9
上行說明:按鈕一為分機2(2002)、按鈕二為分機4(2004)並不會響、按鈕五為分機9(2009)
!
!
ephone 4
mac-address 0000.1111.3333
type CIPC
button 1:12
!
!
!
ephone 5
mac-address 0000.1111.2222
type CIPC
button 1:13
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end
留言列表