<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to change &amp;quot;ip default-gateway&amp;quot; via ssh without losin in Switching</title>
    <link>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4757089#M536906</link>
    <description>&lt;P&gt;I have idea I dont no if it work or not,&amp;nbsp;&lt;BR /&gt;you can ssh to next L3 and from there if you have L2 connect to SW then you dont need GW and hence you can access to SW even if GW is change.&lt;BR /&gt;check this solution&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2023 23:03:28 GMT</pubDate>
    <dc:creator>MHM Cisco World</dc:creator>
    <dc:date>2023-01-18T23:03:28Z</dc:date>
    <item>
      <title>how to change "ip default-gateway" via ssh without losing connection</title>
      <link>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4757069#M536902</link>
      <description>&lt;P&gt;I am planning to change management IP for an svi&amp;nbsp; and&amp;nbsp; "ip default-gateway" on cisco C9200L from one subnet to the other but am afraid I might lose connection.&lt;/P&gt;&lt;P&gt;currently mgmt svi and ip default-gateway are on 10.117.20.x and wanted to have them changed to 10.120.20.x&lt;/P&gt;&lt;P&gt;any suggestions to make this smooth is much&amp;nbsp;appreciated.&lt;/P&gt;&lt;P&gt;Thank you as I look forward to reading f&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 22:28:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4757069#M536902</guid>
      <dc:creator>kwihangana</dc:creator>
      <dc:date>2023-01-18T22:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to change "ip default-gateway" via ssh without losin</title>
      <link>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4757083#M536904</link>
      <description>&lt;P&gt;Are you connecting to the same IP address and changing the same IP address, that will break the connection.&lt;/P&gt;
&lt;P&gt;Are you able to get the Console connection and change that (is that possible ?)&lt;/P&gt;
&lt;P&gt;Another option I can think of is for EEM Script to run a certain Time and change the IP automatically (do not save the Config)&lt;/P&gt;
&lt;P&gt;There is another script after an hour or so EEM to reboot the switch (in case you are not able to reach the new IP address)&amp;nbsp; - you can also reload the timer another way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 22:50:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4757083#M536904</guid>
      <dc:creator>balaji.bandi</dc:creator>
      <dc:date>2023-01-18T22:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to change "ip default-gateway" via ssh without losin</title>
      <link>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4757088#M536905</link>
      <description>&lt;P&gt;unfortunately,it is remote and I don't have console server installed.&lt;/P&gt;&lt;P&gt;will try to look into EEM option&lt;/P&gt;&lt;P&gt;Thanks for your help BB&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 23:00:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4757088#M536905</guid>
      <dc:creator>kwihangana</dc:creator>
      <dc:date>2023-01-18T23:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to change "ip default-gateway" via ssh without losin</title>
      <link>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4757089#M536906</link>
      <description>&lt;P&gt;I have idea I dont no if it work or not,&amp;nbsp;&lt;BR /&gt;you can ssh to next L3 and from there if you have L2 connect to SW then you dont need GW and hence you can access to SW even if GW is change.&lt;BR /&gt;check this solution&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 23:03:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4757089#M536906</guid>
      <dc:creator>MHM Cisco World</dc:creator>
      <dc:date>2023-01-18T23:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to change "ip default-gateway" via ssh without losin</title>
      <link>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4757090#M536907</link>
      <description>&lt;P&gt;I have idea I dont no if it work or not,&amp;nbsp;&lt;BR /&gt;you can ssh to next L3 and from there if you have L2 connect to SW then you dont need GW and hence you can access to SW even if GW is change.&lt;BR /&gt;check this solution.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 23:03:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4757090#M536907</guid>
      <dc:creator>MHM Cisco World</dc:creator>
      <dc:date>2023-01-18T23:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to change "ip default-gateway" via ssh without losin</title>
      <link>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4757102#M536909</link>
      <description>&lt;P&gt;You may want to create a default route for the new subnet and then remove the default gateway. As long the next hop for the default route is valid, you should be able to get back to the switch. In order to add a default route, you would need to enable "ip routing" on the switch.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;ip default-gateway 10.117.20.x&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ip route 0.0.0.0 0.0.0.0&amp;nbsp;10.120.20.x&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Once this is completed and you can access the device, you can go back and change the default route back to default gateway or leave it as it is.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;ip default-gateway 10.120.20.x&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;no ip route 0.0.0.0 0.0.0.0&amp;nbsp;10.120.20.x&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 23:25:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4757102#M536909</guid>
      <dc:creator>Reza Sharifi</dc:creator>
      <dc:date>2023-01-18T23:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to change "ip default-gateway" via ssh without losin</title>
      <link>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4757105#M536910</link>
      <description>&lt;P&gt;Thank you Sharifi,&lt;/P&gt;&lt;P&gt;make sense&lt;/P&gt;&lt;P&gt;I will give it a try and let you know&lt;/P&gt;&lt;P&gt;Much appreciated&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 23:31:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4757105#M536910</guid>
      <dc:creator>kwihangana</dc:creator>
      <dc:date>2023-01-18T23:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to change "ip default-gateway" via ssh without losin</title>
      <link>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4757110#M536911</link>
      <description>&lt;P&gt;Please proceed with caution, as most likely in the transition you will lose your connection, and you need to re-establish the connection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Also, since you are completely changing the subnet, make sure the route is valid. It would have been much easier if you were using the same subnet/IP.&lt;/P&gt;
&lt;P&gt;HTH&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 23:49:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4757110#M536911</guid>
      <dc:creator>Reza Sharifi</dc:creator>
      <dc:date>2023-01-18T23:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to change "ip default-gateway" via ssh without losin</title>
      <link>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4757375#M536919</link>
      <description>&lt;P&gt;An alternative would be to put the config commands into a text file and then on the&amp;nbsp;9200 tftp the file to running config. This should allow all commands to be executed. As&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/326194"&gt;@Reza Sharifi&lt;/a&gt;&amp;nbsp;reminds us you should proceed with caution so I suggest these steps:&lt;/P&gt;
&lt;P&gt;1) put the commands into a text file on a machine that can function as a tftp server.&lt;/P&gt;
&lt;P&gt;2) on 9200 use reload in 10 to schedule a reload&lt;/P&gt;
&lt;P&gt;3) on 9200 tftp the file to running config&lt;/P&gt;
&lt;P&gt;4) if the process was successful you should be able to access the 9200 and then cancel the scheduled reload. If the process was not successful the scheduled reload will revert back to the original working config and you can figure out why it did not work and try again.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 07:34:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4757375#M536919</guid>
      <dc:creator>Richard Burts</dc:creator>
      <dc:date>2023-01-19T07:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to change "ip default-gateway" via ssh without losin</title>
      <link>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4757427#M536924</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;You a have few options:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;console on the switch&lt;/LI&gt;
&lt;LI&gt;remote access the switch from the L3 core sourcing the connection from its own SVI&lt;/LI&gt;
&lt;LI&gt;provide the switch with a default route&amp;nbsp; ( If only ip routing is enabled)&lt;/LI&gt;
&lt;LI&gt;make the changes to a txt file, install that file (tftp) to the flash of the switch and then copy that file from the flash to the running-config of the switch, save the changes&lt;/LI&gt;
&lt;LI&gt;Access the switch from a neighbor switch via its l2 mac address using clustering ( very doubtful this one as its an OLD hack that won’t be supported in new switches and software)&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 19 Jan 2023 08:53:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4757427#M536924</guid>
      <dc:creator>paul driver</dc:creator>
      <dc:date>2023-01-19T08:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to change "ip default-gateway" via ssh without losin</title>
      <link>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4760184#M537160</link>
      <description>&lt;P&gt;Tried this last&amp;nbsp;night and lost remote connection as soon as I typed: ip routing.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 17:50:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4760184#M537160</guid>
      <dc:creator>kwihangana</dc:creator>
      <dc:date>2023-01-23T17:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to change "ip default-gateway" via ssh without losin</title>
      <link>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4760245#M537166</link>
      <description>&lt;P&gt;no worries let us know how that goes..I have tried before this practice all good and tested.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 20:37:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4760245#M537166</guid>
      <dc:creator>balaji.bandi</dc:creator>
      <dc:date>2023-01-23T20:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to change "ip default-gateway" via ssh without losin</title>
      <link>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4760603#M537179</link>
      <description>&lt;P&gt;Sorry to hear that the changes did not go well. I hope that you had used my suggestion about scheduling a reload.&lt;/P&gt;
&lt;P&gt;In reading through the discussion and focusing on the suggestion about enabling ip routing the outcome might have been predicted. The switch had been operating as layer 2 and using the default-gateway command for access to remote resources. But as soon as you enter ip routing the switch becomes a layer 3 device and the default-gateway command is ignored. I wonder if you had entered the command for the static default route before the ip routing command if things might have worked.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 07:14:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4760603#M537179</guid>
      <dc:creator>Richard Burts</dc:creator>
      <dc:date>2023-01-24T07:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to change "ip default-gateway" via ssh without losin</title>
      <link>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4764200#M537407</link>
      <description>&lt;P&gt;Thanks Richard,that's exactly how I did it,started with ip routing and lost connection immediately.&lt;/P&gt;&lt;P&gt;I have a couple of them to be re-iped ,am going to try again starting with default route first and ip routing second.&lt;/P&gt;&lt;P&gt;I will kee you posted.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 18:02:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4764200#M537407</guid>
      <dc:creator>kwihangana</dc:creator>
      <dc:date>2023-01-27T18:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to change "ip default-gateway" via ssh without losin</title>
      <link>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4764204#M537408</link>
      <description>&lt;P&gt;I will run lab and check my suggestion.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 18:05:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4764204#M537408</guid>
      <dc:creator>MHM Cisco World</dc:creator>
      <dc:date>2023-01-27T18:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to change "ip default-gateway" via ssh without losin</title>
      <link>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4764569#M537472</link>
      <description>&lt;P&gt;You might also try my suggestion of putting the commands into a text file and tftp the file to running config. (and schedule a reload before you tftp. if the changes are successful you connect again and cancel the reload and if there was some problem with the changes the reload reverts to the previous config.)&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2023 07:14:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4764569#M537472</guid>
      <dc:creator>Richard Burts</dc:creator>
      <dc:date>2023-01-29T07:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to change "ip default-gateway" via ssh without losin</title>
      <link>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4764598#M537474</link>
      <description>&lt;P&gt;good suggestion&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2023 09:38:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/how-to-change-quot-ip-default-gateway-quot-via-ssh-without/m-p/4764598#M537474</guid>
      <dc:creator>MHM Cisco World</dc:creator>
      <dc:date>2023-01-29T09:38:37Z</dc:date>
    </item>
  </channel>
</rss>

