Subscribe
Accepted Solution

changing gateway settings

Hi All,

Can anyone provide me with a step by step process for changing the default gateway on a 3140HA cluster running 7.3.2.  Thanks.

Dan

Re: changing gateway settings

  1. SSH to controller 1.
  2. Type 'rdfile /etc/rc'
  3. Copy the contents of the /etc/rc output to notepad.  (Might want to save this to a file for safe keeping)
    1. Example
      1. hostname bob
        ifconfig e0a `hostname`-e0a mediatype auto flowcontrol full netmask 255.255.255.0 partner e0a
        ifconfig e0b `hostname`-e0b mediatype auto flowcontrol full partner e0b
        ifconfig e0c `hostname`-e0c mediatype auto flowcontrol full partner e0c
        route add default 1.1.1.1 1
        routed on
        options dns.domainname bob.local
        options dns.enable on
        options nis.enable off
        savecore
  4. Change the notepad contents for the default route statement.
    1. Example
      1. hostname bob
        ifconfig e0a `hostname`-e0a mediatype auto flowcontrol full netmask 255.255.255.0 partner e0a
        ifconfig e0b `hostname`-e0b mediatype auto flowcontrol full partner e0b
        ifconfig e0c `hostname`-e0c mediatype auto flowcontrol full partner e0c
        route add default 2.2.2.2 1
        routed on
        options dns.domainname bob.local
        options dns.enable on
        options nis.enable off
        savecore
  5. Make sure you get this right or your system won't boot. Copy the contents of the modified file to your clipboard.
  6. In the SSH session type 'wrfile /etc/rc'
  7. Paste the contents of your buffer into the SSH session.
  8. Press Ctrl+C to quit the editor.
  9. Verify, type 'rdfile /etc/rc' and make sure there are no extra line breaks or truncations.
  10. Type 'route delete default'
  11. Type 'route add default 2.2.2.2 1'
  12. SSH to controller 2.
  13. Repeat steps abvove

Re: changing gateway settings

Thanks Spence.

Would it be possible from a Windows machine to copy the RC file, make the changes and then copy it back to the filer?

Also, any reboots involved or do the changes take effect immediately.

Re: changing gateway settings

The above procedure is without reboot and is immediate.  I had you change the /etc/rc file so your changes would be in effect on subsequent reboots.

To access the /etc/rc go to \\filer\c$ from a windows machine. When connected if you AD account is not in the administrators group then use the filer\administrator account.

Re: changing gateway settings

>source /etc/rc           = to avoid any reboots

Re: changing gateway settings

In addition to the gateway, we're also looking to change the netmask.   Would I just edit the /etc/rc file with all changes including the gateway and netmask, and then run source /etc/rc to avoid reboots?

what command do I use to see the "running" subnet mask info?

Thanks.

Re: changing gateway settings

You are going to get much more out of your systems if you take a moment to read the system documentation.  Set up a NOW account and read the manpages (manual pages) here:

http://now.netapp.com/NOW/knowledge/docs/ontap/rel7351/html/ontap/cmdref/index.htm

or use the CLI and type 'man ifconfig'