To use an Internet connection with one single public IP address by more users with private IP addresses IP NAT has to be configured. The source address of the outgoing packets to the Internet need to be translated to the public address given by the provider.
In the example below the public IP address the interface FastEthernet0/0 is shared by the user in the subnet 192.168.1.0/24.
interface FastEthernet0/0
description public interface
ip address [IP address mask]
ip nat outside
!
interface FastEthernet0/1
description customer LAN
ip address 192.168.1.1 255.255.255.0
ip nat inside
!
access-list 1 permit 192.168.1.0 0.0.0.255
ip nat inside source list 1 interface FastEthernet0/0 overload
|