Showing posts with label Cisco800. Show all posts
Showing posts with label Cisco800. Show all posts

Tuesday, 23 April 2024

Port Forwarding Configuration in Cisco 800(C881-K9) Router...!!

 Hey guys...

In this lesson, i will give you a quick overview of port forwarding in cisco 800 VPN router.

The task is here that , in my diagram , I have e a web server in MY LAN with having a private IP address that is 192.168.1.10. and I want to access that web server from outside my network but as I have private IP on the web server I will not be able to access that without port forwarding .

i have one public IP which is assigned on my WAN interface that is connected to ISP . So I need to map my wan interface public IP to my Web server Private IP.


Find the configuration given below.

Syntax.

Use this command to enable port forwarding:

ip nat inside source static tcp "inside local ip" "external ip" 20 extendable
ip nat inside source static tcp "inside local ip" "external ip" 21 extendable
ip nat inside source static tcp "inside local ip" "external ip" 1020 extendable

An example of a FTP server POrt forwarding given below

router (conf)# ip nat inside source static tcp 192.168.1.20 85.84.84.45 21 extendable


My Web server Port forwarding Example..!


## You can use the same port for inside and outside users.

Router(config)# ip nat inside source static tcp 192.168.1.10 80 10x.xx.x.13 80 extendable

OR

## You Can use the different port for inside and outside users.(Recommended)

Router(config)#ip nat inside source static tcp 192.168.1.10 80 10x.xx.x.13 81 extendable


 

Cisco 800(C881-K9)WAN Through PPPoE & LAN Site Access Configuration ...!!

 Cisco 800 is an IOS-based router that is very popular in small enterprises. Let's look at the configurations and how you can configure it in your organization. 

Basically, I will show you, How you can distribute the internet in your LAN through this router(Cisco 800(C881-K9)).

In my network , I will use PPPoE connection with my ISP to build my WAN(Internet) connection.Find my Diagram Given below .



Step-1:- First You have to create the Dialer in the router for PPPoE.

interface Dialer1
 ip address negotiated
 ip mtu 1492
 ip virtual-reassembly in
 encapsulation ppp
 ip tcp adjust-mss 1452
 dialer pool 1
 dialer-group 1
 ppp pap sent-username ipnoc_isp password 0 12345

Step-2 Once the dialer is created then you have to assign that dialer under the WAN interface. The interface will be connected to the ISP modem.


interface FastEthernet4
 description CONNECTED-TO-ISP
 no ip address
 duplex auto
 speed auto
 pppoe enable group global
 pppoe-client dial-pool-number 1



Step-3-LAN Side Configuration.


In LAN side we will create the vLAN 10 and our LAN port would be the access port of vlan 10 .

##Configure The VLAN..

!
vlan 10
!

##Configure The VLAN Interface and give the IP address ..

interface Vlan10
 ip address 192.168.1.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly in

##Configure the Fa2 As access port which will be connected to our LAN segment...!

interface FastEthernet2
 switchport access vlan 100
 switchport mode access
 no ip address
!

Step-4- NAT configuration for Internet User.

First, you create the ACL which will match your LAN IP pool and then configure a NAT.

access-list 10 permit 192.168.1.0 0.0.0.255

#

ip nat inside source list 10 interface Dialer1 overload

Once the NAT will be configured then apply on the interface.

##WAN Interface##

interface Dialer1
 ip nat outside


##LAN Interface###

interface Vlan10
 ip address 192.168.1.0 255.255.255.0
 ip nat inside


Step-5:-( Optional).

#
ip route 0.0.0.0 0.0.0.0 10.10.10.1 name ISP_gateway

#
dialer-list 1 protocol ip permit 
#

The above 2 commands are optional , because in PPPoE , The default route is injected automatically ..!