11-27-2017 07:07 AM - edited 03-08-2019 12:53 PM
dear all
i want to configure my cisco router to publish my web-server(contain my website). the router configured for internet connection purpose using the code written below . the following is basic information about the infrastructure
1.router cisco 1941 with g0/0 and g0/1 interfaces
5.domain name www.mms.com
the following code is configuration of internet connection through the router
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
ip address 10.135.48.15 255.255.255.0
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 192.168.10.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
duplex auto
speed auto
!
ip forward-protocol nd
!
ip http server
ip http authentication local
ip http secure-server
!
ip nat inside source list 1 interface GigabitEthernet0/0 overload
ip route 0.0.0.0 0.0.0.0 10.135.48.1
!
access-list 1 permit 192.168.10.0 0.0.0.255
!
!
!
control-plane
!
!
!
line con 0
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
password great
login
transport input all
!
scheduler allocate 20000 1000
!
end
so could u write the code to publish my web server through the router
with regards,
11-27-2017 10:46 AM
yibeltalf,
Something like this should work for you. Change the inside and/or outside port numbers tp meet your specific implementation.
Router#(config)ip nat inside source static tcp 192.168.10.10 80 10.135.48.15 80
11-27-2017 09:46 PM
11-27-2017 11:34 PM
11-28-2017 10:34 AM
Yibeltalf,
Could you do two things for me? First, with the updated configuration, could you post the output of:
Router# show ip nat translations
Second, could you elaborate on what you mean by "publishing my web-server"? I presumed you meant that you wanted the host to be IP-accessible from outside your LAN, but I now suspect you may be wanting to configure some name resolution service....
11-28-2017 10:30 PM
11-30-2017 11:31 PM
12-05-2017 03:43 AM
dear all
i want to configure my cisco router to publish my web-server(contain my website). the router configured for internet connection purpose using the code written below . the following is basic information about the infrastructure
1.router cisco 1941 with g0/0 and g0/1 interfaces
5.domain name www.mms.com
the problem that the system not working was the public ip not the write one. it means IP 192.168.10.10 could not be public IP ... so i fond the public Ip and configure problem then it woks .the public ip is 10.130.64.45
the corrected configuration is
nterface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
ip address 10.135.48.15 255.255.255.0
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 192.168.10.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
duplex auto
speed auto
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip nat inside source list 1 interface GigabitEthernet0/0 overload
ip nat inside source static tcp 192.168.10.10 80 10.130.64.45 80 extendable
ip route 0.0.0.0 0.0.0.0 10.135.48.1
!
access-list 1 permit 192.168.10.0 0.0.0.255
it is working so the problem is solved.thank you
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide