Book now with code EOY2025
sw1(config)#int vlan 10 sw1(config-if)#ip address 10.10.10.2 255.255.255.0 sw1(config-if)#ip default-gateway 10.10.10.1 sw1(config)#exit sw1#conf t sw1(config)#int vlan 11 sw1(config-if)#ip address 11.11.11.2 255.255.255.0 sw1(config-if)#ip default-gateway 11.11.11.1 sw1(config)#exit
Webmaster wrote: You should set the default gateway to the router.
Webmaster wrote: You should set the default gateway to the router. sw1(config)#int vlan 10 sw1(config-if)#ip address 10.10.10.2 255.255.255.0 sw1(config-if)#ip default-gateway 10.10.10.1 sw1(config)#exit sw1#conf t sw1(config)#int vlan 11 sw1(config-if)#ip address 11.11.11.2 255.255.255.0 sw1(config-if)#ip default-gateway 11.11.11.1 sw1(config)#exit This part is NOT related to InterVLAN routing on a l2 switch and router on a stick.interface vlan 11 configures a management VLAN interface. It's a virtual interface that can be used to manage the switch. The default gateway in that section is for when you want to manage the switch from a different subnet. In short: a layer2 switch's ports cannot be assigned IP address, so you assign them to a Switched Virtual Interface. You can also have only one active vlan interface on a l2 switch so there's no use in configuring multiple either. In your case you can skip the above section that configures the vlan 'interfaces' (not vlans, vlan interfaces) entirely. And set the default gateway correctly and it should work.
Webmaster wrote: Since there's only one router, and directly connected networks are automatically added to the routing table, you don't need a routing protocol. Nevertheless, as Mike posted, please post your show ip route output. "discontiguous networks" does not apply here. Those are networks in which two or more subnets are interconnected by one or more networks that have a subnet from a different major network. Sorry for that bad explanation. Anyway, I agree it's probably something simple. I killed a very similar working config at home just a couple of days ago. I'll set it up again and will post my working setup. That will be on a 2600+2950. brb...
carveone wrote: Webmaster wrote: You should set the default gateway to the router. Just to throw in my 2cents in case he misunderstands The default gateway on the PCs needs to be set to the router. You have to think "where does the pc send the packet and how does it know to send it there"
PS: While on the topic of vlans, is there any way of finding out who the vtp server is in a pile of switches? show vtp isn't telling me. Guess I have to telnet to each one and do a "show vtp" on each...
remyforbes777 wrote: Your PC's should be set to 10.10.10.1 as their DG and 11.11.11.1 as the other DG. Took me a second to look over this entire post and see that but better late than never.
persona wrote: PC1 and 2 have 10.10.10.1 as their Gateway. PC3 and 4 have 11.11.11.1 as their Gateway. I can ping from any PC to the router. I can ping from PC1 (10.10.10.2 to router sub-interface 11.11.11.1) BUt I cannot ping from PC1 to PC3(11.11.11.2).
markzab wrote: Wasn't sure if I had the terminology correct. Guess not. Wouldn't his problem be solved if he just didn't have 2 completely different networks, rather just 2 subnets in the same network? Like instead of the 11. network, just have another subnet of the 10. network?
persona wrote: I have 1 2600 router, 1 switch (2900), and 10 pcs connected to the switch and the switch is connected to the router forming the so-called "router-on a stick".
mikej412 wrote: persona wrote: I have 1 2600 router, 1 switch (2900), and 10 pcs connected to the switch and the switch is connected to the router forming the so-called "router-on a stick". Is this a real router and switch and PCs..... or Boson NetSim?
Still I cannot ping from PC1 to PC3
markzab wrote: I'm so lost.
interface Ethernet0/0 no ip address half-duplex ! interface Ethernet0/0.10 encapsulation dot1Q 10 ip address 10.10.10.1 255.255.255.0 ! interface Ethernet0/0.20 encapsulation dot1Q 20 ip address 11.11.11.1 255.255.255.0
Router#sh ip ro 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 not set 10.0.0.0/24 is subnetted, 1 subnets C 10.10.10.0 is directly connected, Ethernet0/0.10 11.0.0.0/24 is subnetted, 1 subnets C 11.11.11.0 is directly connected, Ethernet0/0.20
interface FastEthernet0/1 switchport access vlan 10 ! interface FastEthernet0/2 switchport access vlan 20 ! interface FastEthernet0/12 switchport mode trunk switchport nonegotiate
persona wrote: it is Boson Sim. Might be the problem? if yes how come nobody mentioned it b4?
Webmaster wrote: markzab wrote: Wasn't sure if I had the terminology correct. Guess not. Wouldn't his problem be solved if he just didn't have 2 completely different networks, rather just 2 subnets in the same network? Like instead of the 11. network, just have another subnet of the 10. network? Well, that's also a matter of terminology, in this situation, network and subnet are interchangeable (this is actually mentioned in the RIP or routing tutorial RFC). In the bigger scale, every IP network is a 'subnet'. Unless you use classful routing protocols, autosummarization and other ways of assuming the classful mask, the router doesn't care. The routes to the networks attached to the subinterfaces will be in it (given the interfaces are actually all up, rather than just configured to be up, and the other cable isn't a cross-over, or something entirely else). It doesn't matter whether these are routes to an IP subnet or major IP network. The routes will point to the subnets (the router 'will' notice they are subnetted) and if the PCs are then configured correctly, it should work... That said, when you set up a practice lab like this, I recommend to start with simple classful addresses. I usually use 10.0.0./8 and 11.0.0.0/8 12.. etc. because it takes less time to type than 192.168.0.1 Eventually you will want to start practicing using subnetted and variable subnetted networks, but there's no shame in wasting address space in a CCNA practice lab.
persona wrote: not mentioned before on any Boson forum I meant, not here. It is not documented that is.
Use code EOY2025 to receive $250 off your 2025 certification boot camp!