Book now with code EOY2025
rakem wrote: silly question, should i be able to ping a subinterface? i have the following config: 1841#sh run Building configuration... Current configuration : 1287 bytes ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname 1841 ! boot-start-marker boot-end-marker ! ! no aaa new-model ! resource policy ! mmi polling-interval 60 no mmi auto-configure no mmi pvc mmi snmp-timeout 180 ip subnet-zero --More-- ! ! no ip dhcp use vrf connected ! interface FastEthernet0/0 no ip address duplex auto speed auto ! interface FastEthernet0/0.2 encapsulation dot1Q 2 ip address 10.1.21.1 255.255.255.224 no snmp trap link-status ! interface FastEthernet0/0.3 encapsulation dot1Q 3 ip address 10.1.21.33 255.255.255.224 no snmp trap link-status --More-- ! interface FastEthernet0/0.4 encapsulation dot1Q 4 ip address 10.1.21.65 255.255.255.224 no snmp trap link-status ! interface FastEthernet0/0.5 encapsulation dot1Q 5 ip address 10.1.21.129 255.255.255.224 no snmp trap link-status ! interface FastEthernet0/0.6 encapsulation dot1Q 6 ip address 10.1.21.193 255.255.255.224 no snmp trap link-status ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! --More-- no ip address shutdown clockrate 2000000 ! ip classless ! ip http server ! ! control-plane line con 0 logging synchronous line aux 0 line vty 0 4 login ! end i have a laptop plugged into the same switch as the router, with ip address of: 10.1.21.2 255.255.255.224 gateway 10.1.21.1 and i cant ping the subinterface 10.1.21.1 even from the router i cant ping the laptop 10.1.21.2... this seems to simple its embarrassing... can anyone help?
tech-airman wrote: rakem, For 802.1q VLAN encapsulation, you need to assign an IP address to the main interface, in this case fa0/0, for the native VLAN.
DirtySouth wrote: tech-airman wrote: rakem, For 802.1q VLAN encapsulation, you need to assign an IP address to the main interface, in this case fa0/0, for the native VLAN. Actually, if you're doing trunking on a router interface with sub-interfaces, you do NOT want to assign an IP address to the physical interface. I believe this is true for IOS 12.2 & up. You only want to address the sub-interfaces. However, you do need to make sure you do a "No Shutdown" on the physical interface. Rakem, Yes, you should be able to ping the sub-interfaces. You'll need to figure out how to setup trunking on that Dell switch. If it were a Cisco Catalyst 2950 switch, you'd use the "switchport mode trunk" command on the trunking port of the switch.
interface fastethernet 0 ip address 10.1.1.1 255.255.255.0 ! interface fastethernet 0.2 ip address 10.1.2.1 255.255.255.0 encapsulation dot1q 2 ! interface fastethernet 0.3 ip address 10.1.3.1 255.255.255.0 encapsulation dot1q 3
rakem wrote: ! interface FastEthernet0/0.2 encapsulation dot1Q 2 ip address 10.1.21.1 255.255.255.224 no snmp trap link-status
rakem wrote: i have a laptop plugged into the same switch as the router, with ip address of: 10.1.21.2 255.255.255.224 gateway 10.1.21.1 and i cant ping the subinterface 10.1.21.1
rakem wrote: but its a dell switch
tech-airman wrote: DirtySouth, According to Wendell Odom, CCIE #1624, in his book "CCNA Self-Study CCNA ICND Exam Certification Guide", page 309, Example 8-7 - Router Configuration for the 802.1Q Encapsulation Show in Figure 8-19 states: interface fastethernet 0 ip address 10.1.1.1 255.255.255.0 ! interface fastethernet 0.2 ip address 10.1.2.1 255.255.255.0 encapsulation dot1q 2 ! interface fastethernet 0.3 ip address 10.1.3.1 255.255.255.0 encapsulation dot1q 3 Odom states after Example 8-7 that "The router IP address in the subnet of the 802.1Q native VLAN is configured on the physical interface instead of the subinterface...Also note that for the native VLAN, VLAN 1 in this case, the encapsulation command should not be used, or the router will encapuslate frames in an 802.1Q header." So I'm going to follow what Odom says about assigning an IP address to the physical interface for 802.1Q trunk routing. Source: CCNA ICND Exam Certification Guide (CCNA Self-Study, 640-811, 640-801) - http://www.ciscopress.com/bookstore/product.asp?isbn=158720083X&rl=1
Use code EOY2025 to receive $250 off your 2025 certification boot camp!