10-27-2016 08:13 AM - edited 03-05-2019 07:22 AM
Hi,
i'm new here. can you guys help me out?
The router has 2 vlans (vlan 10 internal users - vlan 20 visitors)
The isp gives a dynamic ip to my router.
The router recieves his IP from my ISP because he uses the dns-server of my ISP but failes to resolves google.
I've added a some nameservers (Open dns and google 8.8.8.8) but I had the same issue
Ethernet (internal use)
interface GigabitEthernet0
switchport access vlan 10
no ip address
Ethernet (visitors)
interface GigabitEthernet3
switchport access vlan 20
no ip address
Internal Ethernet (ISP)
interface GigabitEthernet8
description WAN port
ip address dhcp
ip nat outside
ip nat enable
ip virtual-reassembly in
duplex auto
speed auto
Configuration vlans
interface Vlan10
ip address 192.168.0.254 255.255.255.0
ip nat inside
ip nat enable
ip virtual-reassembly in
!
interface Vlan20
ip address 10.10.10.1 255.255.255.0
ip virtual-reassembly in
!
premisions and routing
access-list 10 permit 192.168.0.0 0.0.0.255
ip dns server
ip nat inside source list 10 interface GigabitEthernet8 overload
ip route 0.0.0.0 0.0.0.0 FastEthernet0
ip route 0.0.0.0 0.0.0.0 GigabitEthernet8
Can you tell me what i'm missing?
Solved! Go to Solution.
11-07-2016 08:11 AM
Hi,
I've made the follow changes without succes:
interface GigabitEthernet8
description WAN port
ip address dhcp
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
ip address 192.168.0.254 255.255.255.0
ip nat inside
ip virtual-reassembly in
!
interface Vlan20
ip address 10.10.10.1 255.255.255.0
ip virtual-reassembly in
!
ip dns server
ip nat source list 10 interface GigabitEthernet8 overload
ip route 0.0.0.0 0.0.0.0 GigabitEthernet8
!
11-07-2016 08:43 AM
Hello,
sorry for the confusion. Here is what I mean:
interface GigabitEthernet8
description WAN port
ip address dhcp
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
interface Vlan10
ip address 192.168.0.254 255.255.255.0
ip nat inside
ip virtual-reassembly in
access-list 10 permit 192.168.0.0 0.0.0.255
ip nat inside source list 10 interface GigabitEthernet8 overload
ip route 0.0.0.0 0.0.0.0 GigabitEthernet8
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