Running configuration:
interface FastEthernet0
switchport trunk native vlan 500
switchport mode trunk
no ip address
!
interface FastEthernet1
no ip address
!
interface FastEthernet2
switchport access vlan 5
no ip address
spanning-tree portfast
!
interface FastEthernet3
switchport trunk native vlan 600
switchport mode trunk
no ip address
interface FastEthernet4
ip address 192.168.1.230 255.255.255.0
shutdown
duplex auto
speed auto
!
interface Vlan1
ip address 192.168.1.230 255.255.255.0
!
interface Vlan2
ip address 192.168.2.230 255.255.255.0
shutdown
!
interface Vlan5
ip address 192.168.5.230 255.255.255.0
!
interface Vlan10
ip address 192.168.10.230 255.255.255.0
!
interface Vlan100
no ip address
shutdown
ip route 0.0.0.0 0.0.0.0 192.168.1.1
Sh ip route:
Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default, U – per-user static route
o – ODR, P – periodic downloaded static route
Gateway of last resort is 192.168.1.1 to network 0.0.0.0
C 192.168.10.0/24 is directly connected, Vlan10
C 192.168.5.0/24 is directly connected, Vlan5
C 192.168.1.0/24 is directly connected, Vlan1
S* 0.0.0.0/0 [1/0] via 192.168.1.1
I can ping from VLAN 5 to VLAN10.But i cannot ping VLAN1 from VLAN 5 and VLAN 10.