ONTAP Discussions

changing gateway settings

daniel_kaiser
49,079 Views

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

1 ACCEPTED SOLUTION

spence
49,079 Views
  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

View solution in original post

6 REPLIES 6

spence
49,080 Views
  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

daniel_kaiser
49,079 Views

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.

spence
49,079 Views

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.

baijulal
49,079 Views

>source /etc/rc           = to avoid any reboots

daniel_kaiser
49,079 Views

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.

shaunjurr
49,079 Views

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'

Public