Difference between revisions of "FreePBX/R1 Config"

From Teknologisk videncenter
Jump to: navigation, search
m (Created page with "<source lang=cli> Building configuration... Current configuration : 3992 bytes ! ! Last configuration change at 06:49:34 UTC Fri Dec 2 2011 ! NVRAM config last updated at 06:49...")
 
m
 
Line 1: Line 1:
 
<source lang=cli>
 
<source lang=cli>
 
+
hostname R1
Building configuration...
 
 
 
Current configuration : 3992 bytes
 
!
 
! Last configuration change at 06:49:34 UTC Fri Dec 2 2011
 
! NVRAM config last updated at 06:49:35 UTC Fri Dec 2 2011
 
!
 
version 12.4
 
service timestamps debug datetime msec
 
service timestamps log datetime msec
 
no service password-encryption
 
!
 
hostname Router
 
!
 
boot-start-marker
 
boot-end-marker
 
!
 
 
enable password cisco
 
enable password cisco
!
 
no aaa new-model
 
!
 
resource policy
 
!
 
 
ip cef
 
ip cef
 
!
 
!
!
 
no ip dhcp use vrf connected
 
 
ip dhcp excluded-address 172.21.0.1 172.21.0.99
 
ip dhcp excluded-address 172.21.0.1 172.21.0.99
 
ip dhcp excluded-address 172.22.0.1 172.22.0.99
 
ip dhcp excluded-address 172.22.0.1 172.22.0.99
Line 82: Line 58:
 
ipv6 unicast-routing
 
ipv6 unicast-routing
 
ipv6 cef
 
ipv6 cef
!
 
!
 
voice-card 0
 
!
 
!
 
!
 
!
 
!
 
!
 
!
 
!
 
!
 
!
 
!
 
!
 
!
 
!
 
!
 
!
 
!
 
!
 
!
 
!
 
!
 
!
 
!
 
 
!
 
!
 
interface FastEthernet0/0
 
interface FastEthernet0/0
Line 168: Line 118:
 
  ip virtual-reassembly
 
  ip virtual-reassembly
 
  ipv6 address 2001:16D8:DD85:B600::1/64
 
  ipv6 address 2001:16D8:DD85:B600::1/64
!
 
interface Serial0/3/0
 
no ip address
 
shutdown
 
no fair-queue
 
clock rate 2000000
 
 
!
 
!
 
ip route 0.0.0.0 0.0.0.0 192.168.140.1
 
ip route 0.0.0.0 0.0.0.0 192.168.140.1
 
!
 
!
!
 
ip http server
 
no ip http secure-server
 
 
ip nat inside source list 38 interface FastEthernet0/0 overload
 
ip nat inside source list 38 interface FastEthernet0/0 overload
 
ip nat inside source static tcp 192.168.140.11 23 interface FastEthernet0/1 23
 
ip nat inside source static tcp 192.168.140.11 23 interface FastEthernet0/1 23
Line 190: Line 131:
 
access-list 38 permit 172.25.0.0 0.0.255.255
 
access-list 38 permit 172.25.0.0 0.0.255.255
 
access-list 38 permit 172.26.0.0 0.0.255.255
 
access-list 38 permit 172.26.0.0 0.0.255.255
!
 
 
!
 
!
 
ipv6 route ::/0 2001:16D8:DD85:140::1
 
ipv6 route ::/0 2001:16D8:DD85:140::1
 
!
 
!
!
 
!
 
!
 
control-plane
 
!
 
!
 
!
 
!
 
!
 
!
 
!
 
!
 
!
 
!
 
line con 0
 
line aux 0
 
 
line vty 0 4
 
line vty 0 4
 
  password cisco
 
  password cisco
 
  login
 
  login
!
 
scheduler allocate 20000 1000
 
end
 
 
</source>
 
</source>
 
{{source cli}}
 
{{source cli}}
 
[[Category:FreePBX]]
 
[[Category:FreePBX]]

Latest revision as of 08:12, 3 December 2011

hostname R1
enable password cisco
ip cef
!
ip dhcp excluded-address 172.21.0.1 172.21.0.99
ip dhcp excluded-address 172.22.0.1 172.22.0.99
ip dhcp excluded-address 172.23.0.1 172.23.0.99
ip dhcp excluded-address 172.24.0.1 172.24.0.99
ip dhcp excluded-address 172.25.0.1 172.25.0.99
ip dhcp excluded-address 172.26.0.1 172.26.0.99
!
ip dhcp pool GRUPPE1
   network 172.21.0.0 255.255.0.0
   domain-name tekkom.dk
   default-router 172.21.0.1
   dns-server 172.16.4.66
   option 150 ip 172.21.0.10
!
ip dhcp pool GRUPPE2
   network 172.22.0.0 255.255.0.0
   domain-name tekkom.dk
   default-router 172.22.0.1
   dns-server 172.16.4.66
   option 150 ip 172.22.0.10
!
ip dhcp pool GRUPPE3
   network 172.23.0.0 255.255.0.0
   domain-name tekkom.dk
   default-router 172.23.0.1
   dns-server 172.16.4.66
   option 150 ip 172.23.0.10
!
ip dhcp pool GRUPPE4
   network 172.24.0.0 255.255.0.0
   domain-name tekkom.dk
   default-router 172.24.0.1
   dns-server 172.16.4.66
   option 150 ip 172.24.0.10
!
ip dhcp pool GRUPPE5
   network 172.25.0.0 255.255.0.0
   domain-name tekkom.dk
   default-router 172.25.0.1
   dns-server 172.16.4.66
   option 150 ip 172.25.0.10
!
ip dhcp pool GRUPPE6
   network 172.26.0.0 255.255.0.0
   domain-name tekkom.dk
   default-router 172.26.0.1
   dns-server 172.16.4.66
   option 150 ip 172.26.0.10
!
!
ip name-server 172.16.4.66
!
ipv6 unicast-routing
ipv6 cef
!
interface FastEthernet0/0
 ip address 192.168.140.11 255.255.255.0
 ip nat outside
 ip virtual-reassembly
 duplex auto
 speed auto
 ipv6 address 2001:16D8:DD85:140::11/64
 ipv6 nd ra suppress
!
interface FastEthernet0/0.21
!
interface FastEthernet0/1
 no ip address
 ip nat inside
 ip virtual-reassembly
 duplex auto
 speed auto
!
interface FastEthernet0/1.21
 encapsulation dot1Q 21
 ip address 172.21.0.1 255.255.0.0
 ip nat inside
 ip virtual-reassembly
 ipv6 address 2001:16D8:DD85:B100::1/64
!
interface FastEthernet0/1.22
 encapsulation dot1Q 22
 ip address 172.22.0.1 255.255.0.0
 ip nat inside
 ip virtual-reassembly
 ipv6 address 2001:16D8:DD85:B200::1/64
!
interface FastEthernet0/1.23
 encapsulation dot1Q 23
 ip address 172.23.0.1 255.255.0.0
 ip nat inside
 ip virtual-reassembly
 ipv6 address 2001:16D8:DD85:B300::1/64
!
interface FastEthernet0/1.24
 encapsulation dot1Q 24
 ip address 172.24.0.1 255.255.0.0
 ip nat inside
 ip virtual-reassembly
 ipv6 address 2001:16D8:DD85:B400::1/64
!
interface FastEthernet0/1.25
 encapsulation dot1Q 25
 ip address 172.25.0.1 255.255.0.0
 ip nat inside
 ip virtual-reassembly
 ipv6 address 2001:16D8:DD85:B500::1/64
!
interface FastEthernet0/1.26
 encapsulation dot1Q 26
 ip address 172.26.0.1 255.255.0.0
 ip nat inside
 ip virtual-reassembly
 ipv6 address 2001:16D8:DD85:B600::1/64
!
ip route 0.0.0.0 0.0.0.0 192.168.140.1
!
ip nat inside source list 38 interface FastEthernet0/0 overload
ip nat inside source static tcp 192.168.140.11 23 interface FastEthernet0/1 23
!
access-list 38 remark Permit traffic from RFC1918 private net
access-list 38 permit 172.21.0.0 0.0.255.255
access-list 38 permit 172.22.0.0 0.0.255.255
access-list 38 permit 172.23.0.0 0.0.255.255
access-list 38 permit 172.24.0.0 0.0.255.255
access-list 38 permit 172.25.0.0 0.0.255.255
access-list 38 permit 172.26.0.0 0.0.255.255
!
ipv6 route ::/0 2001:16D8:DD85:140::1
!
line vty 0 4
 password cisco
 login