cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
612
Views
0
Helpful
4
Replies

Removal of ip route command

mahesh18
Frequent Contributor
Frequent Contributor

         Hi all,

Need to confirm Network config below

We  have client where they are using layer 3 switch with no ip routing enabled.

It has default-gateway  command configured.

Need to confirm that ip route command is used for layer 3 switch only and it switch is used as layer 2 only it is ok to be removed?

Thanks

Mahesh

2 Accepted Solutions

Accepted Solutions

Reza Sharifi
Hall of Fame Master Hall of Fame Master
Hall of Fame Master

Hi Mahesh,

Yes, if the switch is layer-2 only, you don't need the IP routing command, you just need the ip default-gateway command.

HTH

View solution in original post

acampbell
Advocate
Advocate

Mahesh,

Running default-gateway is OK.

Example

!

no ip routing

!

interface vlan 555

description *** Management Vlan **

ip address 10.5.5.5 255.255.255.0

no shut

!

ip default-gateway 10.5.5.254

!

So basically the ip address 10.5.5.5 is just for managing the swtch.

The switch is only carrying out layer 2 functions

Regards,
Alex.
Please rate useful posts.

Regards, Alex. Please rate useful posts.

View solution in original post

4 Replies 4

Reza Sharifi
Hall of Fame Master Hall of Fame Master
Hall of Fame Master

Hi Mahesh,

Yes, if the switch is layer-2 only, you don't need the IP routing command, you just need the ip default-gateway command.

HTH

mahesh18
Frequent Contributor
Frequent Contributor

Hi Reza,

Many thanks again

Mahesh

acampbell
Advocate
Advocate

Mahesh,

Running default-gateway is OK.

Example

!

no ip routing

!

interface vlan 555

description *** Management Vlan **

ip address 10.5.5.5 255.255.255.0

no shut

!

ip default-gateway 10.5.5.254

!

So basically the ip address 10.5.5.5 is just for managing the swtch.

The switch is only carrying out layer 2 functions

Regards,
Alex.
Please rate useful posts.

Regards, Alex. Please rate useful posts.

mahesh18
Frequent Contributor
Frequent Contributor

Hi Alex,

Thanks for additional info

Regards

Mahesh

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers