"Richard Antony Burton" <richardaburton-NOSPAM-@hotmail.com> wrote in
message news:01%rd.189279$...
> Once I have chance to trim down and censor my config I'll post it, for the
> benefit of anyone else looking to do the same.
Ok, here is a basic config that should work in the uk for plusnet, zen
(untested), and probably many others where you get 8 ips (rather than 8+1).
This has nat and routing, dhcp server (192.168.7.129-254 (use 2-128 for
statics)), dns server. There is an example dhcp reservation, and nat port
forwarding rule for a webserver. This example uses 84.xxx.xxx.8/29, with
84.xxx.xxx.9 as the router.
Richard.
!
version 12.3
no service pad
service tcp-keepalives-in
service tcp-keepalives-out
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
no service password-encryption
service sequence-numbers
!
hostname router
!
!
username root privilege 15 password 0 passw0rd
!
no aaa new-model
ip subnet-zero
ip dhcp excluded-address 192.168.0.1 192.168.0.128
!
ip dhcp pool Lan-pool
network 192.168.0.0 255.255.255.0
default-router 192.168.0.1
dns-server 192.168.0.1
domain-name lan
!
ip dhcp pool webserver
host 192.168.0.2 255.255.255.0
client-identifier 0100.50da.000d.1f
client-name www
!
!
ip domain name lan
ip host
www.lan 192.168.0.2
!
ip name-server 212.159.13.49
ip name-server 212.159.13.50
ip name-server 212.159.6.9
!
!
interface Ethernet0
description Lan
ip address 192.168.0.1 255.255.255.0 secondary
ip address 84.xxx.xxx.9 255.255.255.248
ip directed-broadcast
ip nat inside
ip virtual-reassembly
ip route-cache flow
no cdp enable
hold-queue 100 out
!
interface ATM0
no ip address
ip route-cache flow
no ip mroute-cache
no atm ilmi-keepalive
dsl operating-mode auto
!
interface ATM0.1 point-to-point
pvc 0/38
encapsulation aal5mux ppp dialer
dialer pool-member 1
!
!
!
interface Dialer0
ip unnumbered Ethernet0
no ip proxy-arp
ip nat outside
ip virtual-reassembly
encapsulation ppp
dialer pool 1
dialer-group 2
no cdp enable
ppp authentication chap callin
ppp chap hostname
ppp chap password 0 passw0rd
!
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer0 permanent
ip dns server
ip dns primary lan soa router.lan mail.router.lan 600 600 600 600
!
ip nat pool nat-pool 84.xxx.xxx.9 84.xxx.xxx.9 netmask 255.255.255.248
ip nat inside source list 1 pool nat-pool overload
!
ip nat inside source static tcp 192.168.0.2 80 interface Dialer0 80
!
!
access-list 1 remark SDM_ACL Category=2
access-list 1 remark Permit any lan IP
access-list 1 permit 192.168.0.0 0.0.0.255
dialer-list 2 protocol ip permit
!