02-05-2014 10:31 PM - edited 03-07-2019 06:02 PM
HI friends,
i have a setup for my small network like:
ADSL ---------- Router (2901) --------- catalyst Switch (2960) -------- LAN User (Data+VOIP+WLAN)
Router Config:
ip dhcp pool Data
network 172.16-.1.0 255.255.255.0
default-router 172.16.1.1
dns-server 192.168.1.1 4.2.2.2
ip dhcp pool Voice
network 172.16.2.0 255.255.255.0
default-router 172.16.2.1
dns-server 192.168.1.1 4.2.2.2
ip dhcp pool WLAN
network 172.16.3.0 255.255.255.0
default-router 172.16.3.1
dns-server 192.168.1.1 4.2.2.2
interface gigEthernet0/1
description Facing the ISP (the ADSL Modem)
ip address dhcp
ip nat outside
i did (show dhcp server) and got an ip address from the ADSL modem for this port ------192.168.1.2
!
interface gigEthernet0/0
description ****Facing LAN*****
no ip address
ip nat inside
interface gigEthernet0/0.1
description ****Facing LAN-Data*****
ip address 172.16.1.1 255.255.255.0
encapsulation dot1q 1 native
interface gigEthernet0/0.2
description ****Facing LAN-Voice*****
ip address 172.16.2.1 255.255.255.0
encapsulation dot1q 2
interface gigEthernet0/0.3
description ****Facing LAN-WLAN*****
ip address 172.16.3.1 255.255.255.0
encapsulation dot1q 3
access-list 1 permit 172.16.0.0 0.0.0.255
ip nat inside source list 1 interface gigethernet0/1 overload
ip router 0.0.0.0 0.0.0.0.0 gigethernet 0/1
Switch Config:
int vlan 1
Description***Data**
ip address 172.16.1.2 255.255.255.0
!
int vlan 2
Description***Voice**
ip address 172.16.2.2 255.255.255.0
!
int vlan 3
Description***WLAN**
ip address 172.16.3.2 255.255.255.0
ip default-gateway 172.16.1.1
int gig 1/0
description *****Connected to Router*****
switchport mode trunk
int fa 1/0
switchport mode access
switchport access vlan1
switchport voice vlan 2
Above is the config that i configure on router and switch but unfortunatelt internet does not work from any pc connected to the switch
i checked from router (sh ip nat translation) but output showing nothing.
same router is being used as CME also ang having the voice over ip configuration on it.... is that is the problem ?
atteched file is show version of the router if needed to check plzi am getting ip address on pc but not able to browse.
while i can browse when connect to the modem direct with cable to my pc
any suggestion and idea will be very appreciated! and i need urgent help plz
thanks
Solved! Go to Solution.
02-06-2014 03:34 AM
Can you ping the cable modem ?
Is the gi0/1 interface up/up
when you connect the PC directly to the cable modem what IP does your PC get ?
Jon
02-06-2014 03:10 AM
HI,
this is config now
Router:
interface GigabitEthernet0/0
description *****Connected to LAN***
no ip address
duplex auto
speed auto
end
interface GigabitEthernet0/0.1
description ***Subinterface for DATA Vlan***
encapsulation dot1Q 1 native
ip address 172.16.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
end
!
interface GigabitEthernet0/0.2
description ***Subinterface for VOICE Vlan***
encapsulation dot1Q 2
ip address 172.16.2.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
end
interface GigabitEthernet0/0.3
description ****Subinterface for WLAN****
encapsulation dot1Q 3
ip address 172.16.3.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
end
!
interface GigabitEthernet0/1
description ****Connected to ADSL Modem****
ip address 192.168.1.2 255.255.255.0
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
access-list 1 permit 172.16.0.0 0.0.255.255
ip nat inside source list 1 interface GigabitEthernet0/1 overload
ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/1
any idea please?
Thanks
02-06-2014 03:27 AM
Hi,
could you please paste results sh ip inter brief from 2901 and switch. Next sh vlan from switch.
Please confirm that ADSL modem is allright and has access to the internet(ISP).
Please confirm that your ADSL modem has inside adress 192.168.1.1 255.255.255.0 and you can ping this address from 2901 router.
Thanks,
Jan
02-06-2014 03:36 AM
HI,
Router:
Router#sh ip int b
Interface IP-Address OK? Method Status Protocol
Embedded-Service-Engine0/0 unassigned YES NVRAM administratively down down
GigabitEthernet0/0 unassigned YES NVRAM up up
GigabitEthernet0/0.1 10.1.1.1 YES NVRAM up up
GigabitEthernet0/0.2 10.1.2.1 YES NVRAM up up
GigabitEthernet0/0.3 10.1.3.1 YES NVRAM up up
GigabitEthernet0/1 192.168.1.2 YES NVRAM up up
NVI0 unassigned YES unset administratively down down
Switch
SWITCH#sh ip int b
Interface IP-Address OK? Method Status Protocol
Vlan1 10.1.1.2 YES NVRAM up up
Vlan2 10.1.2.2 YES NVRAM up up
Vlan3 10.1.3.2 YES NVRAM up up
FastEthernet0/1 unassigned YES unset down down
FastEthernet0/2 unassigned YES unset down down
FastEthernet0/3 unassigned YES unset down down
FastEthernet0/4 unassigned YES unset down down
FastEthernet0/5 unassigned YES unset down down
FastEthernet0/6 unassigned YES unset down down
FastEthernet0/7 unassigned YES unset down down
FastEthernet0/8 unassigned YES unset down down
FastEthernet0/9 unassigned YES unset down down
FastEthernet0/10 unassigned YES unset down down
FastEthernet0/11 unassigned YES unset down down
FastEthernet0/12 unassigned YES unset down down
FastEthernet0/13 unassigned YES unset down down
FastEthernet0/14 unassigned YES unset down down
FastEthernet0/15 unassigned YES unset down down
FastEthernet0/16 unassigned YES unset down down
FastEthernet0/17 unassigned YES unset down down
FastEthernet0/18 unassigned YES unset down down
FastEthernet0/19 unassigned YES unset down down
FastEthernet0/20 unassigned YES unset down down
FastEthernet0/21 unassigned YES unset down down
FastEthernet0/22 unassigned YES unset down down
FastEthernet0/23 unassigned YES unset down down
FastEthernet0/24 unassigned YES unset down down
GigabitEthernet0/1 unassigned YES unset up up
GigabitEthernet0/2 unassigned YES unset down down
Yes, ADSL have the internet access to the ISP (i use that to connect with internet now and msging you)
yes, adsl's ip is 192.168.1.1/24 and i can ping that from router and switch
SWITCH#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/4/9 ms
Router#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
02-06-2014 03:41 AM
Can you post the actual config you have on your router ?
Can you change your default route to -
ip route 0.0.0.0 0.0.0.0 192.168.1.1
Jon
02-06-2014 03:49 AM
Hi,
after changing ip route to 0.0.0.0 0.0.0.0 192.168.1.1
ITS'S WORKIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIiiiiNG
Thank you so much marshall
its really very appreciated!!
02-06-2014 03:48 AM
Hi,
thanks for output provided. Now it does not make sense. Because in output we can see addresses like 10.1.1.1, 10.1.2.1 and 10.1.3.1 but your last config has different network range(172.16.x.x) so I just wonder if it is typo or different configuration.
Thanks,
Jan
02-06-2014 03:53 AM
Hello,
Could you please rate my answer above?
Br,
István
02-06-2014 04:06 AM
Yes, Sure and thank you sooo much everyone of you
God bless you all!
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