• October 31, 2024, 11:37:49 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Pages: 1 [2]

Author Topic: VLAN Routing  (Read 25135 times)

PacketTracer

  • Level 4 Member
  • ****
  • Posts: 441
Re: VLAN Routing
« Reply #15 on: November 06, 2019, 09:05:15 AM »

Hello,

Quote
I tried adding a "ip route 192.168.2.0 255.255.255.0 192.168.2.254"  but this is rejected as no reponse from nexthop.

A router (or a layer 3 switch acting as a router) 'knows' any directly connected network per default via the ip configuration of its network interfaces. Hence, you mustn't configure static routes for destinations that represent directly connected networks and where the next hop would be a local IP address of the router itself (and your switch correctly refuses such an attempt). If you look at the routing table of your switch, you would see, that networks 192.168.0.0/24 and 192.168.2.0/24 are already present and marked as "directly connected" (or with a metric value of 1).

Moreover it is your Internet router where you have to place a route for 192.168.2.0/24 (with next hop = 192.168.0.254), not the switch (it already has one implicitely).

Quote
What appart from default route is the static route configuration useful for ?

For example, if you had a 3rd router connected to 192.168.2.0/24 (assumed to have the address 192.168.2.253), that connects to a 3rd LAN 192.168.3.0/24, you would have to configure the route "net 192.168.3.0/24 next hop 192.168.2.253" within your switch.

PT
« Last Edit: November 09, 2019, 03:15:40 AM by PacketTracer »
Logged
Pages: 1 [2]