cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3204
Views
5
Helpful
5
Replies

How to connect Vlans to Outside Webserver

John Rener
Level 1
Level 1

Hello Gurus,

I'm building a lab and trying to connect my vlans to my outside webserver with no success. I must be missing an important config. My routing is all over the place, any help/suggestions/corrections is very much appreciated. 

 

test2.pngtest1.png
The Test PC which is non vlan can access the web server. 
Attached is the packet tracer file. 

 

Thank you in advance!

1 Accepted Solution

Accepted Solutions

balaji.bandi
Hall of Fame
Hall of Fame

You need to give more information, how is your setup what device connected in the network path from user to internet.

 

In general setup in basic high level:

 

Lan (users) --Switch-- Internet router--- Internet ( where the WWW resides).

 

For the users to connect to Outside Web Server (since you have local users do not have public IP iam guessing, you can not reach to webServer, you need to do NAT with Public IP)

 

As best practice :

Lan (users) --Switch-- Internet router(nat configuration here in this device)--- Internet ( where the WWW resides).

 

You need to Look the routing

Natting

 

Sorry some how iam not able to open the file.

 

Make sense ?

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

5 Replies 5

balaji.bandi
Hall of Fame
Hall of Fame

You need to give more information, how is your setup what device connected in the network path from user to internet.

 

In general setup in basic high level:

 

Lan (users) --Switch-- Internet router--- Internet ( where the WWW resides).

 

For the users to connect to Outside Web Server (since you have local users do not have public IP iam guessing, you can not reach to webServer, you need to do NAT with Public IP)

 

As best practice :

Lan (users) --Switch-- Internet router(nat configuration here in this device)--- Internet ( where the WWW resides).

 

You need to Look the routing

Natting

 

Sorry some how iam not able to open the file.

 

Make sense ?

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Which one were you not able to open, the zip or the pkt? I will paste my config.

John Rener
Level 1
Level 1

L3 Switch

 

interface GigabitEthernet0/1

switchport trunk native vlan 100

switchport trunk encapsulation dot1q

switchport mode trunk

!

interface GigabitEthernet0/2

switchport trunk native vlan 100

switchport trunk encapsulation dot1q

switchport mode trunk

!

interface Vlan1

no ip address

shutdown

!

interface Vlan5

mac-address 00e0.8f19.ad01

ip address 192.168.1.1 255.255.255.0

!

interface Vlan10

mac-address 00e0.8f19.ad02

ip address 192.168.2.1 255.255.255.0

!

ip default-gateway 10.10.100.1

ip classless

ip route 0.0.0.0 0.0.0.0 10.10.100.1

 

Router 2

 

interface GigabitEthernet0/0/0

ip address 10.10.100.1 255.255.255.252

duplex auto

speed auto

!

interface GigabitEthernet0/0/1

ip address 192.168.5.1 255.255.255.0

duplex auto

speed auto

!

interface Serial0/1/0

ip address 10.10.0.1 255.255.255.252

!

interface Serial0/1/1

no ip address

clock rate 2000000

shutdown

!

interface Vlan1

no ip address

shutdown

!

router eigrp 1

network 192.168.1.0

network 192.168.2.0

network 10.0.0.0

 

!

ip classless

ip route 0.0.0.0 0.0.0.0 Serial0/1/0

 

 

Router 3

 

interface GigabitEthernet0/0/0

no ip address

duplex auto

speed auto

shutdown

!

interface GigabitEthernet0/0/1

ip address 10.10.10.1 255.255.255.0

ip nat inside

duplex auto

speed auto

!

interface Serial0/1/0

ip address 10.10.0.2 255.255.255.252

ip nat outside

clock rate 2000000

!

interface Serial0/1/1

no ip address

clock rate 2000000

shutdown

!

interface Vlan1

no ip address

shutdown

!

router eigrp 1

network 10.0.0.0

 

!

ip nat inside source static 10.10.10.2 10.10.0.2

ip classless

ip route 0.0.0.0 0.0.0.0 Serial0/1/0

!

 

 

My Test PC is already working. That's a non vlan traffic though.

 

test.PNG

John Rener
Level 1
Level 1

It works now.
The issue was I forgot to setup my routing protocol on L3 switch and ACL and NAT on Router 2.

 

Good to know...cheers !

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card