The following config can be used for configuring a Cisco router for connection to altohiway using Network Address Translation.
You need to change the following values:-
- LocalIP -> Should be changed to the ethernet IP the router is to be on
- LocalNetmask -> Should be changed to the netmask of the local network
- LocalNet -> Should be the local network number
- HiwayIP -> Should be changed to the IP address the s0 interface is to sit on
- LocalNet -> Should be changed to the IP address the s0 interface is to sit on
- LocalMail -> Should be changed to the IP address of the local mailserver
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname SetHostname-1600
!
enable password myadminpass
!
ip subnet-zero
ip domain-list hiway.co.uk
ip domain-name hiway.co.uk
ip name-server 195.12.4.247
!
!
!
interface Ethernet0
ip address LocalIP LocalNetmask
no ip directed-broadcast
ip nat inside
no shutdown
!
interface Serial0
ip address HiwayIP 255.255.255.252
no ip directed-broadcast
ip nat outside
no shutdown
!
ip nat inside source list 1 interface Serial0 overload
ip nat inside source static tcp LocalMail 25 HiwayIP 25 extendable
ip classless
ip route 0.0.0.0 0.0.0.0 serial0
!
access-list 1 permit LocalNet 0.0.0.255
!
access-list 12 permit [ManagementIP1]
access-list 12 permit LocalNet 0.0.0.255
!
access-list 102 permit tcp any any eq www
access-list 102 permit tcp any any eq ftp-data
access-list 102 permit tcp any any eq ftp
access-list 102 permit icmp any any
!
line con 0
transport input none
line 1
line vty 0 4
access-class 12 in
password mylevelpass
login
!
end


