06-28-2017 09:22 AM - edited 03-08-2019 11:08 AM
Dears
In this topology
I have done
Here vlan 1 ip 172.141.0.1/16
PC 172.141.0.3/16
PC 172.141.0.4/16
Vlan 2 IP 192.168.1.1/24
Router IP is 192.168.1.4/24
PC IP is 192.168.1.2/24
Switch interface f0/1 and f0/2 in access vlan 2
and
all interface are in default vlan 1
Switch configuration
=====================
Switch#show running-config
Building configuration...
Current configuration : 1422 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
!
!
!
!
!
!
ip routing
!
!
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface FastEthernet0/1
switchport access vlan 2
switchport mode access
!
interface FastEthernet0/2
switchport access vlan 2
switchport mode access
!
interface FastEthernet0/3
switchport mode access
!
interface FastEthernet0/4
switchport mode access
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
ip address 172.141.0.1 255.255.0.0
!
interface Vlan2
ip address 192.168.1.1 255.255.255.0
!
ip default-gateway 192.168.1.1
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.1.4
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
Switch#
Here 172.141.0.3 pc is communicatre with 192.168.1.3
192.168.1.3 pc is communicate with router(192.168.1.4)
But
172.141.0.3 pc is not communicate with 192.168.1.4
please send me the config file
Just it is a simple file
Solved! Go to Solution.
06-29-2017 08:48 AM
your routing between your switch and router , do you have a route back to the switch for the 172 network ?
06-28-2017 09:59 AM
You have a default gateway and a default route pointing to 2 different next hops on same device ,which one is it supposed to be remove 1 of them ? use the default route instead of default gateway as the device is doing intervlan routing and ip routing is enabled
ip default-gateway 192.168.1.1
ip route 0.0.0.0 0.0.0.0 192.168.1.4
06-28-2017 10:09 AM
Thanks sir i will configure then i will let u know
06-29-2017 08:48 AM
your routing between your switch and router , do you have a route back to the switch for the 172 network ?
06-29-2017 10:25 AM
no sir please give me the command
06-28-2017 10:15 AM
Sir i removed
ip default-gateway 192.168.1.1
but 172.141.0.0/16 network is not pinging with 192.168.1.4
06-28-2017 10:48 AM
sir when i using pc in that port meand port no f0/1 at that time i am able to ping but when i am using router in that port i am not able to ping sir /
sir please solve the problem
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