Avatar of pzozulka
pzozulka
 asked on

Cisco SG300: Default Gateway

Here is the "show ip route" of switch 1. What does "is directly connected" mean?
i1lvsw01#show ip route
Maximum Parallel Paths: 1 (1 after reset)
IP Forwarding:          enabled

Codes: C - connected, S - static, D - DHCP

S  0.0.0.0/0          [1/1] via  10.0.15.254  3290:58:3            vlan 2
C  10.0.0.0/24        is directly connected                        vlan 101
C  10.0.15.248/29     is directly connected                        vlan 2
C  10.0.32.0/24       is directly connected                        vlan 320
C  10.0.64.128/25     is directly connected                        vlan 649
C  10.10.0.0/24       is directly connected                        vlan 1000
C  10.20.0.0/24       is directly connected                        vlan 1020
C  10.30.0.0/24       is directly connected                        vlan 1030

Open in new window


We bought a 2nd (same model) switch, and now I need to configure the default gateway.

I ran the command "ip route 0.0.0.0 0.0.0.0 10.0.15.254", but here's all I see:
i1lvsw02#show ip route
Maximum Parallel Paths: 1 (1 after reset)
IP Forwarding:          enabled

Codes: C - connected, S - static, D - DHCP

C  10.10.0.0/24          is directly connected,            vlan 1000

Open in new window


Please keep in mind this 2nd switch is not in production. It's just sitting on my desk with my laptop connected to it. I'm still trying to finish configuring it.

Can't seem to make the 2nd switch say:
S  0.0.0.0/0          [1/1] via  10.0.15.254  3290:58:3            vlan 2
Switches / Hubs

Avatar of undefined
Last Comment
pzozulka

8/22/2022 - Mon
joinaunion

Does this thread apply to your situation?
https://supportforums.cisco.com/thread/2153236
ASKER CERTIFIED SOLUTION
Miftaul H

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
lruiz52

Looks like the first switch is also doing routing. Is switch 2 going to replace switch 1?

"is directly connected" means that the a path to the said network exist on the router/switch

To configure the second switch as a router.

Config t
         ip routing
         interface vlan 2
         IP address 10.0.15.xxx 255.255.255.248
         Exit
         ip route 0.0.0.0 0.0.0.0 10.0.15.254
         end
         wr
Show ip route


You will also need to create all the vlan that switch 1 has on switch 2
pzozulka

ASKER
Miftaul:
Default gateway on the 2nd switch will be only required to remotely manage the switch. Otherwise, as long as the link between the switches are trunk, all traffic will pass through at layer2 automatically.
Both switches are configured to be running in L3 mode. Does the above statement still hold true?
Your help has saved me hundreds of hours of internet surfing.
fblack61