tftp and configuration changes

Discussion in 'Cisco' started by Reinhard, May 28, 2004.

  1. Reinhard

    Reinhard Guest

    Hello,

    another question. If I use tftp to upload a new configuration - do I
    have to upload the whole configuration file or just the changes?

    For example:

    username hugo1 password 7.......
    username hugo2 password 7.......
    username hugo3 password 7.......
    username hugo4 password 7.......
    username hugo5 password 7.......
    username hugo6 password 7.......
    username hugo7 password 7.......

    should be changed to

    username hugo1 password 7.......
    username hugo2 password 7.......
    username hugo3 password 7.......
    username hugo7 password 7.......

    can I only use

    no username hugo4 password 7.......
    no username hugo5 password 7.......
    no username hugo6 password 7.......
    !
    end <--- I guess this must be in the file

    in a file del_user.txt and do a
    copy tftp://ip/del_user.txt running-config?

    Tahnk you
    Reinhard
     
    Reinhard, May 28, 2004
    #1
    1. Advertising

  2. In article <>,
    Reinhard <> wrote:
    :another question. If I use tftp to upload a new configuration - do I
    :have to upload the whole configuration file or just the changes?

    Just the changes.
    --
    Disobey all self-referential sentences!
     
    Walter Roberson, May 28, 2004
    #2
    1. Advertising

  3. Reinhard

    John Rennie Guest

    If you use "copy tftp run" then the script is applied as if you had sat down
    and typed it in. So you can just send the "no username ..." lines.

    If you use "copy tftp start" then it replaces the startup-config completely,
    so you need to upload the whole configuration. Only the brave use "copy tftp
    start", especially if the router is more than 5 minutes run away :)

    JR

    On 28 May 2004 07:31:43 -0700, (Reinhard) wrote:

    >Hello,
    >
    >another question. If I use tftp to upload a new configuration - do I
    >have to upload the whole configuration file or just the changes?
    >
    >For example:
    >
    >username hugo1 password 7.......
    >username hugo2 password 7.......
    >username hugo3 password 7.......
    >username hugo4 password 7.......
    >username hugo5 password 7.......
    >username hugo6 password 7.......
    >username hugo7 password 7.......
    >
    >should be changed to
    >
    >username hugo1 password 7.......
    >username hugo2 password 7.......
    >username hugo3 password 7.......
    >username hugo7 password 7.......
    >
    >can I only use
    >
    >no username hugo4 password 7.......
    >no username hugo5 password 7.......
    >no username hugo6 password 7.......
    >!
    >end <--- I guess this must be in the file
    >
    >in a file del_user.txt and do a
    >copy tftp://ip/del_user.txt running-config?
    >
    >Tahnk you
    >Reinhard
     
    John Rennie, May 30, 2004
    #3
  4. Reinhard

    Guest

    On 28 May 2004 14:46:19 GMT, -cnrc.gc.ca (Walter
    Roberson) wrote:

    >In article <>,
    >Reinhard <> wrote:
    >:another question. If I use tftp to upload a new configuration - do I
    >:have to upload the whole configuration file or just the changes?
    >
    >Just the changes.


    Only if you are tftping the changes to the running config - ie it acts
    like you pasted the changes in while at the config prompt. You'll
    want the whole thing if you are copying to the startup-config.

    -Chris
     
    , May 30, 2004
    #4
  5. In article <>,
    John Rennie <> wrote:
    :If you use "copy tftp run" then the script is applied as if you had sat down
    :and typed it in. So you can just send the "no username ..." lines.

    That's not quite the case. The lines are not applied "as if you had
    sat down and typed it in": if it were, then changes to (e.g.) ACLs
    could cause you to lose connectivity for the rest of the 'copy' command.
    For IOS devices, the 'copy tftp' command reads the -entire- new config
    in first, and -then- processes it.

    The PIX, on the other hand, only reads one tftp block (512 bytes exactly)
    at a time before processing the commands, which *can* lead you
    into problems if you change interface IPs or routes: if you don't
    restore back the IP or route before the end of the current 512 byte
    swath, the copy won't know how to continue on the PIX.
    --
    "WHEN QUINED, YIELDS A TORTOISE'S LOVE-SONG"
    WHEN QUINED, YIELDS A TORTOISE'S LOVE-SONG. (GEB)
     
    Walter Roberson, May 30, 2004
    #5
  6. Reinhard

    Guest

    On 30 May 2004 09:21:29 GMT, -cnrc.gc.ca (Walter
    Roberson) wrote:

    >In article <>,
    >John Rennie <> wrote:
    >:If you use "copy tftp run" then the script is applied as if you had sat down
    >:and typed it in. So you can just send the "no username ..." lines.
    >
    >That's not quite the case. The lines are not applied "as if you had
    >sat down and typed it in": if it were, then changes to (e.g.) ACLs
    >could cause you to lose connectivity for the rest of the 'copy' command.
    >For IOS devices, the 'copy tftp' command reads the -entire- new config
    >in first, and -then- processes it.


    Excellent point. One most people don't need to consider, but can be
    helpful if you are rearranging something that will affect network
    connectivity.

    For the original poster, I'll also recommend getting familiar with the
    reload command. For example, if the router is not right next to you,
    right before changing your config, run "reload in 10". If the changes
    are sucessful and you still have connectivity, then do "reload abort".
    That way, if you totally dork it up, it'll reboot and save you a trip
    to the router to cycle the power. Saved my but a few times,
    particulary when changing ACLs.


    -Chris
     
    , May 31, 2004
    #6
  7. Reinhard

    Reinhard Guest

    -cnrc.gc.ca (Walter Roberson) wrote in message news:<c97jbr$qoh$>...
    > In article <>,
    > Reinhard <> wrote:
    > :another question. If I use tftp to upload a new configuration - do I
    > :have to upload the whole configuration file or just the changes?
    >
    > Just the changes.


    Thanky you

    Reinhard
     
    Reinhard, Jun 1, 2004
    #7
  8. Reinhard

    Reinhard Guest

    wrote in message news:<>...
    > On 30 May 2004 09:21:29 GMT, -cnrc.gc.ca (Walter
    > Roberson) wrote:
    >
    > >In article <>,
    > >John Rennie <> wrote:
    > >:If you use "copy tftp run" then the script is applied as if you had sat down
    > >:and typed it in. So you can just send the "no username ..." lines.
    > >
    > >That's not quite the case. The lines are not applied "as if you had
    > >sat down and typed it in": if it were, then changes to (e.g.) ACLs
    > >could cause you to lose connectivity for the rest of the 'copy' command.
    > >For IOS devices, the 'copy tftp' command reads the -entire- new config
    > >in first, and -then- processes it.

    >
    > Excellent point. One most people don't need to consider, but can be
    > helpful if you are rearranging something that will affect network
    > connectivity.
    >
    > For the original poster, I'll also recommend getting familiar with the
    > reload command. For example, if the router is not right next to you,
    > right before changing your config, run "reload in 10". If the changes
    > are sucessful and you still have connectivity, then do "reload abort".
    > That way, if you totally dork it up, it'll reboot and save you a trip
    > to the router to cycle the power. Saved my but a few times,
    > particulary when changing ACLs.
    >
    >
    > -Chris



    Thank you, this was one of my first questions - how to recover if
    changes were wrong :) btw isn't the command "reload cancel" ??

    Reinhard
     
    Reinhard, Jun 1, 2004
    #8
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?dHV1Zg==?=

    Wireless router security changes network configuration

    =?Utf-8?B?dHV1Zg==?=, Oct 4, 2005, in forum: Wireless Networking
    Replies:
    1
    Views:
    476
    =?Utf-8?B?cmljaA==?=
    Oct 5, 2005
  2. love0503hk
    Replies:
    2
    Views:
    8,117
    Walter Roberson
    Nov 26, 2003
  3. Dmitry
    Replies:
    4
    Views:
    11,108
    Pete Mainwaring
    Feb 10, 2004
  4. Replies:
    3
    Views:
    13,779
    shane0714
    Mar 30, 2007
  5. Sharad
    Replies:
    0
    Views:
    653
    Sharad
    Feb 13, 2007
Loading...

Share This Page