cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
429
Views
0
Helpful
3
Replies

setting up vlans affected communication

johncenashia
Level 1
Level 1

i have a simulated network of two branches connected to a internet service provider. i set up and configured vlans in each branch but in doing so the pcs in each branch can no longer access thier web server and the isp web server. tried setting up static routes to help resolve this but it did nothing, have absolutely no clue how to fix this. anyone help?

3 Replies 3

marce1000
Hall of Fame
Hall of Fame

 

 - FYI : Community group for Packet Tracer project questions

 M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

Hello,

for the VLANs to work, you need to configure subinterfaces on the router. I have made some changes to your router config (marked in bold), I have also added DHCP pools for each VLAN (for the sake of simplicity). I have also attached the revised file:

Regional-Router#sh run
Building configuration...

Current configuration : 1555 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Regional-Router
!
ip dhcp pool VLAN_10
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
dns-server 192.167.1.101
ip dhcp pool VLAN_20
network 192.168.20.0 255.255.255.0
default-router 192.168.20.1
dns-server 192.167.1.101
ip dhcp pool VLAN_30
network 192.168.30.0 255.255.255.0
default-router 192.168.30.1
dns-server 192.167.1.101
!
no ip cef
no ipv6 cef
!
ip name-server 192.167.1.101
!
spanning-tree mode pvst
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
!
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
!
interface FastEthernet0/0.30
encapsulation dot1Q 30
ip address 192.168.30.1 255.255.255.0
!
interface FastEthernet0/1
ip address 202.15.32.214 255.255.255.252
ip nat outside
duplex auto
speed auto
!
interface Ethernet0/0/0
ip address 192.168.14.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip nat inside source list 1 interface FastEthernet0/1 overload
ip nat inside source static tcp 192.168.14.100 80 202.15.32.214 80
ip classless
ip route 0.0.0.0 0.0.0.0 202.15.32.213
!
ip flow-export version 9
!
access-list 1 permit 192.168.10.0 0.0.0.255
access-list 1 permit 192.168.20.0 0.0.0.255
access-list 1 permit 192.168.30.0 0.0.0.255
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
end

M02@rt37
VIP
VIP

Hello @johncenashia 

Here are some extra informations about sub-interfaces, called Router On a Stick 'ROaS'.

https://www.packettracerlab.com/router-on-a-stick-configuration/

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.