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

Setup Cisco router to access internet

andy.nguyen
Level 1
Level 1

Hi Everyone,


I have a cisco router and I'd like to set it up so my PCs can get the internet from it but it doesn't seem to work for me.


From router CLI, I can ping 4.2.2.2 and other IP addresses but my PC which connected to int fa3 can't access to the internet. The PC gets the 10.10.10.2 address from DHCP on this router and DNS is 8.8.8.8. What am I missing? Any ideas? Thanks.


! Last configuration change at 13:56:40 UTC Fri Jun 8 2012 by  home version 15.1 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname yourname ! boot-start-marker boot-end-marker ! ! logging buffered 51200 warnings ! aaa new-model ! ! aaa authentication login default local aaa authorization exec default local ! ! ! ! ! aaa session-id common ! crypto pki token default removal timeout 0 ! crypto pki trustpoint TP-self-signed-974145784 enrollment selfsigned subject-name cn=IOS-Self-Signed-Certificate-974145784 revocation-check none rsakeypair TP-self-signed-974145784 ! ! crypto pki certificate chain TP-self-signed-974145784 certificate self-signed 01   30820229 30820192 A0030201 02020101 300D0609 2A864886 F70D0101 05050030   30312E30 2C060355 04031325 494F532D 53656C66 2D536967 6E65642D 43657274   69666963 6174652D 39373431 34353738 34301E17 0D313230 36303732 32323933   335A170D 32303031 30313030 30303030 5A303031 2E302C06 03550403 1325494F   532D5365 6C662D53 69676E65 642D4365 72746966 69636174 652D3937 34313435   37383430 819F300D 06092A86 4886F70D 01010105 0003818D 00308189 02818100   AFBF87C6 5B98A88C 9EEBE956 16709AFF 56E7480E AD17C7E4 8580ADC5 50228E1D   09612D62 AE5B55AE A40A243C CB79F994 B95B065E 35ABC0B1 F2C63EE4 26528BBA   1790481E 39DF0098 1A015A69 7DEA3E17 27C32593 29279F01 ECEFF077 F30CB94A   7D45D6D2 8E35009D 6D864C83 E4DF8E35 29197639 16AD8CD8 17353729 B03C217F   02030100 01A35330 51300F06 03551D13 0101FF04 05300301 01FF301F 0603551D   23041830 168014E6 01D5860E BB0C5FDB CC7A50EA 5F8B684E 3CB1EC30 1D060355   1D0E0416 0414E601 D5860EBB 0C5FDBCC 7A50EA5F 8B684E3C B1EC300D 06092A86   4886F70D 01010505 00038181 008A9E3D 67A4EBC5 765A058D 932DF0B5 CE090E7B   B613F2E3 A69F650F 043AC2F4 8AF1EA44 3A9C0C37 D92CB9C4 1D28820C B94E1446   EC6E6B3A 68444CAC C6D8F3F4 AC9C7B26 90AB5B3A ABBBE990 D9754563 B86604C6   1D83DC3F 08B1AC44 F5D7238F DD40D5B9 F955411F 4E68D4D8 6A0BE780 C6AAC12B   AB592A9E 9A0CACEA ED6ED7AE EB        quit ip source-route ip cef ! ! ! ip dhcp excluded-address 10.10.10.1 ! ip dhcp pool ccp-pool import all network 10.10.10.0 255.255.255.248 default-router 10.10.10.1 lease 0 2 ! ! no ip domain lookup ip domain name yourdomain.com no ipv6 cef ! ! multilink bundle-name authenticated license udi pid C819HG-V-K9 sn FTX162281EU ! ! username home privilege 15 secret 4 XNOSvqv8ow8OCa8GUCO4nkkzLJe4fzD82U6AYXfQP76 ! ! ! ! controller Cellular 0 ! ! ! ! ! ! ! ! interface Cellular0 no ip address encapsulation ppp ! interface FastEthernet0 no ip address ! interface FastEthernet1 no ip address ! interface FastEthernet2 no ip address ! interface FastEthernet3 no ip address spanning-tree portfast ! interface GigabitEthernet0 description outside ip address dhcp ip nat outside ip virtual-reassembly in duplex auto speed auto ! interface Serial0 no ip address shutdown clock rate 2000000 ! interface Vlan1 description $ETH-SW-LAUNCH$$INTF-INFO-HWIC 4ESW$ ip address 10.10.10.1 255.255.255.248 ip nat inside ip virtual-reassembly in ip tcp adjust-mss 1452 ! ip forward-protocol nd ip http server ip http access-class 23 ip http authentication local ip http secure-server ip http timeout-policy idle 60 life 86400 requests 10000 ! ! ip nat inside source list 1 interface GigabitEthernet0 overload ip route 0.0.0.0 0.0.0.0 10.1.1.1 ! access-list 23 permit 10.10.10.0 0.0.0.7 no cdp run ! ! ! ! ! ! ! control-plane ! ! line con 0 line aux 0 line 3 no exec rxspeed 3100000 txspeed 1800000 line vty 0 4 access-class 23 in privilege level 15 transport input telnet ssh ! scheduler allocate 20000 1000 end

6 Replies 6

Hi Andy,

I'm not seeing any config for outside ( WAN) IP to which inside gets translated...

Also, can you please let us know on which port your WAN connection is ??

Regards,

Smitesh

It's int g0. Thanks.

Are you supposed to receive dynamic IP from your provider everytime ?

Regards,

Smitesh

Yes, it's everytime.

Hi andy,

your access list is 23 not 1 you should change your nat configurations

ip nat inside source list 23 interface GigabitEthernet0 overload

    Regards

If it help please rate.

Hahaha...

I failed to pay attention to that...

Good catch...

+5 for that...

Regards,

Smitesh

Review Cisco Networking products for a $25 gift card