Send configuration file to Cisco router

Where can I find a C programm that send configuration file to Cisco router from linux workstation?

I wonder what kind of config changes you are making and whether that may have an impact on SSH. For example if you change the host name or change the domain name then the keys need to be regenerated.
HTH
Rick

Similar Messages

  • Edit configuration file saved in router/switch flash? (IOS)

    Hi guys,
    I hope it is possible to edit configuration file if we have it in our switch/router flash memory?
    Something like "nano" or "vim" on unix? Maybe you know any hidden commands to do this?

    Cisco routers and switches store (at least) both the startup and running configurations in memory. You edit the running configuration using Cisco's built-in command line interface when you change from EXEC (enable) mode to config mode. There is no built-in Unix type editor. The commands available in config mode vary according to the platform and OS image you have loaded. There are literally thousands of pages of command references out there explaining them all.
    When you complete your configuration tasks and drop back into EXEC level, you normally synchronize the running and startup configurations ("copy runnning-config startup-config" or simply "copy r s"),

  • Configure ATM on cisco router 1841 for PPPoE

    Hi Geeks,
    I have searched the net with answers but still no success to achieving what I needed.
    My scenario, I 'am replacing  my Netcom with a cisco 1841 router. Now, I need advise or better guided steps on how to configure my ATM interface for PPPoE to connect to my ISP network. With the netcom its easy since its uses GUI  and connection picks up automatically as long username and password are correct to connect to ISP.
    Appreciate any help here?
    Thank you.

    from the sounds of it you purchased a '4 port WAN Interface Card' to be put into your router.
    (the HWIC4 cannot be used to create a 'DMZ' as you require; you will need additional Ethernet interfaces, not WAN interfaces)
    a few things first...
    1) yes you have increased the routers ability to serve more than one network. with an HWIC4, you can configure upto 4 more WAN segments that the router can route for.
    2) if you had a 4 port Ethernet Card, then you could configure each interface to act like a DMZ, but without proper security in place, it will not be much more than a 'hop' from one network to another.
    NOTE: you need to build very detailed, granular access lists to filter traffic if you wish to have any chance of provding the slightest amount of security to your inside users & hosts.
    (a firewall will provide you better security control and DMZ definition and is a recommended best practice for the solution you're looking for)
    your DMZ definition says it all, "...subnet between a trusted network and an untrusted network..."
    firewalls inherently provide a 'trusted' interface, an 'untrusted' interface and one or more 'less than trusted' or DMZ interfaces.
    routers do not inherently provide this type of security segregation. you should be using a firewall to provide your solution and security in this case.

  • Bad Characters writing an output file from CISCO router

    Hi,
    I'm making a backup of an accessrouter using telnet. I want to create a log file,so I redirect the stdout to a file this way:
    System.setOut(new PrintStream(new BufferedOutputStream(new FileOutputStream("c:\\Maint\\Operator\\accounting\\accounting.txt")),true,"US-ASCII"));
    When I use the monitor as stdout there are no problems, but when I do the redirection, some extrange characters appear in the log file:
    AccessRouter#
    copy system:running-config tftp://10.1.3.34/Maint/Operator/Backu$:running-config tftp://10.1.3.34/Maint/Operator/Backup /tempo/Baonfig tftp://10.1.3.34/Maint/Operator/Backup/tempo/Bac kup/BBDDa://10.1.3.34/Maint/Operator/Backup/tempo/Backup/BBDDan dEquip/1334/Maint/Operator/Backup/tempo/Backup/BBDDandEquip/13_
    I don't know where's the problem,
    Please help !
    Thank you in advance. Best Regards.

    What are you using to view the file? What happens if you use the default encoding instead of US-ASCII? It looks to me like either the application you are using to view the file can't interpret those characters or there are characters in the stream that don't convert well to US-ASCII.

  • Configure a Cisco router with Username and Password.

    Hello Guys,
    Am quite new in cisco and i need to configure an 891 cisco router,can someone please show me step by step configuration commands for configuring Username and Secret Password.I would like the router to ask for "Username"and " Password" anytime i want to login the router through telnet.I also want to know if i have to erase the default configurations on the router first, before i start the configuration,and how it should be done in other not to loose the router whiles working on it.Thanks for your usual quick responds.
    Regards,
    Eben.

    Hello Eben,
    Peter has suggested to use SSH because of the fact that telnet data is sent in clear text, so someone with the right tools could easily find your password and your device could/would be compromised. It is security best practice. SSH is encrypted.
    Technically speaking you do not need to change the hostname / domain name. But majority of Cisco documentation follow this method.
    In case you are interested on how to do this without change... see below.
    Router(config)#
    Router(config)#crypto key generate rsa modulus 1024
    % Please define a hostname other than Router.
    Router(config)#crypto key generate rsa modulus 1024 label CISCO
    The name for the keys will be: CISCO
    % The key modulus size is 1024 bits
    % Generating 1024 bit RSA keys, keys will be non-exportable...[OK]
    Router(config)#
    *Jul 11 13:27:51.431: %SSH-5-ENABLED: SSH 1.99 has been enabled
    Router(config)#
    The normal cases just as shown in Cisco documentation, the parser (without a label on the crypto key) would force us to change the hostname, create a domain name. I think the domain name is there to put a label on the keys.
    Router(config)#crypto key generate rsa general-keys modulus 1024
    % Please define a hostname other than Router.
    Router(config)#crypto key generate rsa
    % Please define a hostname other than Router.
    Router(config)#hos
    Router(config)#hostname ISR
    lexnetISR(config)#crypto key generate rsa general-keys modulus 1024
    % Please define a domain-name first.
    ISR(config)#ip domain name net.com
    ISR(config)#exit
    ISR(config)#crypto key generate rsa general-keys modulus 1024
    The name for the keys will be: ISR.net.com
    % The key modulus size is 1024 bits
    % Generating 1024 bit RSA keys, keys will be non-exportable...[OK]

  • Configure a Cisco router with telnet Username and Password.

    Hello Guys,
    Am quite new in cisco and i need to configure an 891 cisco router,can someone please show me step by step configuration commands for configuring Username and Secret Password.I would like the router to ask for "Username"and " Password" anytime i want to login the router through telnet.I also want to know if i have to erase the default configurations on the router first, before i start the configuration,and how it should be done in other not to loose the router whiles working on it.Thanks for your usual quick responds.
    Regards,
    Eben.

    From this forum description:
    Note: If your questions pertain to specific Cisco technology or solution, please post them in the proper community by leveraging the Community Directory so that folks who have expertise within those areas can engage and collaborate to it.
    You should consider to delete your question here and recreate in in more appropriate forum. You can wish for quick response then ...
    Edit: Thread has been moved by moderator, the notice no longer apply.

  • How to configure IPS 4240 - K9 to send log file to syslog server

    I am looking for the commands in how to configure IPS 4240-k9 to send log file to SYSLOG server. If anybody has or came across similer issue please advice.
    Thanks in advanced.

    Ali -
    I am sorry to tell you, but the Cisco IPS Sensors do not send Syslog messages. Your only options for sending signature event information are:
    SDEE (an TLS Encrypted XML formatted message) the sensor is the SDEE Host and your event receiver (MARS, IME, Intelitactics, etc) is the client.
    SNMP Traps - You need to set the "Action" on each signature you want the sensor to send a trap.
    - Bob

  • Does anyone configure cisco router with MGCP to link Call agent Clarent ?

    hi,
    We require to configure As5300 with MGCP to link Clarent call agent. Does anyone have cisco router configuration ?
    thanks.
    best regards.
    fred.

    Below is the sample configuration for the 5300 to Call-Agent. This is also dependant on which package is configured on the call-agent so we can configure it accordingly. Hope this helps.
    version 12.3
    no service pad
    service timestamps debug datetime msec localtime show-timezone
    service timestamps log datetime msec localtime show-timezone
    service password-encryption
    hostname AS5300-5
    boot system tftp c5300-is-mz.123-2.T1 171.68.191.135
    logging buffered 100000 debugging
    enable password xxxx
    backhaul-session-manager
    set bh5300-vsc1 client nft
    group bhgrp1 set bh5300-vsc1
    session group bhgrp1 172.16.20.35 7007 172.16.20.28 7007 0
    isdn switch-type primary-ni
    isdn voice-call-failure 0
    no scripting tcl init
    no scripting tcl encdir
    voice call carrier capacity active
    voice class codec 1
    codec preference 1 g723r63
    codec preference 2 g711ulaw
    no voice hpi capture buffer
    no voice hpi capture destination
    dial-control-mib retain-timer 240
    dial-control-mib max-size 600
    controller T1 0
    framing esf
    clock source line primary
    linecode b8zs
    pri-group timeslots 1-24 service mgcp
    controller T1 1
    framing esf
    clock source line secondary 1
    linecode b8zs
    ds0-group 0 timeslots 1-24 type none service mgcp
    controller T1 2
    framing esf
    clock source line secondary 2
    linecode b8zs
    controller T1 3
    framing esf
    clock source line secondary 3
    linecode b8zs
    interface Ethernet0
    no ip address
    no ip mroute-cache
    shutdown
    interface Serial0
    no ip address
    no ip mroute-cache
    shutdown
    clockrate 2015232
    no fair-queue
    interface Serial1
    no ip address
    no ip mroute-cache
    shutdown
    clockrate 2015232
    no fair-queue
    interface Serial2
    no ip address
    no ip mroute-cache
    shutdown
    clockrate 2015232
    no fair-queue
    interface Serial3
    no ip address
    no ip mroute-cache
    shutdown
    clockrate 2015232
    no fair-queue
    interface Serial0:23
    no ip address
    isdn switch-type primary-ni
    isdn bind-l3 backhaul bh5300-vsc1
    no cdp enable
    interface FastEthernet0
    ip address 172.16.20.28 255.255.255.192
    no ip mroute-cache
    duplex full
    speed auto
    no cdp enable
    ip classless
    ip route 0.0.0.0 0.0.0.0 172.16.20.1
    no ip http server
    radius-server host 172.21.59.165 auth-port 1645 acct-port 1646
    radius-server key xxxxxxxx
    radius-server vsa send accounting
    voice-port 0:23
    voice-port 1:0
    mgcp
    mgcp call-agent 172.16.20.35 2427 service-type mgcp version 0.1
    mgcp quarantine mode loop
    mgcp package-capability dtmf-package
    mgcp package-capability rtp-package
    mgcp package-capability as-package
    mgcp default-package gm-package
    mgcp profile default
    timeout tsmax 100
    no max1 lookup
    dial-peer cor custom

  • How to configure one dsl connection and one public ip in cisco router and map to one interface for using exchange server

    how to configure one dsl connection and one public ip in cisco router and map to one interface for using exchange server

    Hi ,
     Have you got any additional public IP Address from your service provider , If yes on router you can have static route for those additional IP Address pointing to your ASA  outside interface . 
    Accordingly you can configure NAT 
    HTH
    Sandy . 

  • In my Scenario i want to configure file sender Adapter.But in Parameters

    In my Scenario i want to configure file sender Adapter.But in Parameters, for Adapter Engine  Column It Shows blank,Integration Server will not appear for that column.Finally It Gives Error- Adapter Engine is not Defined.
    What is the Reason for this...
    Please Clarify ASAP...
    Thanks..

    Hi Chiru,
          It seems that you may have missed some steps while doing the configuration. After doing all the activities in SLD and IR and activating all the components created in IR it should work.
          Plz check that you have selected as Adapter Type as File and correct namepace in the next field. Transport Protocol as File System (NFS), Message Protocol as File and I hope after all these information you will get Integration Server in the Adapter Engine field.
        If the problem persists please revert back.
    Warm Regards,
    Subhasha Ranjan

  • RFC Sender configuration : RFC - XI - FILE

    Hi All,
    I read the post at RFC Sender Configuration in Asynchronous Mode and I have the same problem for the configuration.
    I want to do a simple asynchronous RFC scenario ( RFC -> XI -> FILE) but I keep getting errors. Do I need to create a BPM to make it work? I'm using XI 3.0
    Thanks

    Hi,
    For RFC to File Scenario, if you will be calling the RFC from any ABAP report then the import parameters will be passed to File.
    Here you can use the Concept of Dummy RFC as below.
    Lets say RFC1 --> Original RFC
    RFC2 ---> Dummy RFC
    1. Create one Function Module (RFC 2) in which take the import parameters similar to the  RFC -1 Output parameters.
    2. Now in ABAP report call the RFC-1 and get the Output in export parameters and pass it to RFC-2 as import parameters.
    3. In XI import RFC-2 and map the import parameters to the Receiver File.
    SO your purpose to pass the Output of RFC-1 to file in async way will be resolved .
    Thanks
    Swarup

  • Configuring Cisco Router for use with Syslog Server

    Configuring Cisco Router for use with Syslog Server:
    Does anyone know of a good doc for this?
    -Ashley

    Start with that one: http://security-planet.de/wp-content/uploads/2008/12/logging-ios.pdf
    And if you need more informations, just ask what you want to achieve.
    Don't stop after you've improved your network! Improve the world by lending money to the working poor:
    http://www.kiva.org/invitedby/karsteni

  • What's "SAVE" configuration command for Cisco switch/ router?

    What's "SAVE" configuration command for Cisco switch / router? I know Switch#copy running-config startup-config works well,
    but so long, any other command that easy to remenber?

    What's "SAVE" configuration command for Cisco switch / router? I know Switch#copy running-config startup-config works well, but so long,
    any other command that easy to remenber?
    yes, here: Switch#write,and want to know more about the Cisco switch, please visit:http://www.3anetwork.com/cisco-switches-price_c1

  • Configuring wireless on cisco 877w router

    Hi all
    I have a Cisco 877W wireless/ADSL router and having great difficulty with configuring wireless on this router. Here is a quick summary.
    1. The ADSL is configured to obtain public IP from the ISP
    2. Default interface vlan 1 is configured with an IP address
    3. I went into vlan database, tried to configure multi vlans and the router prompted me that it can only have max 2 vlans. Hence what's the use of up to 16 different SSID using wireless?
    4. I've setup DHCP scope on the router to give out IP address to clients (both wireless and wired)
    5. I'm able to configure WPA-PSK on the router and was able to connect wirelessly to the router but I won't be able to obtain an IP address from the router
    6. There are two scenarios that I'd like to do:
    A. Setup wireless to connect to the same subnet as what's on vlan1
    B. Setup wireless to connect to a different subnet to vlan1
    For the life of me, I could not find docs on Cisco web site that shows me how to exactly this. I found some documents that use interface F0 as a trunk port and treat the interface Dot11Radio0 with sub-interfaces. I don't connect this router to a switch (standalone router) so how can I do this? Please point me to some docs.
    Thanks in advance for your help.

    My configuration works for wireless no authentication, but failed for WPA-PSK:
    ip dhcp excluded-address 172.16.250.1
    ip dhcp pool TEST
    import all
    network 172.16.250.0 255.255.255.0
    default-router 172.16.250.1
    bridge irb
    interface FastEthernet4
    description $ES_WAN$
    ip address dhcp client-id FastEthernet4
    ip nat outside
    ip virtual-reassembly
    duplex auto
    speed auto
    interface Dot11Radio0
    no ip address
    ssid 111
    vlan 1
    authentication open
    authentication key-management wpa
    wpa-psk ascii 0 Cisco1234
    speed basic-1.0 2.0 5.5 6.0 9.0 11.0 12.0 18.0 24.0 36.0 48.0 54.0
    station-role root
    interface Dot11Radio0.1
    encapsulation dot1Q 1 native
    no cdp enable
    bridge-group 1
    bridge-group 1 subscriber-loop-control
    bridge-group 1 spanning-disabled
    bridge-group 1 block-unknown-source
    no bridge-group 1 source-learning
    no bridge-group 1 unicast-flooding
    interface Vlan1
    no ip address
    bridge-group 1
    bridge-group 1 spanning-disabled
    interface BVI1
    ip address 172.16.250.1 255.255.255.0
    ip nat inside
    ip virtual-reassembly
    After I configured the same wpa-psk key on the XP computer using windows zero configuration and tried to connect to the wireless work, I got the following errors on the router:
    *Mar 1 03:00:51.623: *** Not encrypted dot1x packet from 000c.f123.25cf has been discarded
    *Mar 1 03:00:52.623: %DOT11-7-AUTH_FAILED: Station 000c.f123.25cf Authentication failed
    What could be wrong? Thanks!

  • How can I programmatically send a configuration file to an RT target?

    I'm creating an XML configuration file on the host with a configuration VI.  This allows me to parameterize the app VIs to allow changing the number and allocation of ports, controls, and indicators.  The configuration file is used by both the host main app VI and target VI.  When the operator clicks the save button on the configuration VI that exports the XML file, I'd like it to automatically transfer the file to the RT target (a PXI).  How can I do this?
    I saw that there is an Internet Toolkit that provides FTP, but I have a hard time justifying $500 just to copy a file over.  I suppose I could flatten out the XML into a string and send that to the target when the app starts rather than send a file.  Any better ideas?
    Keith.

    Hello,
    You can also use the FTP Put File.vi to programmatically transfer a file to your Real-Time Target, however, for this you will need the LabVIEW Internet Toolkit.
    Kameralina
    Ask NI (ni.com/ask)
    Search The KnowledgeBase
    NI Developer Zone
    Measure It. Fix It. ni.com/greenengineering/
    NI Vision ni.com/vision/

Maybe you are looking for