cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5068
Views
5
Helpful
4
Replies

Switch doesn't connect to the PC.

benone
Level 1
Level 1

Hello guys.

 

I've managed to connect through internet via PPoe on my Cisco 1841 Router, I can ping my Cisco 2950 switch and vice versa and my switch can ping 8.8.8.8 with success, but I can't seem to find why my PC doesn't connect to the internet when I connect it through my switch.

 

I've tried to connect my PC with the router through the LAN ports of my router and it doesn't work as well. My PC is on DHCP auto, also I've tried giving it IPs manually with no success. ( + also tried release and renew / hardware reset to switch )

 

Here are my configs for both router and switch:

 

Switch:

 

Building configuration...

Current configuration : 1676 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname main_SW
!
enable secret 5 $1$QOT9$e4GDg/0/WshTnxrhTdYfh/
!
username beleaua secret 5 $1$P5Ln$BPbPwvzMwkyIG9uIEwq8P.
ip subnet-zero
!
ip domain-name cisco.com
ip ssh time-out 120
ip ssh authentication-retries 3
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
!
!
interface FastEthernet0/1
 switchport access vlan 2
 switchport mode access
!
interface FastEthernet0/2
!
interface FastEthernet0/3
 description PC_sufragerie
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
 no ip address
 no ip route-cache
 shutdown
!
interface Vlan2
 description ROUTER NETWORK VLAN
 ip address 192.168.1.10 255.255.255.0
 no ip route-cache
!
interface Vlan3
 no ip address
 no ip route-cache
 shutdown
!
ip default-gateway 192.168.1.1
ip http server
!
line con 0
line vty 0 4
 login local
 transport input ssh
line vty 5 15
 login local
 transport input ssh
!
!
end

Router:

 

Building configuration...

Current configuration : 1897 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname main_RT
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$8DZ4$S2FO4kIFwON9FLl6IHg6t.
!
no aaa new-model
!
!
dot11 syslog
!
!
ip cef
!
!
ip domain name cisco.com
!
multilink bundle-name authenticated
!
!
username beleaua secret 5 $1$dzTV$Hov/xBIJwFlZfWzlvAsbi1
!
!
archive
 log config
  hidekeys
!
!
controller DSL 0
 line-term cpe
!
!
!
!
interface BRI0
 no ip address
 encapsulation hdlc
 shutdown
!
interface FastEthernet0
 description Ethernet connection
 no ip address
 no ip mroute-cache
 duplex auto
 speed auto
 pppoe enable group global
 pppoe-client dial-pool-number 1
!
interface FastEthernet1
 description SWITCH NETWORK
 switchport access vlan 2
!
interface FastEthernet2
!
interface FastEthernet8
!
interface Vlan1
 no ip address
!
interface Vlan2
 description SWITCH NETWORK VLAN
 ip address 192.168.1.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 no ip mroute-cache
!
interface Dialer0
 description ISP PPOe config
 ip address negotiated
 ip mtu 1492
 ip nat outside
 ip virtual-reassembly
 encapsulation ppp
 ip tcp adjust-mss 1452
 no ip mroute-cache
 dialer pool 1
 ppp authentication pap callin
 ppp pap sent-username BB91838414 password 0 tTzb5eVbsB
 ppp ipcp dns request
 ppp ipcp route default
 ppp ipcp address accept
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 Dialer0
!
!
no ip http server
no ip http secure-server
ip nat inside source list 1 interface Dialer0 overload
!
access-list 1 permit any
dialer-list 1 protocol ip permit
!
!
!
!
!
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
 login local
 transport input ssh
line vty 5 15
 login local
 transport input ssh
!
end

 

Have a great day.

 

1 Accepted Solution

Accepted Solutions

configure the switch as below : try again.

 

interface FastEthernet0/7
 switchport access vlan 2
 switchport mode access

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

4 Replies 4

balaji.bandi
Hall of Fame
Hall of Fame

what port is your Pc connected what is the IP address of the PC. i did not see any DHCP Configuration on either of the device,.

 

Configure your PC IP 

IP 192.168.1.10
Mask : 255.255.255.0
gateway : 192.168.1.1
DNS 8.8.8.8

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Thanks for your response.

The port through which I connect my PC via switch is fa 0/7 , and I've tried to set the IP manually like you said, but it didn't work.

configure the switch as below : try again.

 

interface FastEthernet0/7
 switchport access vlan 2
 switchport mode access

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Thanks a lot, I've made it work.

Have a great day.
Review Cisco Networking products for a $25 gift card