cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
238
Views
0
Helpful
1
Replies

Configure public ip for webserver access

alemayehuayele
Level 1
Level 1
Configure public ip for web server access
1 Reply 1

Hello,

Suppose fa0/1 is connected to ADSL and fa0/0 is connected to server and clients

Int fa0/1

ip address 196.155.100.134 255.255.255.252

ip nat outside

int fa0/0

ip address 192.168.1.1 255.255.255.0

IP nat inside

ip route 0.0.0.0 0.0.0.0  196.155.100.133

(suppose your server IP address is 192.168.1.2 with the gateway of 192.168.1.1 so as other clients)

access-list 50 permit 192.168.1.0 0.0.0.255(for clients)

ip nat inside source list 50 interface fa0/1 overload(for clients)

ip nat inside source static tcp 192.168.1.2 7066 196.155.100.134 80 ( for server)

Server will be accessible from outside with IP 196.155.100.134 and port 80 and clients will have Internet as well.

Hope it helps,

Masoud

Review Cisco Networking for a $25 gift card