Home > other >  After the switch configuration trunk and VLAN PC can ping the router can't
After the switch configuration trunk and VLAN PC can ping the router can't

Time:09-25

This is the part of the topology and the corresponding IP:


Then go to ping from PC0 Server0, PC3, Router0 result is as follows:

Only Router0 connection switches can't the end of the

Consult everybody who is this why ah

CodePudding user response:

Even the routing of the interface to the trunk

CodePudding user response:

Routing setting ban ping?

CodePudding user response:

Even the mouth of the router to access

CodePudding user response:

Routers do not receive the tag with the frame or do single-arm routing interface encapsulation vlan, d

CodePudding user response:

You give the router interface configuration son?

CodePudding user response:

Hair to see the router configuration

CodePudding user response:

The router configuration, mouth should be acac routing

CodePudding user response:

I am a super small white, the configuration of routers and switches coming first to see
Below is the switches Switch1

SW1 # sh run
Building the configuration...

The Current configuration: 1612 bytes
!
Version 12.2 (37) SE1
No service timestamps log datetime msec
No service timestamps debug datetime msec
No service password encryption -
!
The hostname SW1
!
IP routing
!
!
Spanning - tree mode PVST
!
!
Interface FastEthernet0/1
Switchport access vlan 101
!
Interface FastEthernet0/2
Switchport access vlan 201
!
Interface FastEthernet0/3
Switchport access vlan 101
!
Interface FastEthernet0/4
!
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
The switchport trunk encapsulation dot1q
Switchport mode trunk
!
Interface GigabitEthernet0/1
Switchport access vlan 101
!
Interface GigabitEthernet0/2
!
Interface Vlan1
No IP address
Shutdown
!
Interface Vlan101
MAC address 0005.5 e45. 9201
IP address 192.168.101.1 255.255.255.0
!
Interface Vlan201
MAC address 0005.5 e45. 9202
IP address 192.168.201.2 255.255.255.0
!
The router ospf 1
The log - adjacency - changes
The network 192.168.101.0 0.0.0.255 area 0
The network 192.168.201.0 0.0.0.255 area 0
!
IP classless
!
IP flow - export version 9
!
!
The line con 0
!
The line aux 0
!
Line 4 vty 0
The login
!
End

CodePudding user response:

Then this is the router Router0

R0 # sh run
Building the configuration...

The Current configuration: 717 bytes
!
Version 15.1
No service timestamps log datetime msec
No service timestamps debug datetime msec
No service password encryption -
!
The hostname R0
!
IP cef
No ipv6 cef
!
License udi pid CISCO2911/K9 sn FTX1524ERZU -
!
Spanning - tree mode PVST
!
Interface GigabitEthernet0/0
IP address 200.200.1.1 255.255.255.0
Duplex auto
Speed auto
!
Interface GigabitEthernet0/1
IP address 192.168.101.253 255.255.255.0
Duplex auto
Speed auto
!
Interface GigabitEthernet0/2
No IP address
Duplex auto
Speed auto
Shutdown
!
Interface Vlan1
No IP address
Shutdown
!
IP classless
!
IP flow - export version 9
!
!
The line con 0
!
The line aux 0
!
Line 4 vty 0
The login
!
!
!
End

CodePudding user response:

Two methods,
1 in the routing bottom allied mouth do a subinterface respectively belonged to vlan101 and 201
Remove SW1 VLAN101 201 interface IP
The interface IP respectively rationing routing subinterface

2 vlan1000 in SW1 and configure a acc routing do mouth to mouth vlan1000 the acc and acc 1000 connected to vlan interface configuration IP address is 172.16.0.2
Increase the static routing in SW1 0.0.0.0 0.0.0.0 172.16.0.1
IP routing bottom allied mouth configuration 172.16.0.1/24 and add back to the way by 192.168.101.0 255.255.255.0 172.16.0.2 and 192.168.201.0 255.255.255.0 172.16.0.2

Method 1 is the single-arm routing
Method 2 is three layer

CodePudding user response:

1. Even use routing access port, SW1 increase static routing 0.0.0.0 0.0.0.0 172.16.0.1

CodePudding user response:


1. Even the routing with access,
2. SW1 increase the static routing 0.0.0.0 0.0.0.0 192.168.101.253nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related