ONTAP Hardware

Gateway for VLAN interfaces

ZelChief

Hello!

 

How to configure gateway for VLAN interfaces? Found information about default gateway https://kb.netapp.com/app/answers/answer_view/a_id/1034563/~/how-to-change-the-default-gateway-to-a-new-gateway- but cant't find any information about configuration gateway for VLAN interfaces. 

1 ACCEPTED SOLUTION

Ontapforrum

Hi,

 

I am bit out-of-touch with 7-mode stuff, but as I remember, the routing table uses the default route when no other known route exists for a given packet's. But, you can add static route to for the destination using the following command.

 

How to use the route add command
https://kb.netapp.com/app/answers/answer_view/a_id/1034525


To add a route to the 10.17.250.0/24 (or whatever destination) network via 10.17.250.1, use the following syntax, using the proper value for the metric:


filer> route add net 10.17.250.0/24 10.17.250.1 1

 

Put that command in /etc/rc, else you will lose this route on a reboot. /etc/rc gets read at boot and sets up your network settings.

steps:
filer>rdfile /etc/rc
Copy all the text that it outputs, past it in a notepad, add the above command below the route add default, and write it back.
filer>wrfile /etc/rc
paste the edited notepad stuff.


This command overwrites the file with everything you enter at this point.

 

Thanks!

 

View solution in original post

1 REPLY 1

Ontapforrum

Hi,

 

I am bit out-of-touch with 7-mode stuff, but as I remember, the routing table uses the default route when no other known route exists for a given packet's. But, you can add static route to for the destination using the following command.

 

How to use the route add command
https://kb.netapp.com/app/answers/answer_view/a_id/1034525


To add a route to the 10.17.250.0/24 (or whatever destination) network via 10.17.250.1, use the following syntax, using the proper value for the metric:


filer> route add net 10.17.250.0/24 10.17.250.1 1

 

Put that command in /etc/rc, else you will lose this route on a reboot. /etc/rc gets read at boot and sets up your network settings.

steps:
filer>rdfile /etc/rc
Copy all the text that it outputs, past it in a notepad, add the above command below the route add default, and write it back.
filer>wrfile /etc/rc
paste the edited notepad stuff.


This command overwrites the file with everything you enter at this point.

 

Thanks!

 

View solution in original post

Announcements
Register for Insight 2021 Digital

INSIGHT 2021 Digital: Meet the Specialists 2

On October 20-22, gear up for a fully digital, totally immersive virtual experience with a downright legendary lineup of world-renowned specialists. Tune in for visionary conversations, solution deep dives, technical sessions and more.

NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public