Site hosted by Angelfire.com: Build your free website today!


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 WS-C3750X-24T-L   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 pl

You shall issue "ip nat inside" command under the subinterfaces not on the main interface.

And one more thing permit 172.16.0.0 0.0.0.255 will only allow to translate 172.16.0.x adresses

interface gigEthernet0/0

description ****Facing  LAN*****

no ip address

interface gigEthernet0/0.1

description ****Facing  LAN-Data*****

ip address 172.16.1.1 255.255.255.0

encapsulation dot1q 1 native

ip nat inside

 

interface gigEthernet0/0.2

description ****Facing  LAN-Voice*****

ip address 172.16.2.1 255.255.255.0

encapsulation dot1q 2

ip nat inside

 

interface gigEthernet0/0.3

description ****Facing  LAN-WLAN*****

ip address 172.16.3.1 255.255.255.0

encapsulation dot1q 3

ip nat inside

access-list 1 permit 172.16.0.0 0.0.255.255

ip nat inside  WS-C3560X-48PF-S    source list 1 interface gigethernet0/1 overload

ip router 0.0.0.0 0.0.0.0.0 gigethernet 0/1