FreePBX/R1 Config
From Teknologisk videncenter
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