10-08-2024 01:50 AM
hello,
i have configured the port Ethernet0/0.10 on the router with the (192.168.10.1 255.255.255.0) ip address which i call vlan 10. The same way i have configured trunking and ip default-gateway on the switch. i cannot make the two devices ping each other.
here is the summary of my routers configuration:
interface Ethernet0/0
ip address 10.0.1.2 255.255.255.252
duplex auto
!
interface Ethernet0/0.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
interface Serial6/0
ip address 10.0.0.1 255.255.255.252
serial restart-delay 0
router ospf 1
network 10.0.0.0 0.0.0.3 area 0
network 192.168.10.0 0.0.0.255 area 0
Here is my Switches configuration:
interface Ethernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Ethernet0/1
switchport access vlan 10
switchport mode access
switchport nonegotiate
!
interface Ethernet0/2
switchport access vlan 10
switchport mode access
!
interface Ethernet0/3
switchport access vlan 10
switchport mode access
interface Vlan10
ip address 192.168.10.10 255.255.255.0
shutdown
!
ip default-gateway 192.168.10.1
ip forward-protocol nd
Solved! Go to Solution.
10-08-2024 02:56 AM
Hello @zakiullah27hassan
Please provide the output:
#sh vlan brief (on Switch)
#sh interface trunk (on Switch)
#sh ip int brief (On router)
10-08-2024 02:56 AM
Hello @zakiullah27hassan
Please provide the output:
#sh vlan brief (on Switch)
#sh interface trunk (on Switch)
#sh ip int brief (On router)
10-08-2024 03:28 AM
hello M02@rt37
vlan:
MLS1#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Et1/0, Et1/1, Et1/2, Et1/3
Et2/0, Et2/1, Et2/2, Et2/3
Et3/0, Et3/1, Et3/2, Et3/3
Et4/0, Et4/1, Et4/2, Et4/3
Et5/0, Et5/1, Et5/2, Et5/3
10 IT active Et0/1, Et0/2, Et0/3
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
Interface trunk:
MLS1#show int trunk
Port Mode Encapsulation Status Native vlan
Et0/0 on 802.1q trunking 1
Port Vlans allowed on trunk
Et0/0 1-4094
Port Vlans allowed and active in management domain
Et0/0 1,10
Port Vlans in spanning tree forwarding state and not pruned
Et0/0 1,10
show ip int brief:
R1#show ip int brief
Interface IP-Address OK? Method Status Protocol
Ethernet0/0 unassigned YES unset up up
Ethernet0/0.10 192.168.10.1 YES NVRAM up up
Ethernet0/1 unassigned YES NVRAM up up
Ethernet0/2 unassigned YES NVRAM up up
Ethernet0/3 10.0.1.2 YES manual up up
Ethernet1/0 unassigned YES NVRAM administratively down down
Ethernet1/1 unassigned YES NVRAM administratively down down
Ethernet1/2 unassigned YES NVRAM administratively down down
Ethernet1/3 unassigned YES NVRAM administratively down down
Ethernet2/0 unassigned YES NVRAM administratively down down
Ethernet2/1 unassigned YES NVRAM administratively down down
Ethernet2/2 unassigned YES NVRAM administratively down down
Ethernet2/3 unassigned YES NVRAM administratively down down
Ethernet3/0 unassigned YES NVRAM administratively down down
Ethernet3/1 unassigned YES NVRAM administratively down down
Ethernet3/2 unassigned YES NVRAM administratively down down
Ethernet3/3 unassigned YES NVRAM administratively down down
Ethernet4/0 unassigned YES NVRAM administratively down down
Ethernet4/1 unassigned YES NVRAM administratively down down
Ethernet4/2 unassigned YES NVRAM administratively down down
Ethernet4/3 unassigned YES NVRAM administratively down down
Ethernet5/0 unassigned YES NVRAM administratively down down
Ethernet5/1 unassigned YES NVRAM administratively down down
Ethernet5/2 unassigned YES NVRAM administratively down down
Ethernet5/3 unassigned YES NVRAM administratively down down
Serial6/0 10.0.0.1 YES NVRAM up up
Serial6/1 unassigned YES NVRAM administratively down down
Serial6/2 unassigned YES NVRAM administratively down down
thanks
10-08-2024 03:38 AM
AS @MHM Cisco World mentioned please do Ping <SW vlan IP> source <subinterface IP>
10-08-2024 03:16 AM
Since you use IP for main and subinterface then you need to use source in ping
Ping <SW vlan IP> source <subinterface IP>
MHM
10-08-2024 03:38 AM
I have not given an IP address to my VLAN. Is it necessary to assign an IP address to the VLAN?
Zaki
10-08-2024 03:40 AM
You try ping from R to SW
The SW have vlan 10 IP
"" interface Vlan10
ip address 192.168.10.10 255.255.255.0
shutdown""
MHM
10-08-2024 03:46 AM
Appreciate it. Its working now
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